X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.SH;h=1bbc7ef2e87c44b1fa8f8af44b359ba68745c7a3;hb=c4a9c09d5b30a93b6241aff3c9915e33e4e41eeb;hp=1601cb7d8314124bcc98a81a7375db37adf85d15;hpb=6c684aee08fc9337f5e82e661f931695e157219c;p=p5sagit%2Fp5-mst-13.2.git diff --git a/Makefile.SH b/Makefile.SH index 1601cb7..1bbc7ef 100644 --- a/Makefile.SH +++ b/Makefile.SH @@ -76,6 +76,10 @@ true) netbsd*|freebsd[234]*|openbsd*) linklibperl="-L. -lperl" ;; + interix*) + linklibperl="-L. -lperl" + shrpldflags="$shrpldflags -Wl,--image-base,0x57000000" + ;; aix*) shrpldflags="-H512 -T512 -bhalt:4 -bM:SRE -bE:perl.exp" case "$osvers" in @@ -350,7 +354,23 @@ obj3 = doop$(OBJ_EXT) doio$(OBJ_EXT) regexec$(OBJ_EXT) utf8$(OBJ_EXT) taint$(OBJ obj = $(obj1) $(obj2) $(obj3) $(ARCHOBJS) -lintflags = -hbvxac +lintflags = \ + -bh \ + -p \ + -s \ + -Ncheck=%all \ + -Nlevel=4 \ + -errfmt=simple \ + -errtags \ + -erroff=E_BAD_PTR_CAST \ + -erroff=E_BLOCK_DECL_UNUSED \ + -erroff=E_CONSTANT_CONDITION \ + -erroff=E_BAD_PTR_CAST_ALIGN \ + -erroff=E_PTRDIFF_OVERFLOW \ + -erroff=E_EXPR_NULL_EFFECT \ + -erroff=E_BAD_PTR_INT_COMBINATION \ + -erroff=E_LOOP_EMPTY \ + *.c .c$(OBJ_EXT): $(CCCMD) $(PLDLFLAGS) $*.c @@ -548,7 +568,7 @@ $(LIBPERL): $& perl$(OBJ_EXT) $(obj) $(LIBPERLEXPORT) !NO!SUBS! case "${osname}${osvers}" in - aix*) + aix*|beos*) $spitshell >>Makefile <<'!NO!SUBS!' miniperl: $& miniperlmain$(OBJ_EXT) $(LIBPERL) opmini$(OBJ_EXT) $(CC) -o miniperl $(CLDFLAGS) \ @@ -557,7 +577,7 @@ miniperl: $& miniperlmain$(OBJ_EXT) $(LIBPERL) opmini$(OBJ_EXT) $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '' || $(MAKE) minitest !NO!SUBS! ;; - beos*|next4*) + next4*) $spitshell >>Makefile <<'!NO!SUBS!' miniperl: $& miniperlmain$(OBJ_EXT) $(LIBPERL) opmini$(OBJ_EXT) $(CC) -o miniperl `echo $(obj) | sed 's/ op$(OBJ_EXT) / /'` \ @@ -781,7 +801,7 @@ extra.pods: miniperl$(EXE_EXT) -@rm -f pod/perlvms.pod -@test -f vms/perlvms.pod && cd pod && $(LNS) ../vms/perlvms.pod perlvms.pod && cd .. && echo "pod/perlvms.pod" >> extra.pods -@rm -f pod/perldelta.pod - -@test -f pod/perl592delta.pod && cd pod && $(LNS) perl592delta.pod perldelta.pod && cd .. && echo "pod/perldelta.pod" >> extra.pods # See buildtoc + -@test -f pod/perl593delta.pod && cd pod && $(LNS) perl593delta.pod perldelta.pod && cd .. && echo "pod/perldelta.pod" >> extra.pods # See buildtoc extras.make: perl$(EXE_EXT) -@test -s extras.lst && PATH="`pwd`:${PATH}" PERL5LIB="`pwd`/lib" $(LDLIBPTH) ./perl -Ilib -MCPAN -e '@ARGV&&make(@ARGV)' `cat extras.lst` @@ -1012,8 +1032,11 @@ _cleaner2: rm -rf .config rm -f preload rm -f testcompile compilelog - -rmdir lib/B lib/Data lib/Digest rm -rf lib/Encode + rm -f lib/ExtUtils/ParseXS/t/XSTest.c + 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/List lib/MIME lib/Scalar lib/Sys -rmdir lib/threads lib/XS @@ -1027,14 +1050,10 @@ _verycleaner: @$(LDLIBPTH) $(MAKE) _cleaner2 -rm -f *~ *.orig */*~ */*.orig */*/*~ */*/*.orig -# The following lint has practically everything turned on. Unfortunately, -# you have to wade through a lot of mumbo jumbo that can't be suppressed. -# If the source file has a /*NOSTRICT*/ somewhere, ignore the lint message -# for that spot. - .PHONY: lint lint: $(c) - lint $(lintflags) $(defs) perly.c $(c) > perl.fuzz + rm -f *.ln + lint $(lintflags) -DPERL_CORE -D_REENTRANT -DDEBUGGING -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(c) perly.c # Need to unset during recursion to go out of loop. # The README below ensures that the dependency list is never empty and @@ -1269,14 +1288,15 @@ etags: TAGS TAGS: emacs/cperl-mode.elc sh emacs/ptags -ctags: tags - # Let's hope make will not go into an infinite loop on case-unsensitive systems # This may also fail if . is in the head of the path, since perl will # require -Ilib tags: TAGS perl emacs/e2ctags.pl TAGS > tags +ctags: + ctags -f Tags --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. !NO!SUBS! @@ -1350,3 +1370,4 @@ esac ;; esac +# ex: set ts=8 sts=4 sw=4 noet: