CCCMDSRC = `sh $(shellflags) cflags "optimize='$(OPTIMIZE)'" $<`
CONFIGPM = lib/Config.pm lib/Config_heavy.pl
-private = preplibrary $(CONFIGPM) lib/ExtUtils/Miniperl.pm
+private = preplibrary $(CONFIGPM) lib/Config.pod lib/ExtUtils/Miniperl.pm
# Files to be built with variable substitution before miniperl
# is available.
obj = $(obj1) $(obj2) $(obj3) $(ARCHOBJS)
lintflags = \
- -bh \
+ -bhn \
-p \
-s \
-Ncheck=%all \
-Nlevel=4 \
- -errfmt=simple \
+ -errfmt=src \
-errtags \
-erroff=E_BAD_PTR_CAST \
-erroff=E_BLOCK_DECL_UNUSED \
-erroff=E_EXPR_NULL_EFFECT \
-erroff=E_BAD_PTR_INT_COMBINATION \
-erroff=E_LOOP_EMPTY \
- *.c
+ -erroff=E_TRUE_LOGICAL_EXPR \
+ -erroff=E_FALSE_LOGICAL_EXPR \
+ -erroff=E_INDISTING_FROM_TRUNC \
+ -erroff=E_POINTER_TO_OBJECT \
+ -erroff=E_ASSIGN_NARROW_CONV \
+ -erroff=E_BAD_SIGN_EXTEND \
+ -erroff=E_INCL_NUSD \
+ -erroff=E_MAIN_PARAM \
+ -Wfoo.flow
.c$(OBJ_EXT):
$(CCCMD) $(PLDLFLAGS) $*.c
perl.config.dashg:
@echo "Checking optimize='-g' in config.sh..."
@grep "^optimize=" config.sh
- @grep "^optimize='-g'" config.sh >/dev/null || exit 1
+ @egrep "^optimize='(-g|.*-g[1-3].*)'" config.sh >/dev/null || exit 1
perl.third.config: config.sh
@echo "To build perl.third you must Configure -Doptimize=-g -Uusemymalloc, checking..."
autosplit_lib_modules(@ARGV)' lib/*/*.pm
$(MAKE) lib/re.pm
-# Take care to avoid modifying lib/Config.pm without reason
-# (If trying to create a new port and having problems with the configpm script,
-# try 'make minitest' and/or commenting out the tests at the end of configpm.)
-$(CONFIGPM): config.sh miniperl$(EXE_EXT) configpm Porting/Glossary
- $(LDLIBPTH) ./miniperl -Ilib configpm --heavy=heavy.tmp configpm.tmp
- sh mv-if-diff configpm.tmp lib/Config.pm
- sh mv-if-diff heavy.tmp lib/Config_heavy.pl
+lib/Config.pod: config.sh miniperl$(EXE_EXT) configpm Porting/Glossary
+ $(LDLIBPTH) ./miniperl -Ilib configpm --heavy=lib/Config_heavy.pl lib/Config.pm
+
+$(CONFIGPM): lib/Config.pod
lib/ExtUtils/Miniperl.pm: miniperlmain.c miniperl$(EXE_EXT) minimod.pl $(CONFIGPM)
$(LDLIBPTH) ./miniperl minimod.pl > minimod.tmp
# Eventually Configure could ask for some of these values.
install.html: all installhtml
-@test -f README.vms && cd vms && $(LNS) ../README.vms README_vms.pod && cd ..
- $(LDLIBPTH) ./perl installhtml \
+ $(LDLIBPTH) ./perl installhtml \
--podroot=. --podpath=. --recurse \
- --htmldir=$(privlib)/html \
- --htmlroot=$(privlib)/html \
+ --htmldir=$(privlib)/html \
+ --htmlroot=$(privlib)/html \
--splithead=pod/perlipc \
--splititem=pod/perlfunc \
--libpods=perlfunc:perlguts:perlvar:perlrun:perlop \
+ --ignore=Porting/Maintainers.pm,Porting/patching.pod,Porting/pumpkin.pod,Porting/repository.pod \
--verbose
# Some systems do not support "?", so keep these files separate.
_cleaner2:
-rm -f core.*perl.*.? t/core.perl.*.? .?*.c
- rm -f core *perl.core t/core t/*perl.core
+ rm -f core *perl.core t/core t/*perl.core core.* t/core.*
rm -f t/misctmp* t/forktmp* t/tmp* t/c t/perl$(EXE_EXT) t/rantests
rm -f so_locations $(LIBPERL_NONSHR) $(MINIPERL_NONSHR)
rm -rf $(addedbyconf)
rm -f $(FIRSTMAKEFILE) $(FIRSTMAKEFILE).old makefile.old
- rm -f $(private) lib/Config.pod
+ rm -f $(private)
rm -rf $(unidatafiles) $(unidatadirs)
rm -rf lib/auto
rm -f lib/.exists lib/*/.exists lib/*/*/.exists
rm -f lib/ExtUtils/ParseXS/t/XSTest$(OBJ_EXT)
rm -f lib/ExtUtils/ParseXS/t/XSTest$(DLSUFFIX)
-rmdir lib/B lib/Data
- -rmdir lib/Filter/Util lib/IO/Socket lib/IO
+ -rmdir lib/Compress/Zlib lib/Compress/Gzip lib/Compress
+ -rmdir lib/Filter/Util lib/IO/Socket lib/IO/Compress lib/IO/Uncompress
-rmdir lib/List lib/MIME lib/Scalar lib/Sys
-rmdir lib/threads lib/XS
.PHONY: lint
lint: $(c)
rm -f *.ln
- lint $(lintflags) -DPERL_CORE -D_REENTRANT -DDEBUGGING -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(c) perly.c
+ lint $(lintflags) -DPERL_CORE -D_REENTRANT -DDEBUGGING -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(c)
# Need to unset during recursion to go out of loop.
# The README below ensures that the dependency list is never empty and
perl emacs/e2ctags.pl TAGS > tags
ctags:
- ctags -f Tags --totals --languages=c --langmap=c:+.h *.c *.h
+ ctags -f Tags -N --totals --languages=c --langmap=c:+.h *.c *.h
# AUTOMATICALLY GENERATED MAKE DEPENDENCIES--PUT NOTHING BELOW THIS LINE
# If this runs make out of memory, delete /usr/include lines.