2 case $PERL_CONFIG_SH in
7 echo "Can't find config.sh."; exit 1
13 # H.Merijn Brand [17 Feb 2004]
14 # This comment is just to ensure that Configure will find variables that
15 # are removed/replaced in patches on blead, but are still needed in the
16 # 5.8.x, 5.6.x and 5.005.x maintainance tracks.
17 # metaconfig -m will scan all .SH files on this level (not deeper), and
18 # not in x2p and other subfolders. This file is as good as any .SH
23 : This forces SH files to create target in same directory as SH file.
24 : This is so that make depend always knows where to find SH derivatives.
26 */*) cd `expr X$0 : 'X\(.*\)/'` ;;
30 *define*) suidperl='suidperl' ;;
34 linklibperl='$(LIBPERL)'
35 shrpldflags='$(LDDLFLAGS)'
37 DPERL_EXTERNAL_GLOB='-DPERL_EXTERNAL_GLOB'
40 # Prefix all runs of 'miniperl' and 'perl' with
41 # $ldlibpth so that ./perl finds *this* shared libperl.
42 case "$LD_LIBRARY_PATH" in
44 ldlibpth="LD_LIBRARY_PATH=`pwd`";;
46 ldlibpth="LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}";;
49 pldlflags="$cccdlflags"
50 static_target='static_pic'
51 case "${osname}${osvers}" in
54 lddlflags="-dynamic -undefined warning -framework System \
55 -compatibility_version 1 -current_version $patchlevel \
56 -prebind -seg1addr 0x27000000 -install_name \$(shrpdir)/\$@"
59 shrpldflags="${ldflags} -dynamiclib \
60 -compatibility_version \
61 ${api_revision}.${api_version}.${api_subversion} \
63 ${revision}.${patchlevel}.${subversion} \
64 -install_name \$(shrpdir)/\$@"
72 netbsd*|freebsd[234]*|openbsd*)
73 linklibperl="-L. -lperl"
76 shrpldflags="-H512 -T512 -bhalt:4 -bM:SRE -bE:perl.exp"
78 3*) shrpldflags="$shrpldflags -e _nostart"
80 *) shrpldflags="$shrpldflags -b noentry"
83 shrpldflags="$shrpldflags $ldflags $perllibs $cryptlib"
84 linklibperl="-L $archlibexp/CORE -L `pwd | sed 's/\/UU$//'` -lperl"
87 linklibperl="-L `pwd | sed 's/\/UU$//'` -Wl,+s -Wl,+b$archlibexp/CORE -lperl"
90 shrpldflags='-W l,dll'
91 linklibperl='libperl.x'
92 DPERL_EXTERNAL_GLOB=''
95 case "$ldlibpthname" in
103 eval "ldlibpth=\"$ldlibpthname=`pwd`:\$$ldlibpthname\""
106 # Strip off any trailing :'s
107 ldlibpth=`echo $ldlibpth | sed 's/:*$//'`
113 *" "*) ldlibpth=`echo $ldlibpth|sed 's/ /\\\\ /g'` ;;
118 # If there is a pre-existing $libperl from a previous
119 # installation, Linux needs to use LD_PRELOAD to
120 # override the LD_LIBRARY_PATH setting. See the
121 # INSTALL file, under "Building a shared perl library".
122 # If there is no pre-existing $libperl, we don't need
123 # to do anything further.
124 if test -f $archlib/CORE/$libperl; then
126 cat <<'EOT' > preload
130 test -r $lib && export LD_PRELOAD="$lib $LD_PRELOAD"
134 ldlibpth="$ldlibpth `pwd`/preload `pwd`/$libperl"
137 os390) test -f /bin/env && ldlibpth="/bin/env $ldlibpth"
144 static_target='static'
148 : Prepare dependency lists for Makefile.
150 for f in $dynamic_ext; do
151 : the dependency named here will never exist
152 base=`echo "$f" | sed 's/.*\///'`
153 dynamic_list="$dynamic_list lib/auto/$f/$base.$dlext"
157 for f in $static_ext; do
158 base=`echo "$f" | sed 's/.*\///'`
159 static_list="$static_list lib/auto/$f/$base\$(LIB_EXT)"
163 for f in $nonxs_ext; do
164 base=`echo "$f" | sed 's/.*\///'`
165 nonxs_list="$nonxs_list ext/$f/pm_to_blib"
168 echo "Extracting Makefile (with variable substitutions)"
169 $spitshell >Makefile <<!GROK!THIS!
171 # This file is derived from Makefile.SH. Any changes made here will
172 # be lost the next time you run Configure.
173 # Makefile is used to generate $firstmakefile. The only difference
174 # is that $firstmakefile has the dependencies filled in at the end.
182 mallocsrc = $mallocsrc
183 mallocobj = $mallocobj
185 # NOTE: some systems don't grok "cp -f". XXX Configure test needed?
190 # The following are mentioned only to make metaconfig include the
191 # appropriate questions in Configure. If you want to change these,
192 # edit config.sh instead, or specify --man1dir=/wherever on
193 # installman commandline.
195 scriptdir = $scriptdir
196 shrpdir = $archlibexp/CORE
197 privlib = $installprivlib
203 # The following are used to build and install shared libraries for
205 LDDLFLAGS = $lddlflags
206 SHRPLDFLAGS = $shrpldflags
207 CCDLFLAGS = $ccdlflags
209 PLDLFLAGS = $pldlflags
211 LLIBPERL= $linklibperl
214 # Static targets are ordinarily built without CCCDLFLAGS. However,
215 # if building a shared libperl.so that might later be linked into
216 # another application, then it might be appropriate to also build static
217 # extensions (usually just DynaLoader) with relocatable code (e.g. -fPIC
218 # for GNU cc). This is handled by ext/util/make_ext.
219 STATIC = $static_target
221 # The following is used to include the current directory in
222 # the dynamic loader path you are building a shared libperl.
225 dynamic_ext = $dynamic_list
226 static_ext = $static_list
227 nonxs_ext = $nonxs_list
228 ext = \$(dynamic_ext) \$(static_ext) \$(nonxs_ext)
229 DYNALOADER = lib/auto/DynaLoader/DynaLoader\$(LIB_EXT)
231 libs = $perllibs $cryptlib
233 public = perl\$(EXE_EXT) $suidperl utilities translators
235 shellflags = $shellflags
237 # This is set to MAKE=$make if your $make command doesn't
241 # Mention $gmake here so it gets probed for by Configure.
243 # These variables may need to be manually set for non-Unix systems.
250 FIRSTMAKEFILE = $firstmakefile
252 # Any special object files needed by this architecture, e.g. os2/os2.obj
255 .SUFFIXES: .c \$(OBJ_EXT) .i .s
260 # how to tr(anslate) newlines
267 INSTALLPREFIXEXP = $prefix
270 # not used by Makefile but by installperl;
271 # mentioned here so that metaconfig picks these up
275 case "${osname}:${osvers}" in
277 $spitshell >>Makefile <<EOF
279 # Your locales are broken (osname $osname, osvers $osvers)
280 # and to avoid the numerous
281 # perl: warning: Setting locale failed.
282 # warnings during the build process we reset the locale variables.
291 ## In the following dollars and backticks do not need the extra backslash.
292 $spitshell >>Makefile <<'!NO!SUBS!'
294 CCCMD = `sh $(shellflags) cflags "optimize='$(OPTIMIZE)'" $@`
296 CCCMDSRC = `sh $(shellflags) cflags "optimize='$(OPTIMIZE)'" $<`
298 private = preplibrary lib/Config.pm lib/ExtUtils/Miniperl.pm
300 # Files to be built with variable substitution before miniperl
302 sh = Makefile.SH cflags.SH config_h.SH makeaperl.SH makedepend.SH \
303 makedir.SH myconfig.SH writemain.SH pod/Makefile.SH
305 shextract = Makefile cflags config.h makeaperl makedepend \
306 makedir myconfig writemain pod/Makefile
308 # Files to be built with variable substitution after miniperl is
309 # available. Dependencies handled manually below (for now).
311 pl = pod/pod2html.PL pod/pod2latex.PL pod/pod2man.PL pod/pod2text.PL \
312 pod/pod2usage.PL pod/podchecker.PL pod/podselect.PL
314 # lib/lib.pm is not listed here because it has a rule of its own.
315 plextract = pod/pod2html pod/pod2latex pod/pod2man pod/pod2text \
316 pod/pod2usage pod/podchecker pod/podselect
318 addedbyconf = UU $(shextract) $(plextract) lib/lib.pm pstruct
320 # Unicode data files generated by mktables
321 unidatafiles = lib/unicore/Canonical.pl lib/unicore/Exact.pl \
322 lib/unicore/Properties lib/unicore/Decomposition.pl \
323 lib/unicore/CombiningClass.pl lib/unicore/Name.pl lib/unicore/PVA.pl
325 # Directories of Unicode data files generated by mktables
326 unidatadirs = lib/unicore/To lib/unicore/lib
328 h1 = EXTERN.h INTERN.h XSUB.h av.h config.h cop.h cv.h dosish.h
329 h2 = embed.h form.h gv.h handy.h hv.h keywords.h mg.h op.h opcode.h
330 h3 = pad.h patchlevel.h perl.h perlapi.h perly.h pp.h proto.h regcomp.h
331 h4 = regexp.h scope.h sv.h unixish.h util.h iperlsys.h thread.h
332 h5 = utf8.h warnings.h
333 h = $(h1) $(h2) $(h3) $(h4) $(h5)
335 c1 = $(mallocsrc) av.c scope.c op.c doop.c doio.c dump.c hv.c mg.c reentr.c
336 c2 = perl.c perly.c pp.c pp_hot.c pp_ctl.c pp_sys.c regcomp.c regexec.c utf8.c
337 c3 = gv.c sv.c taint.c toke.c util.c deb.c run.c universal.c xsutils.c pad.c
338 c4 = globals.c perlio.c perlapi.c numeric.c locale.c pp_pack.c pp_sort.c
340 c = $(c1) $(c2) $(c3) $(c4) miniperlmain.c perlmain.c
342 obj1 = $(mallocobj) gv$(OBJ_EXT) toke$(OBJ_EXT) perly$(OBJ_EXT) op$(OBJ_EXT) pad$(OBJ_EXT) regcomp$(OBJ_EXT) dump$(OBJ_EXT) util$(OBJ_EXT) mg$(OBJ_EXT) reentr$(OBJ_EXT)
343 obj2 = hv$(OBJ_EXT) av$(OBJ_EXT) run$(OBJ_EXT) pp_hot$(OBJ_EXT) sv$(OBJ_EXT) pp$(OBJ_EXT) scope$(OBJ_EXT) pp_ctl$(OBJ_EXT) pp_sys$(OBJ_EXT)
344 obj3 = doop$(OBJ_EXT) doio$(OBJ_EXT) regexec$(OBJ_EXT) utf8$(OBJ_EXT) taint$(OBJ_EXT) deb$(OBJ_EXT) universal$(OBJ_EXT) xsutils$(OBJ_EXT) globals$(OBJ_EXT) perlio$(OBJ_EXT) perlapi$(OBJ_EXT) numeric$(OBJ_EXT) locale$(OBJ_EXT) pp_pack$(OBJ_EXT) pp_sort$(OBJ_EXT)
346 obj = $(obj1) $(obj2) $(obj3) $(ARCHOBJS)
351 $(CCCMD) $(PLDLFLAGS) $*.c
354 $(CCCMDSRC) -E $*.c > $*.i
359 all: $(FIRSTMAKEFILE) miniperl$(EXE_EXT) extra.pods $(private) $(unidatafiles) $(public) $(dynamic_ext) $(nonxs_ext) extras.make
361 @echo " Everything is up to date. Type '$(MAKE) test' to run test suite."
363 .PHONY: all compile translators utilities
366 echo "testing compilation" > testcompile;
367 cd utils; $(MAKE) compile;
368 cd x2p; $(MAKE) compile;
369 cd pod; $(MAKE) compile;
371 translators: miniperl$(EXE_EXT) lib/Config.pm FORCE
372 @echo " "; echo " Making x2p stuff"; cd x2p; $(LDLIBPTH) $(MAKE) all
374 utilities: miniperl$(EXE_EXT) lib/Config.pm $(plextract) lib/lib.pm FORCE
375 @echo " "; echo " Making utilities"; cd utils; $(LDLIBPTH) $(MAKE) all
378 # This is now done by installman only if you actually want the man pages.
379 # @echo " "; echo " Making docs"; cd pod; $(MAKE) all;
381 # Phony target to force checking subdirectories.
382 # Apparently some makes require an action for the FORCE target.
387 $spitshell >>Makefile <<!GROK!THIS!
389 # We do a copy of the op.c instead of a symlink because gcc gets huffy
390 # if we have a symlink forest to another disk (it complains about too many
391 # levels of symbolic links, even if we have only two)
393 opmini\$(OBJ_EXT): op.c config.h
395 \$(CPS) op.c opmini.c
396 \$(CCCMD) \$(PLDLFLAGS) $DPERL_EXTERNAL_GLOB opmini.c
400 $spitshell >>Makefile <<'!NO!SUBS!'
401 miniperlmain$(OBJ_EXT): miniperlmain.c patchlevel.h
402 $(CCCMD) $(PLDLFLAGS) $*.c
404 perlmain.c: miniperlmain.c config.sh $(FIRSTMAKEFILE)
405 sh writemain $(DYNALOADER) $(static_ext) > writemain.tmp
406 sh mv-if-diff writemain.tmp perlmain.c
411 ;; # Let cygwin/Makefile.SHs do its work.
413 $spitshell >>Makefile <<'!NO!SUBS!'
414 perlmain$(OBJ_EXT): perlmain.c
415 $(CCCMD) $(PLDLFLAGS) $*.c
420 $spitshell >>Makefile <<'!NO!SUBS!'
421 # The file ext.libs is a list of libraries that must be linked in
422 # for static extensions, e.g. -lm -lgdbm, etc. The individual
423 # static extension Makefile's add to it.
424 ext.libs: $(static_ext)
425 -@test -f ext.libs || touch ext.libs
429 # How to build libperl. This is still rather convoluted.
430 # Load up custom Makefile.SH fragment for shared loading and executables:
433 Makefile_s="$osname/Makefile.SHs"
439 $spitshell >>Makefile <<!GROK!THIS!
441 # In AIX we need to change this for building Perl itself from
442 # its earlier definition (which is for building external
443 # extensions *after* Perl has been built and installed)
444 CCDLFLAGS = `echo $ccdlflags|sed -e 's@-bE:.*/perl\.exp@-bE:perl.exp@'`
447 case "$useshrplib" in
449 $spitshell >>Makefile <<'!NO!SUBS!'
451 LIBPERL_NONSHR = libperl_nonshr$(LIB_EXT)
452 MINIPERL_NONSHR = miniperl_nonshr$(EXE_EXT)
454 $(LIBPERL_NONSHR): perl$(OBJ_EXT) $(obj)
455 $(RMS) $(LIBPERL_NONSHR)
456 $(AR) rcu $(LIBPERL_NONSHR) perl$(OBJ_EXT) $(obj)
458 $(MINIPERL_NONSHR): $(LIBPERL_NONSHR) miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT)
459 $(CC) $(LDFLAGS) -o $(MINIPERL_NONSHR) miniperlmain$(OBJ_EXT) \
460 opmini$(OBJ_EXT) $(LIBPERL_NONSHR) $(LIBS)
462 MINIPERLEXP = $(MINIPERL_NONSHR)
464 LIBPERLEXPORT = perl.exp
470 $spitshell >>Makefile <<'!NO!SUBS!'
471 MINIPERLEXP = miniperl$(EXE_EXT)
473 PERLEXPORT = perl.exp
478 $spitshell >>Makefile <<'!NO!SUBS!'
479 perl.exp: $(MINIPERLEXP) makedef.pl config.sh $(SYM) $(SYMH)
480 ./$(MINIPERLEXP) makedef.pl PLATFORM=aix CC_FLAGS="$(OPTIMIZE)" | sort -u | sort -f > perl.exp.tmp
481 sh mv-if-diff perl.exp.tmp perl.exp
486 $spitshell >>Makefile <<'!NO!SUBS!'
487 MINIPERLEXP = miniperl
489 perl5.def: $(MINIPERLEXP) makedef.pl config.sh $(SYM) $(SYMH) miniperl.map
490 ./$(MINIPERLEXP) makedef.pl PLATFORM=os2 -DPERL_DLL=$(PERL_DLL) CC_FLAGS="$(OPTIMIZE)" > perl.exp.tmp
491 sh mv-if-diff perl.exp.tmp perl5.def
497 if test -r $Makefile_s ; then
499 $spitshell >>Makefile <<!GROK!THIS!
501 Makefile: $Makefile_s
504 $spitshell >>Makefile <<'!NO!SUBS!'
505 $(LIBPERL): $& perl$(OBJ_EXT) $(obj) $(LIBPERLEXPORT)
507 case "$useshrplib" in
509 $spitshell >>Makefile <<'!NO!SUBS!'
510 $(LD) -o $@ $(SHRPLDFLAGS) perl$(OBJ_EXT) $(obj) $(libs)
514 $spitshell >>Makefile <<'!NO!SUBS!'
515 rm -f libperl$(OBJ_EXT)
516 mv $@ libperl$(OBJ_EXT)
517 $(AR) qv $(LIBPERL) libperl$(OBJ_EXT)
523 $spitshell >>Makefile <<'!NO!SUBS!'
525 $(AR) rcu $(LIBPERL) perl$(OBJ_EXT) $(obj)
526 @$(ranlib) $(LIBPERL)
530 $spitshell >>Makefile <<'!NO!SUBS!'
532 # How to build executables.
534 # The $& notation tells Sequent machines that it can do a parallel make,
535 # and is harmless otherwise.
536 # The miniperl -w -MExporter line is a basic cheap test to catch errors
537 # before make goes on to run preplibrary and then MakeMaker on extensions.
538 # This is very handy because later errors are often caused by miniperl
539 # build problems but that's not obvious to the novice.
540 # The Module used here must not depend on Config or any extensions.
544 case "${osname}${osvers}" in
546 $spitshell >>Makefile <<'!NO!SUBS!'
547 miniperl: $& miniperlmain$(OBJ_EXT) $(LIBPERL) opmini$(OBJ_EXT)
548 $(CC) -o miniperl $(CLDFLAGS) \
549 `echo $(obj) | sed 's/ op$(OBJ_EXT) / /'` \
550 miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) perl$(OBJ_EXT) $(libs)
551 $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
555 $spitshell >>Makefile <<'!NO!SUBS!'
556 miniperl: $& miniperlmain$(OBJ_EXT) $(LIBPERL) opmini$(OBJ_EXT)
557 $(CC) -o miniperl `echo $(obj) | sed 's/ op$(OBJ_EXT) / /'` \
558 miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) perl$(OBJ_EXT) $(libs)
559 $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
565 *) case "$ldflags" in
566 *"-flat_namespace"*) ;;
567 *) # to allow opmini.o to override stuff in libperl.dylib
568 $spitshell >>Makefile <<!NO!SUBS!
569 NAMESPACEFLAGS = -force_flat_namespace
575 $spitshell >>Makefile <<'!NO!SUBS!'
576 miniperl$(EXE_EXT): $& miniperlmain$(OBJ_EXT) $(LIBPERL) opmini$(OBJ_EXT)
578 $(CC) $(CLDFLAGS) $(NAMESPACEFLAGS) -o miniperl \
579 miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) $(LLIBPERL) $(libs)
580 $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
584 $spitshell >>Makefile <<'!NO!SUBS!'
585 miniperl$(EXE_EXT): $& miniperlmain$(OBJ_EXT) $(LIBPERL) opmini$(OBJ_EXT)
587 $(LDLIBPTH) $(CC) $(CLDFLAGS) -o miniperl \
588 miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) $(LLIBPERL) $(libs)
589 $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
594 $spitshell >>Makefile <<'!NO!SUBS!'
596 perl$(EXE_EXT): $& perlmain$(OBJ_EXT) $(LIBPERL) $(DYNALOADER) $(static_ext) ext.libs $(PERLEXPORT)
598 $(SHRPENV) $(LDLIBPTH) $(CC) -o perl$(PERL_SUFFIX) $(PERL_PROFILE_LDFLAGS) $(CLDFLAGS) $(CCDLFLAGS) perlmain$(OBJ_EXT) $(DYNALOADER) $(static_ext) $(LLIBPERL) `cat ext.libs` $(libs)
600 # Purify/Quantify Perls.
602 pureperl$(EXE_EXT): $& perlmain$(OBJ_EXT) $(LIBPERL) $(DYNALOADER) $(static_ext) ext.libs $(PERLEXPORT)
603 $(SHRPENV) $(LDLIBPTH) purify $(CC) -o pureperl $(CLDFLAGS) $(CCDLFLAGS) perlmain$(OBJ_EXT) $(DYNALOADER) $(static_ext) $(LLIBPERL) `cat ext.libs` $(libs)
605 purecovperl$(EXE_EXT): $& perlmain$(OBJ_EXT) $(LIBPERL) $(DYNALOADER) $(static_ext) ext.libs $(PERLEXPORT)
606 $(SHRPENV) $(LDLIBPTH) purecov $(CC) -o purecovperl $(CLDFLAGS) $(CCDLFLAGS) perlmain$(OBJ_EXT) $(DYNALOADER) $(static_ext) $(LLIBPERL) `cat ext.libs` $(libs)
608 quantperl$(EXE_EXT): $& perlmain$(OBJ_EXT) $(LIBPERL) $(DYNALOADER) $(static_ext) ext.libs $(PERLEXPORT)
609 $(SHRPENV) $(LDLIBPTH) quantify $(CC) -o quantperl $(CLDFLAGS) $(CCDLFLAGS) perlmain$(OBJ_EXT) $(DYNALOADER) $(static_ext) $(LLIBPERL) `cat ext.libs` $(libs)
611 # Valgrind perl (currently Linux only)
613 perl.valgrind.config: config.sh
614 @echo "To build perl.valgrind you must Configure -Doptimize=-g -Uusemymalloc, checking..."
615 @$(MAKE) perl.config.dashg
616 @echo "Checking usemymalloc='n' in config.sh..."
617 @grep "^usemymalloc=" config.sh
618 @grep "^usemymalloc='n'" config.sh >/dev/null || exit 1
619 @echo "And of course you have to have valgrind..."
620 valgrind ./perl -e 1 2>/dev/null || exit 1
622 # Third Degree Perl (Tru64 only)
625 @echo "Checking optimize='-g' in config.sh..."
626 @grep "^optimize=" config.sh
627 @grep "^optimize='-g'" config.sh >/dev/null || exit 1
629 perl.third.config: config.sh
630 @echo "To build perl.third you must Configure -Doptimize=-g -Uusemymalloc, checking..."
631 @$(MAKE) perl.config.dashg
632 @echo "Checking usemymalloc='n' in config.sh..."
633 @grep "^usemymalloc=" config.sh
634 @grep "^usemymalloc='n'" config.sh >/dev/null || exit 1
636 perl.third: /usr/bin/atom perl.third.config perl
637 atom -tool third -L. -all -gp -toolargs="-invalid -uninit heap+stack+copy -min 0" perl
638 @echo "Now you may run perl.third and then study perl.3log."
640 # Pixie Perls (Tru64 and IRIX only)
642 perl.pixie.config: config.sh
643 @echo "To build perl.pixie you must Configure -Doptimize=-g, checking..."
644 @$(MAKE) perl.config.dashg
646 perl.pixie.atom: /usr/bin/atom perl
647 atom -tool pixie -L. -all -toolargs="-quiet" perl
649 perl.pixie.irix: perl
652 perl.pixie: /usr/bin/pixie perl.pixie.config perl
653 if test -x /usr/bin/atom; then \
654 $(MAKE) perl.pixie.atom; \
656 $(MAKE) perl.pixie.irix; \
658 @echo "Now you may run perl.pixie and then run pixie."
663 @echo "Checking optimize='-pg' in config.sh..."
664 @grep "^optimize=" config.sh
665 @grep "^optimize='.*-pg.*'" config.sh >/dev/null || exit 1
667 perl.gprof.config: config.sh
668 @echo "To build perl.gprof you must Configure -Doptimize=-pg, checking..."
669 @$(MAKE) perl.config.dashpg
671 perl.gprof: /usr/bin/gprof perl.gprof.config
673 $(MAKE) PERL_SUFFIX=.gprof PERL_PROFILE_LDFLAGS=-pg perl
674 @echo "Now you may run perl.gprof and then run gprof perl.gprof."
679 @echo "To build perl.gcov you must use gcc 3.0 or newer, checking..."
680 @echo "Checking gccversion in config.sh..."
681 @grep "^gccversion=" config.sh
682 @grep "^gccversion='[3-9]\." config.sh >/dev/null || exit 1
683 @echo "To build perl.gcov you must Configure -Dccflags=-fprofile-arcs -ftest-coverage, checking..."
684 @echo "Checking ccflags='-fprofile-arcs -ftest-coverage' in config.sh..."
685 @grep "^ccflags=" config.sh
686 @grep "^ccflags='.*-fprofile-arcs -ftest-coverage.*'" config.sh >/dev/null || exit 1
688 perl.gcov: perl.config.gcov
690 $(MAKE) PERL_SUFFIX=.gcov PERL_PROFILE_LDFLAGS='' perl
691 @echo "Now you may run perl.gcov and then run gcov some.c."
693 # Microperl. This is just a convenience thing if one happens to
694 # build also the full Perl and therefore the real big Makefile:
695 # usually one should manually explicitly issue the below command.
699 $(MAKE) -f Makefile.micro
701 # This version, if specified in Configure, does ONLY those scripts which need
702 # set-id emulation. Suidperl must be setuid root. It contains the "taint"
703 # checks as well as the special code to validate that the script in question
704 # has been invoked correctly.
706 suidperl$(EXE_EXT): $& sperl$(OBJ_EXT) perlmain$(OBJ_EXT) $(LIBPERL) $(DYNALOADER) $(static_ext) ext.libs $(PERLEXPORT)
707 $(SHRPENV) $(LDLIBPTH) $(CC) -o suidperl $(CLDFLAGS) $(CCDLFLAGS) perlmain$(OBJ_EXT) sperl$(OBJ_EXT) $(DYNALOADER) $(static_ext) $(LLIBPERL) `cat ext.libs` $(libs)
713 $spitshell >>Makefile <<'!NO!SUBS!'
715 sperl$(OBJ_EXT): perl.c $(h)
717 $(LNS) perl.c sperl.c
718 $(CCCMD) -DIAMSUID sperl.c
721 # We have to call our ./makedir because Ultrix 4.3 make can't handle the line
722 # test -d lib/auto || mkdir lib/auto
723 # We need to autosplit in two steps because VOS can't handle so many args
726 preplibrary: miniperl$(EXE_EXT) lib/Config.pm lib/lib.pm $(PREPLIBRARY_LIBPERL)
727 @sh ./makedir lib/auto
728 @echo " AutoSplitting perl library"
729 $(LDLIBPTH) ./miniperl -Ilib -e 'use AutoSplit; \
730 autosplit_lib_modules(@ARGV)' lib/*.pm
731 $(LDLIBPTH) ./miniperl -Ilib -e 'use AutoSplit; \
732 autosplit_lib_modules(@ARGV)' lib/*/*.pm
735 # Take care to avoid modifying lib/Config.pm without reason
736 # (If trying to create a new port and having problems with the configpm script,
737 # try 'make minitest' and/or commenting out the tests at the end of configpm.)
738 lib/Config.pm: config.sh miniperl$(EXE_EXT) configpm Porting/Glossary
739 $(LDLIBPTH) ./miniperl -Ilib configpm configpm.tmp
740 sh mv-if-diff configpm.tmp $@
742 lib/ExtUtils/Miniperl.pm: miniperlmain.c miniperl$(EXE_EXT) minimod.pl lib/Config.pm
743 $(LDLIBPTH) ./miniperl minimod.pl > minimod.tmp
744 sh mv-if-diff minimod.tmp $@
745 -touch lib/ExtUtils/Miniperl.pm
747 lib/re.pm: ext/re/re.pm
748 cp ext/re/re.pm ext/re/re.tmp && sh mv-if-diff ext/re/re.tmp lib/re.pm
750 $(plextract): miniperl$(EXE_EXT) lib/Config.pm x2p/s2p
752 $(LDLIBPTH) ./miniperl -Ilib $@.PL
754 x2p/s2p: miniperl$(EXE_EXT) lib/Config.pm x2p/s2p.PL
755 cd x2p; $(LDLIBPTH) $(MAKE) s2p
757 lib/lib.pm: miniperl$(EXE_EXT) lib/Config.pm
759 $(LDLIBPTH) ./miniperl -Ilib lib/lib_pm.PL
761 $(unidatafiles): miniperl$(EXE_EXT) lib/Config.pm lib/unicore/mktables
762 cd lib/unicore && $(LDLIBPTH) ../../miniperl -I../../lib mktables -w
764 extra.pods: miniperl$(EXE_EXT)
765 -@test -f extra.pods && rm -f `cat extra.pods`
767 -@for x in `grep -l '^=[a-z]' README.* | grep -v README.vms` ; do \
768 nx=`echo $$x | sed -e "s/README\.//"`; \
769 cd pod ; $(LNS) ../$$x "perl"$$nx".pod" ; cd .. ; \
770 echo "pod/perl"$$nx".pod" >> extra.pods ; \
772 -@rm -f pod/perlvms.pod
773 -@test -f vms/perlvms.pod && cd pod && $(LNS) ../vms/perlvms.pod perlvms.pod && cd .. && echo "pod/perlvms.pod" >> extra.pods
774 -@rm -f pod/perldelta.pod
775 -@test -f pod/perl592delta.pod && cd pod && $(LNS) perl592delta.pod perldelta.pod && cd .. && echo "pod/perldelta.pod" >> extra.pods # See buildtoc
776 extras.make: perl$(EXE_EXT)
777 -@test -s extras.lst && PATH="`pwd`:${PATH}" PERL5LIB="`pwd`/lib" $(LDLIBPTH) ./perl -Ilib -MCPAN -e '@ARGV&&make(@ARGV)' `cat extras.lst`
779 extras.test: perl$(EXE_EXT)
780 -@test -s extras.lst && PATH="`pwd`:${PATH}" PERL5LIB="`pwd`/lib" $(LDLIBPTH) ./perl -Ilib -MCPAN -e '@ARGV&&test(@ARGV)' `cat extras.lst`
782 extras.install: perl$(EXE_EXT)
783 -@test -s extras.lst && PATH="`pwd`:${PATH}" PERL5LIB="`pwd`/lib" $(LDLIBPTH) ./perl -Ilib -MCPAN -e '@ARGV&&install(@ARGV)' `cat extras.lst`
785 .PHONY: install install-strip install-all install-verbose install-silent \
786 no-install install.perl install.man install.html
788 META.yml: Porting/makemeta Porting/Maintainers.pl Porting/Maintainers.pm
789 $(LDLIBPTH) ./miniperl -Ilib Porting/makemeta
792 $(MAKE) STRIPFLAGS=-s install DESTDIR="$(DESTDIR)"
795 $(MAKE) install.perl install.man STRIPFLAGS=$(STRIPFLAGS) DESTDIR="$(DESTDIR)"
798 $(MAKE) install.perl install.man STRIPFLAGS=$(STRIPFLAGS) INSTALLFLAGS=-V DESTDIR="$(DESTDIR)"
801 $(MAKE) install.perl install.man STRIPFLAGS=$(STRIPFLAGS) INSTALLFLAGS=-S DESTDIR="$(DESTDIR)"
804 $(MAKE) install.perl install.man STRIPFLAGS=$(STRIPFLAGS) INSTALLFLAGS=-n DESTDIR="$(DESTDIR)"
806 # Set this to an empty string to avoid an attempt of rebuild before install
807 INSTALL_DEPENDENCE = all
809 install.perl: $(INSTALL_DEPENDENCE) installperl
810 if [ -n "$(COMPILE)" ]; \
812 cd utils; $(MAKE) compile; \
813 cd ../x2p; $(MAKE) compile; \
814 cd ../pod; $(MAKE) compile; \
817 $(LDLIBPTH) ./perl installperl --destdir=$(DESTDIR) $(INSTALLFLAGS) $(STRIPFLAGS)
818 $(MAKE) extras.install
820 install.man: all installman
821 $(LDLIBPTH) ./perl installman --destdir=$(DESTDIR) $(INSTALLFLAGS)
823 # XXX Experimental. Hardwired values, but useful for testing.
824 # Eventually Configure could ask for some of these values.
825 install.html: all installhtml
826 -@test -f README.vms && cd vms && $(LNS) ../README.vms README_vms.pod && cd ..
827 $(LDLIBPTH) ./perl installhtml \
828 --podroot=. --podpath=. --recurse \
829 --htmldir=$(privlib)/html \
830 --htmlroot=$(privlib)/html \
831 --splithead=pod/perlipc \
832 --splititem=pod/perlfunc \
833 --libpods=perlfunc:perlguts:perlvar:perlrun:perlop \
837 # I now supply perly.c with the kits, so the following section is
838 # used only if you force bison to run by saying
840 # You normally shouldn't remake perly.[ch].
845 @echo "run_byacc is obsolete; try 'make regen_perly' instead"
847 # this outputs perly.act and perly.tab
851 # We don't want to regenerate perly.c and perly.h, but they might
852 # appear out-of-date after a patch is applied or a new distribution is
860 # No compat3.sym here since and including the 5.004_50.
861 # No interp.sym since 5.005_03.
862 SYM = global.sym globvar.sym perlio.sym pp.sym
864 SYMH = perlvars.h intrpvar.h thrdvar.h
868 # The following files are generated automatically
869 # autodoc.pl: pod/perlapi.pod pod/perlintern.pod
870 # bytecode.pl: ext/ByteLoader/byterun.h ext/ByteLoader/byterun.c
872 # embed.pl: proto.h embed.h embedvar.h global.sym
873 # perlapi.h perlapi.c
874 # [* embed.pl needs pp.sym generated by opcode.pl! *]
875 # keywords.pl: keywords.h
876 # opcode.pl: opcode.h opnames.h pp_proto.h pp.sym
877 # regcomp.pl: regnodes.h
878 # warnings.pl: warnings.h lib/warnings.pm
879 # The correct versions should be already supplied with the perl kit,
880 # in case you don't have perl available.
881 # To force them to be regenerated, run
883 # with your existing copy of perl
884 # (make regen_headers is kept for backwards compatibility)
886 AUTOGEN_FILES = keywords.h opcode.h opnames.h pp_proto.h pp.sym proto.h \
887 embed.h embedvar.h global.sym \
888 pod/perlintern.pod pod/perlapi.pod \
889 perlapi.h perlapi.c ext/ByteLoader/byterun.h \
890 ext/ByteLoader/byterun.c ext/B/B/Asmdata.pm regnodes.h \
891 warnings.h lib/warnings.pm
893 .PHONY: regen_headers regen_pods regen_all
895 regen regen_headers: FORCE
899 -cd pod; $(LDLIBPTH) $(MAKE) regen_pods
901 regen_all: regen regen_pods
903 .PHONY: manisort manicheck
906 LC_ALL=C sort -fdc MANIFEST || (echo "WARNING: re-sorting MANIFEST"; \
907 LC_ALL=C sort -fdo MANIFEST MANIFEST)
910 perl Porting/manicheck
913 # Names added to $(dynamic_ext) or $(static_ext) or $(nonxs_ext) will
914 # automatically get built. There should ordinarily be no need to change
915 # any of this part of makefile.
917 # The dummy dependency is a place holder in case $(dynamic_ext) or
918 # $(static_ext) is empty.
920 # DynaLoader may be needed for extensions that use Makefile.PL.
922 $(DYNALOADER): miniperl$(EXE_EXT) preplibrary FORCE
923 @$(LDLIBPTH) sh ext/util/make_ext $(STATIC) $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL)
925 d_dummy $(dynamic_ext): miniperl$(EXE_EXT) preplibrary $(DYNALOADER) FORCE
926 @$(LDLIBPTH) sh ext/util/make_ext dynamic $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL)
928 s_dummy $(static_ext): miniperl$(EXE_EXT) preplibrary $(DYNALOADER) FORCE
929 @$(LDLIBPTH) sh ext/util/make_ext $(STATIC) $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL)
931 n_dummy $(nonxs_ext): miniperl$(EXE_EXT) preplibrary $(DYNALOADER) FORCE
932 @$(LDLIBPTH) sh ext/util/make_ext nonxs $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL)
934 .PHONY: clean _tidy _mopup _cleaner1 _cleaner2 \
935 realclean _realcleaner clobber _clobber \
936 distclean veryclean _verycleaner
940 realclean: _realcleaner _mopup
941 @echo "Note that '$(MAKE) realclean' does not delete config.sh or Policy.sh"
944 -@rm -f Cross/run-* Cross/to-* Cross/from-*
945 rm -f config.sh cppstdin Policy.sh extras.lst
947 clobber: _realcleaner _mopup _clobber
951 # Like distclean but also removes emacs backups and *.orig.
952 veryclean: _verycleaner _mopup _clobber
953 -@rm -f Obsolete Wanted
955 # Do not 'make _mopup' directly.
957 rm -f *$(OBJ_EXT) *$(LIB_EXT) all perlmain.c
959 -@test -f extra.pods && rm -f `cat extra.pods`
960 -@test -f vms/README_vms.pod && rm -f vms/README_vms.pod
961 -rm -f perl.exp ext.libs extra.pods opmini.o
962 -rm -f perl.export perl.dll perl.libexp perl.map perl.def
963 -rm -f perl.loadmap miniperl.loadmap perl.prelmap miniperl.prelmap
964 -rm -f perl.third lib*.so.perl.third perl.3log t/perl.third t/perl.3log
965 -rm -f perl.pixie lib*.so.perl.pixie lib*.so.Addrs
966 -rm -f perl.Addrs perl.Counts t/perl.Addrs t/perl.Counts *perl.xok
967 -rm -f perlld cygwin.c ld2 libperl*.def libperl*.dll cygperl*.dll *.exe.stackdump
968 -rm -f perl$(EXE_EXT) suidperl$(EXE_EXT) miniperl$(EXE_EXT) $(LIBPERL) libperl.* microperl
969 -rm -f opcode.h-old opnames.h-old pp.sym-old pp_proto.h-old
971 # Do not 'make _tidy' directly.
973 -cd pod; $(LDLIBPTH) $(MAKE) clean
974 -cd utils; $(LDLIBPTH) $(MAKE) clean
975 -cd x2p; $(LDLIBPTH) $(MAKE) clean
976 -@for x in $(DYNALOADER) $(dynamic_ext) $(static_ext) $(nonxs_ext) ; do \
977 $(LDLIBPTH) sh ext/util/make_ext clean $$x MAKE=$(MAKE) ; \
979 rm -f testcompile compilelog
982 -cd os2; rm -f Makefile
983 -cd pod; $(LDLIBPTH) $(MAKE) $(CLEAN)
984 -cd utils; $(LDLIBPTH) $(MAKE) $(CLEAN)
985 -cd x2p; $(LDLIBPTH) $(MAKE) $(CLEAN)
986 -@for x in $(DYNALOADER) $(dynamic_ext) $(static_ext) $(nonxs_ext) ; do \
987 $(LDLIBPTH) sh ext/util/make_ext $(CLEAN) $$x MAKE=$(MAKE) ; \
990 # Some systems do not support "?", so keep these files separate.
992 -rm -f core.*perl.*.? t/core.perl.*.? .?*.c
993 rm -f core *perl.core t/core t/*perl.core
994 rm -f t/misctmp* t/forktmp* t/tmp* t/c t/perl$(EXE_EXT) t/rantests
995 rm -f so_locations $(LIBPERL_NONSHR) $(MINIPERL_NONSHR)
996 rm -rf $(addedbyconf)
997 rm -f $(FIRSTMAKEFILE) $(FIRSTMAKEFILE).old makefile.old
998 rm -f $(private) lib/Config.pod
999 rm -rf $(unidatafiles) $(unidatadirs)
1001 rm -f lib/.exists lib/*/.exists lib/*/*/.exists
1002 rm -f h2ph.man pstruct
1005 rm -f testcompile compilelog
1006 -rmdir lib/B lib/Data lib/Digest
1008 -rmdir lib/Filter/Util lib/IO/Socket lib/IO
1009 -rmdir lib/List lib/MIME lib/Scalar lib/Sys
1010 -rmdir lib/threads lib/XS
1013 @$(LDLIBPTH) $(MAKE) _cleaner1 CLEAN=realclean
1014 @$(LDLIBPTH) $(MAKE) _cleaner2
1017 @$(LDLIBPTH) $(MAKE) _cleaner1 CLEAN=veryclean
1018 @$(LDLIBPTH) $(MAKE) _cleaner2
1019 -rm -f *~ *.orig */*~ */*.orig */*/*~ */*/*.orig
1021 # The following lint has practically everything turned on. Unfortunately,
1022 # you have to wade through a lot of mumbo jumbo that can't be suppressed.
1023 # If the source file has a /*NOSTRICT*/ somewhere, ignore the lint message
1028 lint $(lintflags) $(defs) perly.c $(c) > perl.fuzz
1030 # Need to unset during recursion to go out of loop.
1031 # The README below ensures that the dependency list is never empty and
1032 # that when MAKEDEPEND is empty $(FIRSTMAKEFILE) doesn't need rebuilding.
1034 MAKEDEPEND = Makefile makedepend
1036 $(FIRSTMAKEFILE): README $(MAKEDEPEND)
1037 $(MAKE) depend MAKEDEPEND=
1039 config.h: config_h.SH config.sh
1040 $(SHELL) config_h.SH
1042 # When done, touch perlmain.c so that it doesn't get remade each time.
1045 sh ./makedepend MAKE=$(MAKE)
1046 - test -s perlmain.c && touch perlmain.c
1047 cd x2p; $(MAKE) depend
1049 # Cannot postpone this until $firstmakefile is ready ;-)
1050 makedepend: makedepend.SH config.sh
1053 .PHONY: test check test_prep test_prep_nodll test_prep_pre _test_prep \
1054 test_tty test-tty _test_tty test_notty test-notty _test_notty \
1055 utest ucheck test.utf8 check.utf8 test.torture torturetest \
1056 test.utf16 check.utf16 utest.utf16 ucheck.utf16 \
1057 test.third check.third utest.third ucheck.third test_notty.third \
1058 test.deparse test_notty.deparse test_harness test_harness_notty \
1059 test.bytecompile minitest coretest test.taintwarn
1061 # Cannot delegate rebuilding of t/perl to make
1062 # to allow interlaced test and minitest
1067 cd t && (rm -f $(PERL)$(EXE_EXT); $(LNS) ../$(PERL)$(EXE_EXT) $(PERL)$(EXE_EXT))
1069 # Architecture-neutral stuff:
1071 test_prep_pre: preplibrary utilities $(nonxs_ext)
1073 test_prep: test_prep_pre miniperl$(EXE_EXT) $(unidatafiles) perl$(EXE_EXT) $(dynamic_ext) $(TEST_PERL_DLL)
1074 PERL=./perl $(MAKE) _test_prep
1077 cd t && $(PERL_DEBUG) $(LDLIBPTH) $(PERL) $(TESTFILE) $(TEST_ARGS) </dev/tty
1080 cd t && $(PERL_DEBUG) PERL_SKIP_TTY_TEST=1 $(LDLIBPTH) $(PERL) $(TESTFILE) $(TEST_ARGS)
1082 # The second branch is for testing without a tty or controlling terminal,
1085 if (true </dev/tty) >/dev/null 2>&1; then \
1086 $(MAKE) TEST_ARGS=$(TEST_ARGS) TESTFILE=$(TESTFILE) _test_tty ; \
1088 $(MAKE) TEST_ARGS=$(TEST_ARGS) TESTFILE=$(TESTFILE) _test_notty ; \
1090 @echo "Ran tests" > t/rantests
1092 test check: test_prep
1093 PERL=./perl $(MAKE) _test
1096 PERL=./perl $(MAKE) _test_tty
1098 test_notty: test_prep
1099 PERL=./perl $(MAKE) _test_notty
1101 utest ucheck test.utf8 check.utf8: test_prep
1102 PERL=./perl TEST_ARGS=-utf8 $(MAKE) _test
1105 PERL=./perl TEST_ARGS=-core $(MAKE) _test
1107 test-prep: test_prep
1111 test-notty: test_notty
1115 test.torture torturetest: test_prep
1116 PERL=./perl TEST_ARGS=-torture $(MAKE) _test
1118 # Targets for UTF16 testing:
1120 minitest.utf16: minitest.prep
1121 - cd t && (rm -f perl$(EXE_EXT); $(LNS) ../miniperl$(EXE_EXT) perl$(EXE_EXT)) \
1122 && $(LDLIBPTH) ./perl TEST -minitest -utf16 base/*.t comp/*.t cmd/*.t run/*.t io/*.t op/*.t uni/*.t </dev/tty
1124 test.utf16 check.utf16: test_prep
1125 PERL=./perl $(MAKE) TEST_ARGS=-utf16 _test
1127 utest.utf16 ucheck.utf16: test_prep
1128 PERL=./perl $(MAKE) TEST_ARGS="-utf8 -utf16" _test
1130 # Targets for valgrind testing:
1132 test_prep.valgrind: test_prep perl.valgrind
1133 PERL=./perl $(MAKE) _test_prep
1135 test.valgrind check.valgrind: test_prep perl.valgrind.config
1136 PERL=./perl PERL_DEBUG=PERL_VALGRIND=1 $(MAKE) _test
1138 utest.valgrind ucheck.valgrind: test_prep.valgrind perl.valgrind
1139 PERL=./perl PERL_DEBUG=PERL_VALGRIND=1 TEST_ARGS=-utf8 $(MAKE) _test
1141 test_notty.valgrind: test_prep.valgrind perl.valgrind
1142 PERL=./perl $(MAKE) PERL_DEBUG=PERL_VALGRIND=1 _test_notty
1144 # Targets for Third Degree testing.
1146 test_prep.third: test_prep perl.third
1147 PERL=./perl.third $(MAKE) _test_prep
1149 test.third check.third: test_prep.third perl.third
1150 PERL=./perl.third PERL_DEBUG=PERL_3LOG=1 $(MAKE) _test
1152 utest.third ucheck.third: test_prep.third perl.third
1153 PERL=./perl.third PERL_DEBUG=PERL_3LOG=1 TEST_ARGS=-utf8 $(MAKE) _test
1155 test_notty.third: test_prep.third perl.third
1156 PERL=./perl.third $(MAKE) PERL_DEBUG=PERL_3LOG=1 _test_notty
1158 # Targets for Bytecode/ByteLoader testing.
1160 test.bytecompile: test_prep
1161 PERL=./perl TEST_ARGS=-bytecompile $(MAKE) _test
1163 # Targets for Deparse testing.
1165 test.deparse: test_prep
1166 PERL=./perl TEST_ARGS=-deparse $(MAKE) _test
1168 test_notty.deparse: test_prep
1169 PERL=./perl TEST_ARGS=-deparse $(MAKE) _test_notty
1171 # Targets to run the test suite with -t
1173 test.taintwarn: test_prep
1174 PERL=./perl TEST_ARGS=-taintwarn $(MAKE) _test
1177 -@test -f lib/lib.pm && test -f lib/Config.pm || \
1178 $(MAKE) lib/Config.pm lib/lib.pm $(unidatafiles)
1180 @echo "You may see some irrelevant test failures if you have been unable"
1181 @echo "to build lib/Config.pm, lib/lib.pm or the Unicode data files."
1184 # Can't depend on lib/Config.pm because that might be where miniperl
1186 minitest: miniperl$(EXE_EXT) lib/re.pm minitest.prep
1187 - cd t && (rm -f perl$(EXE_EXT); $(LNS) ../miniperl$(EXE_EXT) perl$(EXE_EXT)) \
1188 && $(LDLIBPTH) ./perl TEST -minitest base/*.t comp/*.t cmd/*.t run/*.t io/*.t op/*.t uni/*.t </dev/tty
1192 test_harness: test_prep
1193 PERL=./perl $(MAKE) TESTFILE=harness _test
1195 test_harness_notty: test_prep
1196 PERL=./perl HARNESS_NOTTY=1 $(MAKE) TESTFILE=harness _test
1198 # Handy way to run perlbug -ok without having to install and run the
1199 # installed perlbug. We don't re-run the tests here - we trust the user.
1200 # Please *don't* use this unless all tests pass.
1201 # If you want to report test failures, use "make nok" instead.
1203 .PHONY: ok okfile oknack okfilenack nok nokfile noknack nokfilenack
1206 $(LDLIBPTH) ./perl -Ilib utils/perlbug -ok -s '(UNINSTALLED)'
1209 $(LDLIBPTH) ./perl -Ilib utils/perlbug -ok -s '(UNINSTALLED)' -F perl.ok
1212 $(LDLIBPTH) ./perl -Ilib utils/perlbug -ok -s '(UNINSTALLED)' -A
1214 okfilenack: utilities
1215 $(LDLIBPTH) ./perl -Ilib utils/perlbug -ok -s '(UNINSTALLED)' -F perl.ok -A
1218 $(LDLIBPTH) ./perl -Ilib utils/perlbug -nok -s '(UNINSTALLED)'
1221 $(LDLIBPTH) ./perl -Ilib utils/perlbug -nok -s '(UNINSTALLED)' -F perl.nok
1224 $(LDLIBPTH) ./perl -Ilib utils/perlbug -nok -s '(UNINSTALLED)' -A
1226 nokfilenack: utilities
1227 $(LDLIBPTH) ./perl -Ilib utils/perlbug -nok -s '(UNINSTALLED)' -F perl.nok -A
1229 .PHONY: clist hlist shlist pllist
1232 echo $(c) | tr ' ' $(TRNL) >.clist
1235 echo $(h) | tr ' ' $(TRNL) >.hlist
1238 echo $(sh) | tr ' ' $(TRNL) >.shlist
1241 echo $(pl) | tr ' ' $(TRNL) >.pllist
1243 Makefile: Makefile.SH ./config.sh
1244 $(SHELL) Makefile.SH
1248 perl '-MExtUtils::Manifest=&fullcheck' -e 'fullcheck()'
1251 elc: emacs/cperl-mode.elc
1253 emacs/cperl-mode.elc: emacs/cperl-mode.el
1254 -cd emacs; emacs -batch -q -no-site-file -f batch-byte-compile cperl-mode.el
1256 .PHONY: etags ctags tags
1260 TAGS: emacs/cperl-mode.elc
1265 # Let's hope make will not go into an infinite loop on case-unsensitive systems
1266 # This may also fail if . is in the head of the path, since perl will
1269 perl emacs/e2ctags.pl TAGS > tags
1271 # AUTOMATICALLY GENERATED MAKE DEPENDENCIES--PUT NOTHING BELOW THIS LINE
1272 # If this runs make out of memory, delete /usr/include lines.
1279 $ln Makefile ../Makefile
1282 $rm -f $firstmakefile
1284 # Now do any special processing required before building.
1289 echo "This is an EBCDIC system, checking if any parser files need regenerating." >&2
1294 rm -f y.tab.c y.tab.h
1297 # we are using two different yaccs in BS2000 Posix!
1298 byacc a2p.y >/dev/null 2>&1
1301 yacc a2p.y >/dev/null 2>&1
1304 if cmp -s y.tab.c a2p.c
1308 echo "a2p.y -> a2p.c" >&2
1311 sed -e 's/fprintf *( *stderr *,/PerlIO_printf(Perl_debug_log,/g' \
1312 -e 's|^static void __YY_YACC_MAIN.*BS2000.*|/*static main deleted*/|' \
1313 -e 's/y\.tab/a2p/g' a2p.c >a2p.tmp && mv a2p.tmp a2p.c
1316 # In case somebody yacc -d:ed the a2p.y.
1319 if cmp -s y.tab.h a2p.h
1323 echo "a2p.h -> a2p.h" >&2
1332 # Do nothing in VM/ESA.
1335 echo "'$osname' is an EBCDIC system I don't know that well." >&4
1339 '') echo "No parser files were regenerated. That's okay." >&2 ;;