1 diff -cr ..\perl5os2.patch\perl5.001m.andy/Makefile.SH ./Makefile.SH
2 *** ../perl5os2.patch/perl5.001m.andy/Makefile.SH Mon Oct 09 21:40:46 1995
3 --- ./Makefile.SH Thu Sep 28 00:13:40 1995
10 + # In case Configure is not patched:
11 + : ${obj_ext=.o} ${obj_ext_regexp='\.o'} ${lib_ext=.a} ${ar=ar} ${firstmakefile=makefile}
12 + : ${exe_ext=} ${cldlibs="$libs $cryptlib"}
19 *[0-9]) plibsuf=.$so.$patchlevel;;
25 *) shrpenv="env LD_RUN_PATH=$shrpdir";;
27 pldlflags="$cccdlflags";;
33 *[0-9]) plibsuf=.$so.$patchlevel;;
36 + if test "x$plibext" != "x" ; then plibsuf=$plibext d_shrplib=custom ; fi
40 *) shrpenv="env LD_RUN_PATH=$shrpdir";;
42 pldlflags="$cccdlflags";;
50 for f in $static_ext; do
51 base=`echo "$f" | sed 's/.*\///'`
52 ! static_list="$static_list lib/auto/$f/$base.a"
53 if test -f ext/$f/AutoInit.c; then
54 static_ai_list="$static_ai_list ext/$f/AutoInit.c"
58 for f in $static_ext; do
59 base=`echo "$f" | sed 's/.*\///'`
60 ! static_list="$static_list lib/auto/$f/$base\$(A)"
61 if test -f ext/$f/AutoInit.c; then
62 static_ai_list="$static_ai_list ext/$f/AutoInit.c"
66 static_ext = $static_list
67 ext = \$(dynamic_ext) \$(static_ext)
68 static_ext_autoinit = $static_ai_list
69 ! DYNALOADER = lib/auto/DynaLoader/DynaLoader.a
72 libs = $libs $cryptlib
74 public = perl $suidperl
76 shellflags = $shellflags
78 ## To use an alternate make, set \$altmake in config.sh.
79 MAKE = ${altmake-make}
82 static_ext = $static_list
83 ext = \$(dynamic_ext) \$(static_ext)
84 static_ext_autoinit = $static_ai_list
85 ! DYNALOADER = lib/auto/DynaLoader/DynaLoader\$(A)
87 libs = $libs $cryptlib
90 public = perl $suidperl
92 shellflags = $shellflags
94 + ## To make it possible a build on a case-unsensitive filesystem
96 + firstmakefile = $firstmakefile
98 + ## Architecture-specific objects
100 + archobjs = $archobjs
102 + ## Extention of object files
105 + O_REGEXP = $obj_ext_regexp
110 + .SUFFIXES: .c \$(O)
112 ## To use an alternate make, set \$altmake in config.sh.
113 MAKE = ${altmake-make}
118 c = $(c1) $(c2) $(c3) miniperlmain.c perlmain.c
120 ! obj1 = $(mallocobj) gv.o toke.o perly.o op.o regcomp.o dump.o util.o mg.o
121 ! obj2 = hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o
122 ! obj3 = doop.o doio.o regexec.o taint.o deb.o globals.o
124 ! obj = $(obj1) $(obj2) $(obj3)
126 # Once perl has been Configure'd and built ok you build different
127 # perl variants (Debugging, Embedded, Multiplicity etc) by saying:
130 c = $(c1) $(c2) $(c3) miniperlmain.c perlmain.c
132 ! obj1 = $(mallocobj) gv$(O) toke$(O) perly$(O) op$(O) regcomp$(O) dump$(O) util$(O) mg$(O)
133 ! obj2 = hv$(O) av$(O) run$(O) pp_hot$(O) sv$(O) pp$(O) scope$(O) pp_ctl$(O) pp_sys$(O)
134 ! obj3 = doop$(O) doio$(O) regexec$(O) taint$(O) deb$(O) globals$(O)
136 ! obj = $(obj1) $(obj2) $(obj3) $(archobjs)
138 # Once perl has been Configure'd and built ok you build different
139 # perl variants (Debugging, Embedded, Multiplicity etc) by saying:
146 $(CCCMD) $(PLDLFLAGS) $*.c
148 ! all: makefile miniperl $(private) $(public) $(dynamic_ext)
149 @echo " "; echo " Making x2p stuff"; cd x2p; $(MAKE) all
151 # This is now done by installman only if you actually want the man pages.
157 $(CCCMD) $(PLDLFLAGS) $*.c
159 ! all: $(firstmakefile) miniperl $(private) $(public) $(dynamic_ext)
160 @echo " "; echo " Making x2p stuff"; cd x2p; $(MAKE) all
162 # This is now done by installman only if you actually want the man pages.
165 # Phony target to force checking subdirectories.
166 # Apparently some makes require an action for the FORCE target.
170 # The $& notation tells Sequent machines that it can do a parallel make,
171 # and is harmless otherwise.
173 ! miniperl: $& miniperlmain.o $(perllib)
174 ! $(CC) $(LARGE) $(CLDFLAGS) -o miniperl miniperlmain.o $(perllib) $(libs)
176 ! miniperlmain.o: miniperlmain.c
177 $(CCCMD) $(PLDLFLAGS) $*.c
179 ! perlmain.c: miniperlmain.c config.sh makefile $(static_ext_autoinit)
180 sh writemain $(DYNALOADER) $(static_ext) > tmp
181 sh mv-if-diff tmp perlmain.c
183 ! perlmain.o: perlmain.c
184 $(CCCMD) $(PLDLFLAGS) $*.c
186 # The file ext.libs is a list of libraries that must be linked in
188 # Phony target to force checking subdirectories.
189 # Apparently some makes require an action for the FORCE target.
193 # The $& notation tells Sequent machines that it can do a parallel make,
194 # and is harmless otherwise.
196 ! miniperl: $& miniperlmain$(O) $(perllib)
197 ! $(CC) $(LARGE) $(CLDFLAGS) -o miniperl miniperlmain$(O) $(perllib) $(cldlibs)
199 ! miniperlmain$(O): miniperlmain.c
200 $(CCCMD) $(PLDLFLAGS) $*.c
202 ! perlmain.c: miniperlmain.c config.sh $(firstmakefile) $(static_ext_autoinit)
203 sh writemain $(DYNALOADER) $(static_ext) > tmp
204 sh mv-if-diff tmp perlmain.c
206 ! perlmain$(O): perlmain.c
207 $(CCCMD) $(PLDLFLAGS) $*.c
209 # The file ext.libs is a list of libraries that must be linked in
212 ext.libs: $(static_ext)
213 -@test -f ext.libs || touch ext.libs
215 ! perl: $& perlmain.o $(perllib) $(DYNALOADER) $(static_ext) ext.libs
216 ! $(SHRPENV) $(CC) $(LARGE) $(CLDFLAGS) $(CCDLFLAGS) -o perl perlmain.o $(perllib) $(DYNALOADER) $(static_ext) `cat ext.libs` $(libs)
218 ! pureperl: $& perlmain.o $(perllib) $(DYNALOADER) $(static_ext) ext.libs
219 ! purify $(CC) $(LARGE) $(CLDFLAGS) $(CCDLFLAGS) -o pureperl perlmain.o $(perllib) $(DYNALOADER) $(static_ext) `cat ext.libs` $(libs)
221 - quantperl: $& perlmain.o $(perllib) $(DYNALOADER) $(static_ext) ext.libs
222 - quantify $(CC) $(LARGE) $(CLDFLAGS) $(CCDLFLAGS) -o quantperl perlmain.o $(perllib) $(DYNALOADER) $(static_ext) `cat ext.libs` $(libs)
224 ! $(perllib): $& perl.o $(obj)
229 $spitshell >>Makefile <<'!NO!SUBS!'
230 ! $(LD) $(LDDLFLAGS) -o $@ perl.o $(obj)
234 $spitshell >>Makefile <<'!NO!SUBS!'
236 ! ar rcu $(perllib) perl.o $(obj)
237 @$(ranlib) $(perllib)
241 ext.libs: $(static_ext)
242 -@test -f ext.libs || touch ext.libs
244 ! perl: $& perlmain$(O) $(perllib) $(DYNALOADER) $(static_ext) ext.libs
245 ! $(SHRPENV) $(CC) $(LARGE) $(CLDFLAGS) $(CCDLFLAGS) -o perl perlmain$(O) $(perllib) $(DYNALOADER) $(static_ext) `cat ext.libs` $(libs)
247 ! pureperl: $& perlmain$(O) $(perllib) $(DYNALOADER) $(static_ext) ext.libs
248 ! purify $(CC) $(LARGE) $(CLDFLAGS) $(CCDLFLAGS) -o pureperl perlmain$(O) $(perllib) $(DYNALOADER) $(static_ext) `cat ext.libs` $(libs)
250 ! quantperl: $& perlmain$(O) $(perllib) $(DYNALOADER) $(static_ext) ext.libs
251 ! quantify $(CC) $(LARGE) $(CLDFLAGS) $(CCDLFLAGS) -o quantperl perlmain$(O) $(perllib) $(DYNALOADER) $(static_ext) `cat ext.libs` $(libs)
256 ! case "$d_shrplib" in
259 ! $spitshell >>Makefile <<'!NO!SUBS!'
260 ! $(perllib): $& perl$(O) $(obj)
266 $spitshell >>Makefile <<'!NO!SUBS!'
267 ! $(LD) $(LDDLFLAGS) -o $@ perl$(O) $(obj)
271 + if test -r $osname/Makefile.SH ; then
272 + . $osname/Makefile.SH
273 + $spitshell >>Makefile <<!GROK!THIS!
275 + Makefile: $osname/Makefile.SH
279 + echo "Could not find $osname/Makefile.SH! Skipping target \$(perllib) in Makefile!"
283 $spitshell >>Makefile <<'!NO!SUBS!'
285 ! $(AR) rcu $(perllib) perl$(O) $(obj)
286 @$(ranlib) $(perllib)
291 # checks as well as the special code to validate that the script in question
292 # has been invoked correctly.
294 ! suidperl: $& sperl.o perlmain.o $(perllib) $(DYNALOADER) $(static_ext) ext.libs
295 ! $(CC) $(LARGE) $(CLDFLAGS) $(CCDLFLAGS) -o suidperl perlmain.o sperl.o $(perllib) $(DYNALOADER) $(static_ext) `cat ext.libs` $(libs)
297 ! sperl.o: perl.c perly.h patchlevel.h $(h)
299 $(LNS) perl.c sperl.c
300 $(CCCMD) -DIAMSUID sperl.c
302 # checks as well as the special code to validate that the script in question
303 # has been invoked correctly.
305 ! suidperl: $& sperl$(O) perlmain$(O) $(perllib) $(DYNALOADER) $(static_ext) ext.libs
306 ! $(CC) $(LARGE) $(CLDFLAGS) $(CCDLFLAGS) -o suidperl perlmain$(O) sperl$(O) $(perllib) $(DYNALOADER) $(static_ext) `cat ext.libs` $(libs)
308 ! sperl$(O): perl.c perly.h patchlevel.h $(h)
310 $(LNS) perl.c sperl.c
311 $(CCCMD) -DIAMSUID sperl.c
314 # test -d lib/auto || mkdir lib/auto
316 preplibrary: miniperl lib/Config.pm
317 ! @./makedir lib/auto
318 @echo " AutoSplitting perl library"
319 @./miniperl -Ilib -e 'use AutoSplit; \
320 autosplit_lib_modules(@ARGV)' lib/*.pm lib/*/*.pm
322 # test -d lib/auto || mkdir lib/auto
324 preplibrary: miniperl lib/Config.pm
325 ! @sh ./makedir lib/auto
326 @echo " AutoSplitting perl library"
327 @./miniperl -Ilib -e 'use AutoSplit; \
328 autosplit_lib_modules(@ARGV)' lib/*.pm lib/*/*.pm
331 @sh ext/util/make_ext static $@ LIBPERL_A=$(perllib)
334 ! rm -f *.o *.a all perlmain.c
335 rm -f perl.exp ext.libs
336 -cd x2p; $(MAKE) clean
337 -cd pod; $(MAKE) clean
338 -@for x in $(DYNALOADER) $(dynamic_ext) $(static_ext) ; do \
340 @sh ext/util/make_ext static $@ LIBPERL_A=$(perllib)
343 ! rm -f *$(O) *$(A) all perlmain.c
344 rm -f perl.exp ext.libs
345 + -rm perl.export perl.dll perl.libexp perl.map perl.def
346 -cd x2p; $(MAKE) clean
347 -cd pod; $(MAKE) clean
348 -@for x in $(DYNALOADER) $(dynamic_ext) $(static_ext) ; do \
352 rm -f *.orig */*.orig *~ */*~ core t/core t/c t/perl
353 rm -rf $(addedbyconf)
354 ! rm -f makefile makefile.old
360 rm -f *.orig */*.orig *~ */*~ core t/core t/c t/perl
361 rm -rf $(addedbyconf)
362 ! rm -f $(firstmakefile) makefile.old
369 lint $(lintflags) $(defs) perly.c $(c) > perl.fuzz
377 lint $(lintflags) $(defs) perly.c $(c) > perl.fuzz
379 ! $(firstmakefile): Makefile
386 # When done, touch perlmain.c so that it doesn't get remade each time.
389 - test -s perlmain.c && touch perlmain.c
390 cd x2p; $(MAKE) depend
392 test: miniperl perl preplibrary $(dynamic_ext)
393 - cd t && chmod +x TEST */*.t
394 ! - cd t && (rm -f perl; $(LNS) ../perl perl) && ./perl TEST </dev/tty
397 - cd t && chmod +x TEST */*.t
398 ! - cd t && (rm -f perl; $(LNS) ../miniperl perl) \
399 && ./perl TEST base/*.t comp/*.t cmd/*.t io/*.t op/*.t </dev/tty
404 # When done, touch perlmain.c so that it doesn't get remade each time.
407 - test -s perlmain.c && touch perlmain.c
408 cd x2p; $(MAKE) depend
410 test: miniperl perl preplibrary $(dynamic_ext)
411 - cd t && chmod +x TEST */*.t
412 ! - cd t && (rm -f perl$(exe_ext); $(LNS) ../perl$(exe_ext) perl$(exe_ext)) && ./perl TEST </dev/tty
415 - cd t && chmod +x TEST */*.t
416 ! - cd t && (rm -f perl$(exe_ext); $(LNS) ../miniperl$(exe_ext) perl$(exe_ext)) \
417 && ./perl TEST base/*.t comp/*.t cmd/*.t io/*.t op/*.t </dev/tty
425 ! ln Makefile ../Makefile
433 ! $ln Makefile ../Makefile
436 ! rm -f $firstmakefile