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