home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / perl-4.036.tar.gz / perl-4.036.tar / perl-4.036 / atarist / makefile.st < prev    next >
Makefile  |  1993-02-08  |  9KB  |  463 lines

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