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