perl 5.003_02: [changes beteween cumulative patches and tarball release]
[p5sagit/p5-mst-13.2.git] / Makefile.SH
CommitLineData
2304df62 1case $CONFIG in
2'')
3 if test -f config.sh; then TOP=.;
4 elif test -f ../config.sh; then TOP=..;
5 elif test -f ../../config.sh; then TOP=../..;
6 elif test -f ../../../config.sh; then TOP=../../..;
7 elif test -f ../../../../config.sh; then TOP=../../../..;
8 else
9 echo "Can't find config.sh."; exit 1
10 fi
11 . $TOP/config.sh
12 ;;
13esac
14: This forces SH files to create target in same directory as SH file.
15: This is so that make depend always knows where to find SH derivatives.
16case "$0" in
17*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
18esac
19
2304df62 20case "$d_dosuid" in
21*define*) suidperl='suidperl' ;;
22*) suidperl='';;
23esac
24
ecfc5424 25shrpenv=""
26case "$d_shrplib" in
27*define*)
655635e8 28 pldlflags="$cccdlflags"
ecfc5424 29 patchlevel=`egrep '^#define[ ]+PATCHLEVEL' patchlevel.h \
30 | awk '{print $3}'`
655635e8 31 if test -z "$isnext_4"
32 then
33 case "$patchlevel" in
34 *[0-9]) plibsuf=.$so.$patchlevel;;
35 *) plibsuf=.$so;;
36 esac
37 case "$shrpdir" in
38 /usr/lib) ;;
39 "") ;;
40 *) shrpenv="env LD_RUN_PATH=$shrpdir";;
41 esac
42 else
43 # NeXT uses $patchlevel to set the current version of the dynamic
44 # library produced later. And the Major release number in the name
45 plibsuf=.5.$so
760ac839 46 fi
47 if test "$osname" = "os2" ; then
48 d_shrplib=custom;
49 shrpenv=
50 plibsuf=$plibext
51 fi
52 ;;
cd4d8a96 53*) plibsuf=$lib_ext
ecfc5424 54 pldlflags="";;
55esac
56
a0d0e21e 57: Prepare dependency lists for Makefile.
58dynamic_list=' '
59for f in $dynamic_ext; do
60 : the dependency named here will never exist
ecfc5424 61 base=`echo "$f" | sed 's/.*\///'`
75f92628 62 dynamic_list="$dynamic_list lib/auto/$f/$base.$dlext"
a0d0e21e 63done
64
65static_list=' '
a0d0e21e 66for f in $static_ext; do
67 base=`echo "$f" | sed 's/.*\///'`
cd4d8a96 68 static_list="$static_list lib/auto/$f/$base\$(LIB_EXT)"
a0d0e21e 69done
70
655635e8 71: ${bin_sh=/bin/sh}
72
2304df62 73echo "Extracting Makefile (with variable substitutions)"
655635e8 74rm -f Makefile
75$spitshell >Makefile <<!GROK!THIS!
a0d0e21e 76# Makefile.SH
85e6fe83 77# This file is derived from Makefile.SH. Any changes made here will
78# be lost the next time you run Configure.
655635e8 79# Makefile is used to generate $firstmakefile. The only difference
80# is that $firstmakefile has the dependencies filled in at the end.
2304df62 81#
fed7345c 82#
2304df62 83# I now supply perly.c with the kits, so don't remake perly.c without byacc
84BYACC = $byacc
85CC = $cc
232e078e 86LD = $ld
16d20bd9 87
2304df62 88LDFLAGS = $ldflags
89CLDFLAGS = $ldflags
85e6fe83 90
2304df62 91SMALL = $small
92LARGE = $large $split
655635e8 93MAB = $mab
2304df62 94mallocsrc = $mallocsrc
95mallocobj = $mallocobj
85e6fe83 96LNS = $lns
2304df62 97RMS = rm -f
85e6fe83 98ranlib = $ranlib
99
16d20bd9 100# The following are mentioned only to make metaconfig include the
101# appropriate questions in Configure. If you want to change these,
8e07c86e 102# edit config.sh instead, or specify --man1dir=/wherever on
16d20bd9 103# installman commandline.
104bin = $installbin
105scriptdir = $scriptdir
655635e8 106shrpdir = $shrpdir
16d20bd9 107privlib = $installprivlib
108man1dir = $man1dir
109man1ext = $man1ext
110man3dir = $man3dir
111man3ext = $man3ext
112
85e6fe83 113# The following are used to build and install shared libraries for
114# dynamic loading.
115LDDLFLAGS = $lddlflags
116CCDLFLAGS = $ccdlflags
a0d0e21e 117DLSUFFIX = .$dlext
ecfc5424 118PLDLFLAGS = $pldlflags
119PLIBSUF = $plibsuf
120SHRPENV = $shrpenv
a0d0e21e 121
122dynamic_ext = $dynamic_list
123static_ext = $static_list
124ext = \$(dynamic_ext) \$(static_ext)
cd4d8a96 125DYNALOADER = lib/auto/DynaLoader/DynaLoader\$(LIB_EXT)
2304df62 126
127libs = $libs $cryptlib
128
909b3858 129public = perl $suidperl utilities translators
2304df62 130
131shellflags = $shellflags
132
a0d0e21e 133## To use an alternate make, set \$altmake in config.sh.
2304df62 134MAKE = ${altmake-make}
4633a7c4 135
136# These variables will be used in a future version to make
137# the make file more portable to non-unix systems.
138AR = $ar
139EXE_EXT = $exe_ext
140LIB_EXT = $lib_ext
141OBJ_EXT = $obj_ext
142PATH_SEP = $path_sep
143
144FIRSTMAKEFILE = $firstmakefile
145
146# Any special object files needed by this architecture, e.g. os2/os2.obj
147ARCHOBJS = $archobjs
148
cd4d8a96 149.SUFFIXES: .c \$(OBJ_EXT)
150
655635e8 151SHELL = $bin_sh
152
2304df62 153!GROK!THIS!
154
85e6fe83 155## In the following dollars and backticks do not need the extra backslash.
2304df62 156$spitshell >>Makefile <<'!NO!SUBS!'
157
a0d0e21e 158CCCMD = `sh $(shellflags) cflags $(perllib) $@`
2304df62 159
fed7345c 160private = preplibrary lib/ExtUtils/Miniperl.pm lib/Config.pm
2304df62 161
4633a7c4 162# Files to be built with variable substitution before miniperl
163# is available.
164sh = Makefile.SH cflags.SH config_h.SH makeaperl.SH makedepend.SH \
165 makedir.SH perl_exp.SH writemain.SH
166
167shextract = Makefile cflags config.h makeaperl makedepend \
655635e8 168 makedir perl.exp writemain
4633a7c4 169
170# Files to be built with variable substitution after miniperl is
171# available. Dependencies handled manually below (for now).
2304df62 172
909b3858 173pl = pod/pod2html.PL pod/pod2latex.PL pod/pod2man.PL pod/pod2text.PL
4633a7c4 174
909b3858 175plextract = pod/pod2html pod/pod2latex pod/pod2man pod/pod2text
4633a7c4 176
177addedbyconf = UU $(shextract) $(plextract) pstruct
2304df62 178
fed7345c 179h1 = EXTERN.h INTERN.h XSUB.h av.h config.h cop.h cv.h dosish.h
a0d0e21e 180h2 = embed.h form.h gv.h handy.h hv.h keywords.h mg.h op.h
2304df62 181h3 = opcode.h patchlevel.h perl.h perly.h pp.h proto.h regcomp.h
760ac839 182h4 = regexp.h scope.h sv.h unixish.h util.h perlio.h
2304df62 183h = $(h1) $(h2) $(h3) $(h4)
184
a0d0e21e 185c1 = $(mallocsrc) av.c scope.c op.c doop.c doio.c dump.c hv.c mg.c
186c2 = perl.c perly.c pp.c pp_hot.c pp_ctl.c pp_sys.c regcomp.c regexec.c
760ac839 187c3 = gv.c sv.c taint.c toke.c util.c deb.c run.c universal.c globals.c perlio.c
2304df62 188
a0d0e21e 189c = $(c1) $(c2) $(c3) miniperlmain.c perlmain.c
2304df62 190
cd4d8a96 191obj1 = $(mallocobj) gv$(OBJ_EXT) toke$(OBJ_EXT) perly$(OBJ_EXT) op$(OBJ_EXT) regcomp$(OBJ_EXT) dump$(OBJ_EXT) util$(OBJ_EXT) mg$(OBJ_EXT)
192obj2 = 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)
760ac839 193obj3 = doop$(OBJ_EXT) doio$(OBJ_EXT) regexec$(OBJ_EXT) taint$(OBJ_EXT) deb$(OBJ_EXT) universal$(OBJ_EXT) globals$(OBJ_EXT) perlio$(OBJ_EXT)
655635e8 194
4633a7c4 195obj = $(obj1) $(obj2) $(obj3) $(ARCHOBJS)
2304df62 196
a0d0e21e 197# Once perl has been Configure'd and built ok you build different
198# perl variants (Debugging, Embedded, Multiplicity etc) by saying:
199# make clean; make perllib=libperl<type>.a
200# where <type> is some combination of 'd' and(or) 'e' or 'm'.
201# See cflags to understand how this works.
202#
203# Eventually some form of 'make-a-perl' script will automate this
204# together with linking a perl executable with any desired
205# static modules.
ecfc5424 206perllib = libperl$(PLIBSUF)
a0d0e21e 207
2304df62 208lintflags = -hbvxac
209
cd4d8a96 210.c$(OBJ_EXT):
655635e8 211 $(CCCMD) $(MAB) $(PLDLFLAGS) $*.c
2304df62 212
655635e8 213all: $(FIRSTMAKEFILE) miniperl $(private) $(plextract) $(public) $(dynamic_ext)
909b3858 214 @echo " "; echo " Everything is up to date."
215
216translators: miniperl lib/Config.pm FORCE
a0d0e21e 217 @echo " "; echo " Making x2p stuff"; cd x2p; $(MAKE) all
8e07c86e 218
909b3858 219utilities: miniperl lib/Config.pm FORCE
220 @echo " "; echo " Making utilities"; cd utils; $(MAKE) all
221
222
16d20bd9 223# This is now done by installman only if you actually want the man pages.
224# @echo " "; echo " Making docs"; cd pod; $(MAKE) all;
85e6fe83 225
226# Phony target to force checking subdirectories.
e50aee73 227# Apparently some makes require an action for the FORCE target.
85e6fe83 228FORCE:
4633a7c4 229 @sh -c true
85e6fe83 230
2304df62 231# The $& notation tells Sequent machines that it can do a parallel make,
232# and is harmless otherwise.
c07a80fd 233# The miniperl -w -MExporter line is a basic cheap test to catch errors
234# before make goes on to run preplibrary and then MakeMaker on extensions.
235# This is very handy because later errors are often caused by miniperl
236# build problems but that's not obvious to the novice.
237# The Module used here must not depend on Config or any extensions.
2304df62 238
cd4d8a96 239miniperl: $& miniperlmain$(OBJ_EXT) $(perllib)
655635e8 240 $(CC) $(LARGE) $(MAB) $(CLDFLAGS) -o miniperl miniperlmain$(OBJ_EXT) $(perllib) $(libs)
73169306 241 @./miniperl -w -Ilib -MExporter -e 0 || $(MAKE) minitest
2304df62 242
cd4d8a96 243miniperlmain$(OBJ_EXT): miniperlmain.c
655635e8 244 $(CCCMD) $(MAB) $(PLDLFLAGS) $*.c
ecfc5424 245
655635e8 246perlmain.c: miniperlmain.c config.sh $(FIRSTMAKEFILE)
a0d0e21e 247 sh writemain $(DYNALOADER) $(static_ext) > tmp
248 sh mv-if-diff tmp perlmain.c
85e6fe83 249
cd4d8a96 250perlmain$(OBJ_EXT): perlmain.c
655635e8 251 $(CCCMD) $(MAB) $(PLDLFLAGS) $*.c
85e6fe83 252
a0d0e21e 253# The file ext.libs is a list of libraries that must be linked in
254# for static extensions, e.g. -lm -lgdbm, etc. The individual
255# static extension Makefile's add to it.
fed7345c 256ext.libs: $(static_ext)
a0d0e21e 257 -@test -f ext.libs || touch ext.libs
85e6fe83 258
cd4d8a96 259perl: $& perlmain$(OBJ_EXT) $(perllib) $(DYNALOADER) $(static_ext) ext.libs
760ac839 260 $(SHRPENV) $(CC) $(LARGE) $(MAB) $(CLDFLAGS) $(CCDLFLAGS) -o perl perlmain$(OBJ_EXT) $(DYNALOADER) $(static_ext) $(perllib) `cat ext.libs` $(libs)
85e6fe83 261
cd4d8a96 262pureperl: $& perlmain$(OBJ_EXT) $(perllib) $(DYNALOADER) $(static_ext) ext.libs
760ac839 263 purify $(CC) $(LARGE) $(MAB) $(CLDFLAGS) $(CCDLFLAGS) -o pureperl perlmain$(OBJ_EXT) $(DYNALOADER) $(static_ext) $(perllib) `cat ext.libs` $(libs)
2304df62 264
cd4d8a96 265quantperl: $& perlmain$(OBJ_EXT) $(perllib) $(DYNALOADER) $(static_ext) ext.libs
760ac839 266 quantify $(CC) $(LARGE) $(MAB) $(CLDFLAGS) $(CCDLFLAGS) -o quantperl perlmain$(OBJ_EXT) $(DYNALOADER) $(static_ext) $(perllib) `cat ext.libs` $(libs)
2304df62 267
cd4d8a96 268$(perllib): $& perl$(OBJ_EXT) $(obj)
ecfc5424 269!NO!SUBS!
270
271case "$d_shrplib" in
272*define*)
655635e8 273if test -z "$isnext_4"
274then
ecfc5424 275$spitshell >>Makefile <<'!NO!SUBS!'
cd4d8a96 276 $(LD) $(LDDLFLAGS) -o $@ perl$(OBJ_EXT) $(obj)
ecfc5424 277!NO!SUBS!
655635e8 278else
279$spitshell >>Makefile <<!GROK!THIS!
280 version=$patchlevel; \\
760ac839 281 libtool -dynamic -undefined warning -framework System \\
282 -compatibility_version 1 -current_version \$\$version \\
283 -prebind -seg1addr 0x27000000 -install_name \$(shrpdir)/\$@ \\
284 -o \$@ perl.o \$(obj)
655635e8 285!GROK!THIS!
655635e8 286fi
ecfc5424 287;;
cd4d8a96 288custom)
289if test -r $osname/Makefile.SHs ; then
290 . $osname/Makefile.SHs
291 $spitshell >>Makefile <<!GROK!THIS!
292
293Makefile: $osname/Makefile.SHs
294
295!GROK!THIS!
296else
297 echo "Could not find $osname/Makefile.SH! Skipping target \$(perllib) in Makefile!"
298fi
299;;
ecfc5424 300*)
655635e8 301if test -z "$isnext_4"
302then
ecfc5424 303$spitshell >>Makefile <<'!NO!SUBS!'
5d94fbed 304 rm -f $(perllib)
cd4d8a96 305 $(AR) rcu $(perllib) perl$(OBJ_EXT) $(obj)
a0d0e21e 306 @$(ranlib) $(perllib)
ecfc5424 307!NO!SUBS!
655635e8 308else
309$spitshell >>Makefile <<'!NO!SUBS!'
310 libtool -static -o $(perllib) perl.o $(obj)
311!NO!SUBS!
312fi
ecfc5424 313;;
314esac
315
316$spitshell >>Makefile <<'!NO!SUBS!'
2304df62 317
318# This version, if specified in Configure, does ONLY those scripts which need
319# set-id emulation. Suidperl must be setuid root. It contains the "taint"
320# checks as well as the special code to validate that the script in question
321# has been invoked correctly.
322
cd4d8a96 323suidperl: $& sperl$(OBJ_EXT) perlmain$(OBJ_EXT) $(perllib) $(DYNALOADER) $(static_ext) ext.libs
655635e8 324 $(CC) $(LARGE) $(MAB) $(CLDFLAGS) $(CCDLFLAGS) -o suidperl perlmain$(OBJ_EXT) sperl$(OBJ_EXT) $(perllib) $(DYNALOADER) $(static_ext) `cat ext.libs` $(libs)
2304df62 325
cd4d8a96 326sperl$(OBJ_EXT): perl.c perly.h patchlevel.h $(h)
2304df62 327 $(RMS) sperl.c
85e6fe83 328 $(LNS) perl.c sperl.c
655635e8 329 $(CCCMD) $(MAB) -DIAMSUID sperl.c
2304df62 330 $(RMS) sperl.c
331
fec02dd3 332# We have to call our ./makedir because Ultrix 4.3 make can't handle the line
333# test -d lib/auto || mkdir lib/auto
334#
4633a7c4 335preplibrary: miniperl lib/Config.pm $(plextract)
cd4d8a96 336 @sh ./makedir lib/auto
a0d0e21e 337 @echo " AutoSplitting perl library"
338 @./miniperl -Ilib -e 'use AutoSplit; \
339 autosplit_lib_modules(@ARGV)' lib/*.pm lib/*/*.pm
2304df62 340
75f92628 341# Take care to avoid modifying lib/Config.pm without reason
655635e8 342lib/Config.pm: config.sh miniperl configpm
75f92628 343 ./miniperl configpm tmp
344 sh mv-if-diff tmp lib/Config.pm
2304df62 345
37120919 346lib/ExtUtils/Miniperl.pm: miniperlmain.c miniperl minimod.pl lib/Config.pm
347 ./miniperl minimod.pl > tmp && mv tmp $@
fed7345c 348
4633a7c4 349$(plextract): miniperl lib/Config.pm
350 ./miniperl -Ilib $@.PL
351
16d20bd9 352install: all install.perl install.man
353
cd4d8a96 354install.perl: all installperl
2304df62 355 ./perl installperl
a0d0e21e 356
cd4d8a96 357install.man: all installman
16d20bd9 358 ./perl installman
359
360# Not implemented yet.
cd4d8a96 361#install.html: all installhtml
16d20bd9 362# ./perl installhtml
363
a0d0e21e 364# I now supply perly.c with the kits, so the following section is
56febc5e 365# used only if you force byacc to run by saying
366# make run_byacc
367# Since we patch up the byacc output, the perly.fixer script needs
368# to run with precisely the same version of byacc as I use. You
369# normally shouldn't remake perly.[ch].
370
232e078e 371run_byacc: FORCE
c07a80fd 372 @ echo 'Expect' 130 shift/reduce and 1 reduce/reduce conflict
56febc5e 373 $(BYACC) -d perly.y
374 sh $(shellflags) ./perly.fixer y.tab.c perly.c
760ac839 375 sed -e 's/fprintf *( *stderr *,/PerlIO_printf(Perl_debug_log,/g' perly.c >perly.tmp && mv perly.tmp perly.c
56febc5e 376 mv y.tab.h perly.h
377 echo 'extern YYSTYPE yylval;' >>perly.h
4633a7c4 378 - perl vms/vms_yfix.pl perly.c perly.h vms/perly_c.vms vms/perly_h.vms
56febc5e 379
380# We don't want to regenerate perly.c and perly.h, but they might
381# appear out-of-date after a patch is applied or a new distribution is
382# made.
383perly.c: perly.y
cd4d8a96 384 -@sh -c true
56febc5e 385
386perly.h: perly.y
cd4d8a96 387 -@sh -c true
a0d0e21e 388
e50aee73 389# The following three header files are generated automatically
390# keywords.h: keywords.pl
391# opcode.h: opcode.pl
392# embed.h: embed.pl global.sym interp.sym
393# The correct versions should be already supplied with the perl kit,
394# in case you don't have perl available.
395# To force them to run, type
396# make regen_headers
397regen_headers: FORCE
398 perl keywords.pl
399 perl opcode.pl
400 perl embed.pl
8e07c86e 401
a0d0e21e 402# Extensions:
403# Names added to $(dynamic_ext) or $(static_ext) will automatically
fed7345c 404# get built. There should ordinarily be no need to change any of
a0d0e21e 405# this part of makefile.
406#
407# The dummy dependency is a place holder in case $(dynamic_ext) or
408# $(static_ext) is empty.
409#
410# DynaLoader may be needed for extensions that use Makefile.PL.
411
412$(DYNALOADER): miniperl preplibrary FORCE
40000a8c 413 @sh ext/util/make_ext static $@ LIBPERL_A=$(perllib)
a0d0e21e 414
415d_dummy $(dynamic_ext): miniperl preplibrary $(DYNALOADER) FORCE
40000a8c 416 @sh ext/util/make_ext dynamic $@ LIBPERL_A=$(perllib)
a0d0e21e 417
418s_dummy $(static_ext): miniperl preplibrary $(DYNALOADER) FORCE
40000a8c 419 @sh ext/util/make_ext static $@ LIBPERL_A=$(perllib)
2304df62 420
421clean:
cd4d8a96 422 rm -f *$(OBJ_EXT) *$(LIB_EXT) all perlmain.c
fed7345c 423 rm -f perl.exp ext.libs
cd4d8a96 424 -rm perl.export perl.dll perl.libexp perl.map perl.def
a0d0e21e 425 -cd pod; $(MAKE) clean
909b3858 426 -cd utils; $(MAKE) clean
427 -cd x2p; $(MAKE) clean
75f92628 428 -@for x in $(DYNALOADER) $(dynamic_ext) $(static_ext) ; do \
42793c05 429 sh ext/util/make_ext clean $$x ; \
a0d0e21e 430 done
ecfc5424 431 rm -f perl suidperl miniperl $(perllib)
2304df62 432
433realclean: clean
4633a7c4 434 -cd os2; rm -f Makefile
909b3858 435 -cd pod; $(MAKE) realclean
436 -cd utils; $(MAKE) realclean
437 -cd x2p; $(MAKE) realclean
8e07c86e 438 -@for x in $(DYNALOADER) $(dynamic_ext) $(static_ext) ; do \
42793c05 439 sh ext/util/make_ext realclean $$x ; \
a0d0e21e 440 done
42793c05 441 rm -f *.orig */*.orig *~ */*~ core t/core t/c t/perl
a0d0e21e 442 rm -rf $(addedbyconf)
cd4d8a96 443 rm -f $(FIRSTMAKEFILE) $(FIRSTMAKEFILE).old
fed7345c 444 rm -f $(private)
a0d0e21e 445 rm -rf lib/auto
232e078e 446 rm -f lib/.exists
16d20bd9 447 rm -f h2ph.man pstruct
a0d0e21e 448 rm -rf .config
75f92628 449 @echo "Note that make realclean does not delete config.sh"
2304df62 450
ecfc5424 451clobber: realclean
452 rm -f config.sh cppstdin
fed7345c 453
ecfc5424 454distclean: clobber
455
2304df62 456# The following lint has practically everything turned on. Unfortunately,
457# you have to wade through a lot of mumbo jumbo that can't be suppressed.
458# If the source file has a /*NOSTRICT*/ somewhere, ignore the lint message
459# for that spot.
460
461lint: perly.c $(c)
462 lint $(lintflags) $(defs) perly.c $(c) > perl.fuzz
463
cd4d8a96 464# Need to unset during recursion to go out of loop
465
466MAKEDEPEND = makedepend
467
468$(FIRSTMAKEFILE): Makefile $(MAKEDEPEND)
469 $(MAKE) depend MAKEDEPEND=
a0d0e21e 470
75f92628 471config.h: config.sh
655635e8 472 $(SHELL) config_h.SH
473
474perl.exp: perl_exp.SH config.sh
475 $(SHELL) perl_exp.SH
75f92628 476
a0d0e21e 477# When done, touch perlmain.c so that it doesn't get remade each time.
2304df62 478depend: makedepend
cd4d8a96 479 sh ./makedepend
a0d0e21e 480 - test -s perlmain.c && touch perlmain.c
2304df62 481 cd x2p; $(MAKE) depend
482
cd4d8a96 483# Cannot postpone this until $firstmakefile is ready ;-)
484makedepend: makedepend.SH config.sh
485 sh ./makedepend.SH
486
a0d0e21e 487test: miniperl perl preplibrary $(dynamic_ext)
cd4d8a96 488 - cd t && (rm -f perl$(EXE_EXT); $(LNS) ../perl$(EXE_EXT) perl$(EXE_EXT)) && ./perl TEST </dev/tty
2304df62 489
760ac839 490minitest: miniperl lib/Config.pm
cd4d8a96 491 - cd t && (rm -f perl$(EXE_EXT); $(LNS) ../miniperl$(EXE_EXT) perl$(EXE_EXT)) \
16d20bd9 492 && ./perl TEST base/*.t comp/*.t cmd/*.t io/*.t op/*.t </dev/tty
493
85e6fe83 494clist: $(c)
2304df62 495 echo $(c) | tr ' ' '\012' >.clist
496
85e6fe83 497hlist: $(h)
2304df62 498 echo $(h) | tr ' ' '\012' >.hlist
499
85e6fe83 500shlist: $(sh)
2304df62 501 echo $(sh) | tr ' ' '\012' >.shlist
502
4633a7c4 503pllist: $(pl)
504 echo $(pl) | tr ' ' '\012' >.pllist
505
760ac839 506Makefile: Makefile.SH ./config.sh
507 $(SHELL) Makefile.SH
508
509distcheck : FORCE
510 perl '-MExtUtils::Manifest=&fullcheck' -e 'fullcheck()'
511
512manifest :
513 perl '-MExtUtils::Manifest=&mkmanifest' -e 'mkmanifest()'
514
2304df62 515# AUTOMATICALLY GENERATED MAKE DEPENDENCIES--PUT NOTHING BELOW THIS LINE
516# If this runs make out of memory, delete /usr/include lines.
517!NO!SUBS!
518
85e6fe83 519$eunicefix Makefile
2304df62 520case `pwd` in
521*SH)
85e6fe83 522 $rm -f ../Makefile
cd4d8a96 523 $ln Makefile ../Makefile
2304df62 524 ;;
525esac
cd4d8a96 526$rm -f $firstmakefile