perl 5.0 alpha 2
[p5sagit/p5-mst-13.2.git] / atarist / makefile.sm
CommitLineData
7b0cd887 1# : Makefile.SH,v 9820Revision: 4.0.1.2 9820Date: 91/06/07 10:14:43 $
2#
3# $Log: makefile.sm,v $
79072805 4# Revision 4.1 92/08/07 17:18:37 lwall
5# Stage 6 Snapshot
6#
7b0cd887 7# Revision 4.0.1.1 92/06/08 11:50:00 lwall
8# Initial revision
9#
10# Revision 4.0.1.2 91/06/07 10:14:43 lwall
11# patch4: cflags now emits entire cc command except for the filename
12# patch4: alternate make programs are now semi-supported
13# patch4: uperl.o no longer tries to link in libraries prematurely
14# patch4: installperl now installs x2p stuff too
15#
16# Revision 4.0.1.1 91/04/11 17:30:39 lwall
17# patch1: C flags are now settable on a per-file basis
18#
19# Revision 4.0 91/03/20 00:58:54 lwall
20# 4.0 baseline.
21#
22#
23
24CC = cgcc
25YACC = bison -y
26LDFLAGS =
27CLDFLAGS =
28SMALL =
29LARGE =
30mallocsrc = malloc.c
31mallocobj = malloc.o
32SLN = ln -s
33
34libs = -lgdbm -lpml
35
36public = perl.ttp
37
38# To use an alternate make, set in config.sh.
39MAKE = make
40
41
42CCCMD = $(CC) -O2 -fomit-frame-pointer -fstrength-reduce -c -DMYMALLOC
43
44private =
45
46scripts =
47
48manpages = perl.man h2ph.man
49
50util = echo.ttp perlglob.ttp
51
52sh = Makefile.SH makedepend.SH h2ph.SH
53
54h1 = EXTERN.h INTERN.h arg.h array.h cmd.h config.h form.h handy.h
55h2 = hash.h perl.h regcomp.h regexp.h spat.h stab.h str.h util.h
56
57h = $(h1) $(h2)
58
59c1 = array.c cmd.c cons.c consarg.c doarg.c doio.c dolist.c dump.c
60c2 = eval.c form.c hash.c $(mallocsrc) perl.c regcomp.c regexec.c
61c3 = stab.c str.c toke.c util.c atarist.c usersub.c
62
63c = $(c1) $(c2) $(c3)
64
65obj1 = array.o cmd.o cons.o consarg.o doarg.o doio.o dolist.o dump.o
66obj2 = eval.o form.o hash.o $(mallocobj) perl.o regcomp.o regexec.o
67obj3 = stab.o str.o toke.o util.o atarist.o
68
69obj = $(obj1) $(obj2) $(obj3)
70
71lintflags = -hbvxac
72
73# grrr
74SHELL = /bin/sh
75
76.c.o:
77 $(CCCMD) $*.c
78
79all: $(public) $(util)
80
81# This is the standard version that contains no "taint" checks and is
82# used for all scripts that aren't set-id or running under something set-id.
83# The $& notation is tells Sequent machines that it can do a parallel make,
84# and is harmless otherwise.
85
86perl.ttp: perly.o $(obj) usersub.o
87 $(CC) $(LARGE) $(CLDFLAGS) $(obj) perly.o usersub.o $(libs) -o perl.ttp -v -s
88
89echo.ttp: wildmat.o echo.c
90 $(CC) -O -mshort -fomit-frame-pointer -o echo.ttp \
91 echo.c wildmat.o -liio16 -s
92
93perlglob.ttp: wildmat.o perlglob.c
94 $(CC) -O -mshort -fomit-frame-pointer -o perlglob.ttp \
95 perlglob.c wildmat.o -liio16 -s
96
97wildmat.o: wildmat.c
98 $(CC) -O -mshort -fomit-frame-pointer -c wildmat.c
99
100perly.h: perly.c
101 @ echo Dummy dependency for dumb parallel make
102 touch perly.h
103
104perly.c: perly.y perly.fixer
105 @ echo 'Expect either' 29 shift/reduce and 59 reduce/reduce conflicts...
106 @ echo ' or' 27 shift/reduce and 61 reduce/reduce conflicts...
107 $(YACC) -d perly.y
108 sh ./perly.fixer y.tab.c perly.c
109 mv y.tab.h perly.h
110 echo 'extern YYSTYPE yylval;' >>perly.h
111
112perly.o: perly.c perly.h $(h)
113 $(CCCMD) perly.c
114
115
116clean:
117 rm -f *.o
118
119realclean: clean
120 rm -f *.ttp report core
121 rm -f perly.c perly.h
122
123# The following lint has practically everything turned on. Unfortunately,
124# you have to wade through a lot of mumbo jumbo that can't be suppressed.
125# If the source file has a /*NOSTRICT*/ somewhere, ignore the lint message
126# for that spot.
127
128lint: perly.c $(c)
129 lint $(lintflags) $(defs) perly.c $(c) > perl.fuzz
130
131depend: makedepend
132 - test -f perly.h || cp /dev/null perly.h
133 ./makedepend
134 - test -s perly.h || /bin/rm -f perly.h
135
136test: perl
137 - cd t && chmod +x TEST */*.t
138 - cd t && (rm -f perl; $(SLN) ../perl .) && ./perl TEST </dev/tty
139
140clist:
141 echo $(c) | tr ' ' '\012' >.clist
142
143hlist:
144 echo $(h) | tr ' ' '\012' >.hlist
145
146shlist:
147 echo $(sh) | tr ' ' '\012' >.shlist
148
149# AUTOMATICALLY GENERATED MAKE DEPENDENCIES--PUT NOTHING BELOW THIS LINE
150# If this runs make out of memory, delete /usr/include lines.
151array.o: EXTERN.h
152array.o: arg.h
153array.o: array.c
154array.o: array.h
155array.o: cmd.h
156array.o: config.h
157array.o: form.h
158array.o: handy.h
159array.o: hash.h
160array.o: perl.h
161array.o: regexp.h
162array.o: spat.h
163array.o: stab.h
164array.o: str.h
165array.o: util.h
166cmd.o: EXTERN.h
167cmd.o: arg.h
168cmd.o: array.h
169cmd.o: cmd.c
170cmd.o: cmd.h
171cmd.o: config.h
172cmd.o: form.h
173cmd.o: handy.h
174cmd.o: hash.h
175cmd.o: perl.h
176cmd.o: regexp.h
177cmd.o: spat.h
178cmd.o: stab.h
179cmd.o: str.h
180cmd.o: util.h
181cons.o: EXTERN.h
182cons.o: arg.h
183cons.o: array.h
184cons.o: cmd.h
185cons.o: config.h
186cons.o: cons.c
187cons.o: form.h
188cons.o: handy.h
189cons.o: hash.h
190cons.o: perl.h
191cons.o: perly.h
192cons.o: regexp.h
193cons.o: spat.h
194cons.o: stab.h
195cons.o: str.h
196cons.o: util.h
197consarg.o: EXTERN.h
198consarg.o: arg.h
199consarg.o: array.h
200consarg.o: cmd.h
201consarg.o: config.h
202consarg.o: consarg.c
203consarg.o: form.h
204consarg.o: handy.h
205consarg.o: hash.h
206consarg.o: perl.h
207consarg.o: regexp.h
208consarg.o: spat.h
209consarg.o: stab.h
210consarg.o: str.h
211consarg.o: util.h
212doarg.o: EXTERN.h
213doarg.o: arg.h
214doarg.o: array.h
215doarg.o: cmd.h
216doarg.o: config.h
217doarg.o: doarg.c
218doarg.o: form.h
219doarg.o: handy.h
220doarg.o: hash.h
221doarg.o: perl.h
222doarg.o: regexp.h
223doarg.o: spat.h
224doarg.o: stab.h
225doarg.o: str.h
226doarg.o: util.h
227doio.o: EXTERN.h
228doio.o: arg.h
229doio.o: array.h
230doio.o: cmd.h
231doio.o: config.h
232doio.o: doio.c
233doio.o: form.h
234doio.o: handy.h
235doio.o: hash.h
236doio.o: perl.h
237doio.o: regexp.h
238doio.o: spat.h
239doio.o: stab.h
240doio.o: str.h
241doio.o: util.h
242dolist.o: EXTERN.h
243dolist.o: arg.h
244dolist.o: array.h
245dolist.o: cmd.h
246dolist.o: config.h
247dolist.o: dolist.c
248dolist.o: form.h
249dolist.o: handy.h
250dolist.o: hash.h
251dolist.o: perl.h
252dolist.o: regexp.h
253dolist.o: spat.h
254dolist.o: stab.h
255dolist.o: str.h
256dolist.o: util.h
257dump.o: EXTERN.h
258dump.o: arg.h
259dump.o: array.h
260dump.o: cmd.h
261dump.o: config.h
262dump.o: dump.c
263dump.o: form.h
264dump.o: handy.h
265dump.o: hash.h
266dump.o: perl.h
267dump.o: regexp.h
268dump.o: spat.h
269dump.o: stab.h
270dump.o: str.h
271dump.o: util.h
272eval.o: EXTERN.h
273eval.o: arg.h
274eval.o: array.h
275eval.o: cmd.h
276eval.o: config.h
277eval.o: eval.c
278eval.o: form.h
279eval.o: handy.h
280eval.o: hash.h
281eval.o: perl.h
282eval.o: regexp.h
283eval.o: spat.h
284eval.o: stab.h
285eval.o: str.h
286eval.o: util.h
287form.o: EXTERN.h
288form.o: arg.h
289form.o: array.h
290form.o: cmd.h
291form.o: config.h
292form.o: form.c
293form.o: form.h
294form.o: handy.h
295form.o: hash.h
296form.o: perl.h
297form.o: regexp.h
298form.o: spat.h
299form.o: stab.h
300form.o: str.h
301form.o: util.h
302hash.o: EXTERN.h
303hash.o: arg.h
304hash.o: array.h
305hash.o: cmd.h
306hash.o: config.h
307hash.o: form.h
308hash.o: handy.h
309hash.o: hash.c
310hash.o: hash.h
311hash.o: perl.h
312hash.o: regexp.h
313hash.o: spat.h
314hash.o: stab.h
315hash.o: str.h
316hash.o: util.h
317perl.o: EXTERN.h
318perl.o: arg.h
319perl.o: array.h
320perl.o: cmd.h
321perl.o: config.h
322perl.o: form.h
323perl.o: handy.h
324perl.o: hash.h
325perl.o: patchlevel.h
326perl.o: perl.c
327perl.o: perl.h
328perl.o: perly.h
329perl.o: regexp.h
330perl.o: spat.h
331perl.o: stab.h
332perl.o: str.h
333perl.o: util.h
334regcomp.o: EXTERN.h
335regcomp.o: INTERN.h
336regcomp.o: arg.h
337regcomp.o: array.h
338regcomp.o: cmd.h
339regcomp.o: config.h
340regcomp.o: form.h
341regcomp.o: handy.h
342regcomp.o: hash.h
343regcomp.o: perl.h
344regcomp.o: regcomp.c
345regcomp.o: regcomp.h
346regcomp.o: regexp.h
347regcomp.o: spat.h
348regcomp.o: stab.h
349regcomp.o: str.h
350regcomp.o: util.h
351regexec.o: EXTERN.h
352regexec.o: arg.h
353regexec.o: array.h
354regexec.o: cmd.h
355regexec.o: config.h
356regexec.o: form.h
357regexec.o: handy.h
358regexec.o: hash.h
359regexec.o: perl.h
360regexec.o: regcomp.h
361regexec.o: regexec.c
362regexec.o: regexp.h
363regexec.o: spat.h
364regexec.o: stab.h
365regexec.o: str.h
366regexec.o: util.h
367stab.o: EXTERN.h
368stab.o: arg.h
369stab.o: array.h
370stab.o: cmd.h
371stab.o: config.h
372stab.o: form.h
373stab.o: handy.h
374stab.o: hash.h
375stab.o: perl.h
376stab.o: regexp.h
377stab.o: spat.h
378stab.o: stab.c
379stab.o: stab.h
380stab.o: str.h
381stab.o: util.h
382str.o: EXTERN.h
383str.o: arg.h
384str.o: array.h
385str.o: cmd.h
386str.o: config.h
387str.o: form.h
388str.o: handy.h
389str.o: hash.h
390str.o: perl.h
391str.o: perly.h
392str.o: regexp.h
393str.o: spat.h
394str.o: stab.h
395str.o: str.c
396str.o: str.h
397str.o: util.h
398toke.o: EXTERN.h
399toke.o: arg.h
400toke.o: array.h
401toke.o: cmd.h
402toke.o: config.h
403toke.o: form.h
404toke.o: handy.h
405toke.o: hash.h
406toke.o: perl.h
407toke.o: perly.h
408toke.o: regexp.h
409toke.o: spat.h
410toke.o: stab.h
411toke.o: str.h
412toke.o: toke.c
413toke.o: util.h
414util.o: EXTERN.h
415util.o: arg.h
416util.o: array.h
417util.o: cmd.h
418util.o: config.h
419util.o: form.h
420util.o: handy.h
421util.o: hash.h
422util.o: perl.h
423util.o: regexp.h
424util.o: spat.h
425util.o: stab.h
426util.o: str.h
427util.o: util.c
428util.o: util.h
429atarist.o: EXTERN.h
430atarist.o: arg.h
431atarist.o: array.h
432atarist.o: cmd.h
433atarist.o: config.h
434atarist.o: form.h
435atarist.o: handy.h
436atarist.o: hash.h
437atarist.o: perl.h
438atarist.o: regexp.h
439atarist.o: spat.h
440atarist.o: stab.h
441atarist.o: str.h
442atarist.o: atarist.c
443atarist.o: util.h
444
445malloc.o: EXTERN.h
446malloc.o: arg.h
447malloc.o: array.h
448malloc.o: cmd.h
449malloc.o: config.h
450malloc.o: form.h
451malloc.o: handy.h
452malloc.o: hash.h
453malloc.o: perl.h
454malloc.o: regexp.h
455malloc.o: spat.h
456malloc.o: stab.h
457malloc.o: str.h
458malloc.o: malloc.c
459malloc.o: util.h
460