perl 5.0 alpha 9
[p5sagit/p5-mst-13.2.git] / atarist / makefile.sm
1 # : Makefile.SH,v 9820Revision: 4.0.1.2 9820Date: 91/06/07 10:14:43 $
2 #
3 # $Log: makefile.sm,v $
4 # Revision 4.1  92/08/07  17:18:37  lwall
5 # Stage 6 Snapshot
6
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
24 CC = cgcc
25 YACC = bison -y
26 LDFLAGS = 
27 CLDFLAGS = 
28 SMALL = 
29 LARGE =  
30 mallocsrc = malloc.c
31 mallocobj = malloc.o
32 SLN = ln -s
33
34 libs = -lgdbm -lpml 
35
36 public = perl.ttp
37
38 # To use an alternate make, set  in config.sh.
39 MAKE = make
40
41
42 CCCMD = $(CC) -O2 -fomit-frame-pointer -fstrength-reduce -c -DMYMALLOC
43
44 private = 
45
46 scripts = 
47
48 manpages = perl.man h2ph.man
49
50 util = echo.ttp perlglob.ttp
51
52 sh = Makefile.SH makedepend.SH h2ph.SH
53
54 h1 = EXTERN.h INTERN.h arg.h array.h cmd.h config.h form.h handy.h
55 h2 = hash.h perl.h regcomp.h regexp.h spat.h stab.h str.h util.h
56
57 h = $(h1) $(h2)
58
59 c1 = array.c cmd.c cons.c consarg.c doarg.c doio.c dolist.c dump.c
60 c2 = eval.c form.c hash.c $(mallocsrc) perl.c regcomp.c regexec.c
61 c3 = stab.c str.c toke.c util.c atarist.c usersub.c
62
63 c = $(c1) $(c2) $(c3)
64
65 obj1 = array.o cmd.o cons.o consarg.o doarg.o doio.o dolist.o dump.o
66 obj2 = eval.o form.o hash.o $(mallocobj) perl.o regcomp.o regexec.o
67 obj3 = stab.o str.o toke.o util.o atarist.o
68
69 obj = $(obj1) $(obj2) $(obj3)
70
71 lintflags = -hbvxac
72
73 # grrr
74 SHELL = /bin/sh
75
76 .c.o:
77         $(CCCMD) $*.c
78
79 all: $(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
86 perl.ttp: perly.o $(obj) usersub.o
87         $(CC) $(LARGE) $(CLDFLAGS) $(obj) perly.o usersub.o $(libs) -o perl.ttp -v -s
88
89 echo.ttp: wildmat.o echo.c
90         $(CC) -O -mshort -fomit-frame-pointer -o echo.ttp \
91         echo.c wildmat.o -liio16 -s
92
93 perlglob.ttp: wildmat.o perlglob.c
94         $(CC) -O -mshort -fomit-frame-pointer -o perlglob.ttp \
95         perlglob.c wildmat.o -liio16 -s
96
97 wildmat.o: wildmat.c
98         $(CC) -O -mshort -fomit-frame-pointer -c wildmat.c
99
100 perly.h: perly.c
101         @ echo Dummy dependency for dumb parallel make
102         touch perly.h
103
104 perly.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
112 perly.o: perly.c perly.h $(h)
113         $(CCCMD) perly.c
114
115
116 clean:
117         rm -f *.o 
118
119 realclean: 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
128 lint: perly.c $(c)
129         lint $(lintflags) $(defs) perly.c $(c) > perl.fuzz
130
131 depend: makedepend
132         - test -f perly.h || cp /dev/null perly.h
133         ./makedepend
134         - test -s perly.h || /bin/rm -f perly.h
135
136 test: perl
137         - cd t && chmod +x TEST */*.t
138         - cd t && (rm -f perl; $(SLN) ../perl .) && ./perl TEST </dev/tty
139
140 clist:
141         echo $(c) | tr ' ' '\012' >.clist
142
143 hlist:
144         echo $(h) | tr ' ' '\012' >.hlist
145
146 shlist:
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.
151 array.o: EXTERN.h
152 array.o: arg.h
153 array.o: array.c
154 array.o: array.h
155 array.o: cmd.h
156 array.o: config.h
157 array.o: form.h
158 array.o: handy.h
159 array.o: hash.h
160 array.o: perl.h
161 array.o: regexp.h
162 array.o: spat.h
163 array.o: stab.h
164 array.o: str.h
165 array.o: util.h
166 cmd.o: EXTERN.h
167 cmd.o: arg.h
168 cmd.o: array.h
169 cmd.o: cmd.c
170 cmd.o: cmd.h
171 cmd.o: config.h
172 cmd.o: form.h
173 cmd.o: handy.h
174 cmd.o: hash.h
175 cmd.o: perl.h
176 cmd.o: regexp.h
177 cmd.o: spat.h
178 cmd.o: stab.h
179 cmd.o: str.h
180 cmd.o: util.h
181 cons.o: EXTERN.h
182 cons.o: arg.h
183 cons.o: array.h
184 cons.o: cmd.h
185 cons.o: config.h
186 cons.o: cons.c
187 cons.o: form.h
188 cons.o: handy.h
189 cons.o: hash.h
190 cons.o: perl.h
191 cons.o: perly.h
192 cons.o: regexp.h
193 cons.o: spat.h
194 cons.o: stab.h
195 cons.o: str.h
196 cons.o: util.h
197 consarg.o: EXTERN.h
198 consarg.o: arg.h
199 consarg.o: array.h
200 consarg.o: cmd.h
201 consarg.o: config.h
202 consarg.o: consarg.c
203 consarg.o: form.h
204 consarg.o: handy.h
205 consarg.o: hash.h
206 consarg.o: perl.h
207 consarg.o: regexp.h
208 consarg.o: spat.h
209 consarg.o: stab.h
210 consarg.o: str.h
211 consarg.o: util.h
212 doarg.o: EXTERN.h
213 doarg.o: arg.h
214 doarg.o: array.h
215 doarg.o: cmd.h
216 doarg.o: config.h
217 doarg.o: doarg.c
218 doarg.o: form.h
219 doarg.o: handy.h
220 doarg.o: hash.h
221 doarg.o: perl.h
222 doarg.o: regexp.h
223 doarg.o: spat.h
224 doarg.o: stab.h
225 doarg.o: str.h
226 doarg.o: util.h
227 doio.o: EXTERN.h
228 doio.o: arg.h
229 doio.o: array.h
230 doio.o: cmd.h
231 doio.o: config.h
232 doio.o: doio.c
233 doio.o: form.h
234 doio.o: handy.h
235 doio.o: hash.h
236 doio.o: perl.h
237 doio.o: regexp.h
238 doio.o: spat.h
239 doio.o: stab.h
240 doio.o: str.h
241 doio.o: util.h
242 dolist.o: EXTERN.h
243 dolist.o: arg.h
244 dolist.o: array.h
245 dolist.o: cmd.h
246 dolist.o: config.h
247 dolist.o: dolist.c
248 dolist.o: form.h
249 dolist.o: handy.h
250 dolist.o: hash.h
251 dolist.o: perl.h
252 dolist.o: regexp.h
253 dolist.o: spat.h
254 dolist.o: stab.h
255 dolist.o: str.h
256 dolist.o: util.h
257 dump.o: EXTERN.h
258 dump.o: arg.h
259 dump.o: array.h
260 dump.o: cmd.h
261 dump.o: config.h
262 dump.o: dump.c
263 dump.o: form.h
264 dump.o: handy.h
265 dump.o: hash.h
266 dump.o: perl.h
267 dump.o: regexp.h
268 dump.o: spat.h
269 dump.o: stab.h
270 dump.o: str.h
271 dump.o: util.h
272 eval.o: EXTERN.h
273 eval.o: arg.h
274 eval.o: array.h
275 eval.o: cmd.h
276 eval.o: config.h
277 eval.o: eval.c
278 eval.o: form.h
279 eval.o: handy.h
280 eval.o: hash.h
281 eval.o: perl.h
282 eval.o: regexp.h
283 eval.o: spat.h
284 eval.o: stab.h
285 eval.o: str.h
286 eval.o: util.h
287 form.o: EXTERN.h
288 form.o: arg.h
289 form.o: array.h
290 form.o: cmd.h
291 form.o: config.h
292 form.o: form.c
293 form.o: form.h
294 form.o: handy.h
295 form.o: hash.h
296 form.o: perl.h
297 form.o: regexp.h
298 form.o: spat.h
299 form.o: stab.h
300 form.o: str.h
301 form.o: util.h
302 hash.o: EXTERN.h
303 hash.o: arg.h
304 hash.o: array.h
305 hash.o: cmd.h
306 hash.o: config.h
307 hash.o: form.h
308 hash.o: handy.h
309 hash.o: hash.c
310 hash.o: hash.h
311 hash.o: perl.h
312 hash.o: regexp.h
313 hash.o: spat.h
314 hash.o: stab.h
315 hash.o: str.h
316 hash.o: util.h
317 perl.o: EXTERN.h
318 perl.o: arg.h
319 perl.o: array.h
320 perl.o: cmd.h
321 perl.o: config.h
322 perl.o: form.h
323 perl.o: handy.h
324 perl.o: hash.h
325 perl.o: patchlevel.h
326 perl.o: perl.c
327 perl.o: perl.h
328 perl.o: perly.h
329 perl.o: regexp.h
330 perl.o: spat.h
331 perl.o: stab.h
332 perl.o: str.h
333 perl.o: util.h
334 regcomp.o: EXTERN.h
335 regcomp.o: INTERN.h
336 regcomp.o: arg.h
337 regcomp.o: array.h
338 regcomp.o: cmd.h
339 regcomp.o: config.h
340 regcomp.o: form.h
341 regcomp.o: handy.h
342 regcomp.o: hash.h
343 regcomp.o: perl.h
344 regcomp.o: regcomp.c
345 regcomp.o: regcomp.h
346 regcomp.o: regexp.h
347 regcomp.o: spat.h
348 regcomp.o: stab.h
349 regcomp.o: str.h
350 regcomp.o: util.h
351 regexec.o: EXTERN.h
352 regexec.o: arg.h
353 regexec.o: array.h
354 regexec.o: cmd.h
355 regexec.o: config.h
356 regexec.o: form.h
357 regexec.o: handy.h
358 regexec.o: hash.h
359 regexec.o: perl.h
360 regexec.o: regcomp.h
361 regexec.o: regexec.c
362 regexec.o: regexp.h
363 regexec.o: spat.h
364 regexec.o: stab.h
365 regexec.o: str.h
366 regexec.o: util.h
367 stab.o: EXTERN.h
368 stab.o: arg.h
369 stab.o: array.h
370 stab.o: cmd.h
371 stab.o: config.h
372 stab.o: form.h
373 stab.o: handy.h
374 stab.o: hash.h
375 stab.o: perl.h
376 stab.o: regexp.h
377 stab.o: spat.h
378 stab.o: stab.c
379 stab.o: stab.h
380 stab.o: str.h
381 stab.o: util.h
382 str.o: EXTERN.h
383 str.o: arg.h
384 str.o: array.h
385 str.o: cmd.h
386 str.o: config.h
387 str.o: form.h
388 str.o: handy.h
389 str.o: hash.h
390 str.o: perl.h
391 str.o: perly.h
392 str.o: regexp.h
393 str.o: spat.h
394 str.o: stab.h
395 str.o: str.c
396 str.o: str.h
397 str.o: util.h
398 toke.o: EXTERN.h
399 toke.o: arg.h
400 toke.o: array.h
401 toke.o: cmd.h
402 toke.o: config.h
403 toke.o: form.h
404 toke.o: handy.h
405 toke.o: hash.h
406 toke.o: perl.h
407 toke.o: perly.h
408 toke.o: regexp.h
409 toke.o: spat.h
410 toke.o: stab.h
411 toke.o: str.h
412 toke.o: toke.c
413 toke.o: util.h
414 util.o: EXTERN.h
415 util.o: arg.h
416 util.o: array.h
417 util.o: cmd.h
418 util.o: config.h
419 util.o: form.h
420 util.o: handy.h
421 util.o: hash.h
422 util.o: perl.h
423 util.o: regexp.h
424 util.o: spat.h
425 util.o: stab.h
426 util.o: str.h
427 util.o: util.c
428 util.o: util.h
429 atarist.o: EXTERN.h
430 atarist.o: arg.h
431 atarist.o: array.h
432 atarist.o: cmd.h
433 atarist.o: config.h
434 atarist.o: form.h
435 atarist.o: handy.h
436 atarist.o: hash.h
437 atarist.o: perl.h
438 atarist.o: regexp.h
439 atarist.o: spat.h
440 atarist.o: stab.h
441 atarist.o: str.h
442 atarist.o: atarist.c
443 atarist.o: util.h
444
445 malloc.o: EXTERN.h
446 malloc.o: arg.h
447 malloc.o: array.h
448 malloc.o: cmd.h
449 malloc.o: config.h
450 malloc.o: form.h
451 malloc.o: handy.h
452 malloc.o: hash.h
453 malloc.o: perl.h
454 malloc.o: regexp.h
455 malloc.o: spat.h
456 malloc.o: stab.h
457 malloc.o: str.h
458 malloc.o: malloc.c
459 malloc.o: util.h
460