Makefile 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. # $Header$
  2. CFILES=cgg.c subr.c main.c coerc.c enterkeyw.c error.c emlookup.c expr.c instruct.c iocc.c lookup.c output.c set.c strlookup.c var.c hall.c
  3. OFILES=cgg.o subr.o main.o coerc.o enterkeyw.o error.o emlookup.o expr.o instruct.o iocc.o lookup.o set.o strlookup.o var.o hall.o
  4. SOURCES=*.h cgg.y scan.l cvtkeywords keywords coerc.c emlookup.c error.c expr.c hall.c instruct.c iocc.c lookup.c main.c output.c set.c strlookup.c subr.c var.c
  5. EMH=../../h
  6. CFLAGS=-I$(EMH)
  7. YFLAGS=-v -d
  8. LDFLAGS=-i
  9. cgg: cgg.o $(OFILES) output.o
  10. cc $(LDFLAGS) $(OFILES) output.o ../../lib/em_data.a -ll -o cgg
  11. install: cgg
  12. cp cgg ../../lib/ncgg
  13. cmp: cgg
  14. cmp cgg ../../lib/ncgg
  15. debugcgg: cgg.o $(OFILES) debugoutput.o
  16. cc $(LDFLAGS) $(OFILES) debugoutput.o ../../lib/em_data.a -ll -o cgg
  17. cgg.o: scan.c
  18. enterkeyw.c: cvtkeywords keywords y.tab.h
  19. cvtkeywords
  20. debugoutput.o: debugoutput.c
  21. $(CC) $(CFLAGS) -DCODEDEBUG -c debugoutput.c
  22. debugoutput.c: output.c
  23. cp output.c debugoutput.c
  24. lint: $(CFILES)
  25. lint $(CFLAGS) $(CFILES)
  26. touch lint
  27. clean:
  28. rm -f cgg.c scan.c y.output y.tab.h enterkeyw.c
  29. rm -f $(OFILES) output.o debugoutput.o cgg lint
  30. pr:
  31. pr $(SOURCES)
  32. lpr:
  33. make pr|lpr
  34. depend:
  35. makedepend
  36. cgg.o: $(EMH)/cgg_cg.h
  37. coerc.o: $(EMH)/cgg_cg.h
  38. debugoutput.o: $(EMH)/cgg_cg.h
  39. expr.o: $(EMH)/cgg_cg.h
  40. instruct.o: $(EMH)/cgg_cg.h
  41. iocc.o: $(EMH)/cgg_cg.h
  42. output.o: $(EMH)/cgg_cg.h
  43. set.o: $(EMH)/cgg_cg.h
  44. subr.o: $(EMH)/cgg_cg.h
  45. var.o: $(EMH)/cgg_cg.h
  46. # AUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTO
  47. cgg.o: expr.h
  48. cgg.o: extern.h
  49. cgg.o: instruct.h
  50. cgg.o: iocc.h
  51. cgg.o: lookup.h
  52. cgg.o: param.h
  53. cgg.o: scan.c
  54. cgg.o: set.h
  55. cgg.o: varinfo.h
  56. coerc.o: assert.h
  57. coerc.o: extern.h
  58. coerc.o: iocc.h
  59. coerc.o: param.h
  60. coerc.o: property.h
  61. coerc.o: pseudo.h
  62. coerc.o: reg.h
  63. coerc.o: set.h
  64. coerc.o: token.h
  65. coerc.o: varinfo.h
  66. debugoutput.o: assert.h
  67. debugoutput.o: extern.h
  68. debugoutput.o: instruct.h
  69. debugoutput.o: lookup.h
  70. debugoutput.o: param.h
  71. debugoutput.o: property.h
  72. debugoutput.o: pseudo.h
  73. debugoutput.o: reg.h
  74. debugoutput.o: regvar.h
  75. debugoutput.o: set.h
  76. debugoutput.o: token.h
  77. debugoutput.o: varinfo.h
  78. emlookup.o: expr.h
  79. emlookup.o: param.h
  80. enterkeyw.o: lookup.h
  81. expr.o: assert.h
  82. expr.o: expr.h
  83. expr.o: extern.h
  84. expr.o: lookup.h
  85. expr.o: param.h
  86. expr.o: property.h
  87. expr.o: reg.h
  88. expr.o: regvar.h
  89. expr.o: set.h
  90. expr.o: token.h
  91. hall.o: assert.h
  92. hall.o: param.h
  93. hall.o: set.h
  94. instruct.o: expr.h
  95. instruct.o: extern.h
  96. instruct.o: instruct.h
  97. instruct.o: iocc.h
  98. instruct.o: param.h
  99. instruct.o: pseudo.h
  100. instruct.o: set.h
  101. instruct.o: varinfo.h
  102. iocc.o: assert.h
  103. iocc.o: expr.h
  104. iocc.o: extern.h
  105. iocc.o: iocc.h
  106. iocc.o: lookup.h
  107. iocc.o: param.h
  108. iocc.o: property.h
  109. iocc.o: regvar.h
  110. iocc.o: set.h
  111. iocc.o: token.h
  112. lookup.o: assert.h
  113. lookup.o: lookup.h
  114. lookup.o: param.h
  115. output.o: assert.h
  116. output.o: extern.h
  117. output.o: instruct.h
  118. output.o: lookup.h
  119. output.o: param.h
  120. output.o: property.h
  121. output.o: pseudo.h
  122. output.o: reg.h
  123. output.o: regvar.h
  124. output.o: set.h
  125. output.o: token.h
  126. output.o: varinfo.h
  127. scan.o: stdio.h
  128. set.o: extern.h
  129. set.o: lookup.h
  130. set.o: param.h
  131. set.o: property.h
  132. set.o: set.h
  133. set.o: token.h
  134. strlookup.o: param.h
  135. subr.o: expr.h
  136. subr.o: extern.h
  137. subr.o: instruct.h
  138. subr.o: lookup.h
  139. subr.o: param.h
  140. subr.o: property.h
  141. subr.o: reg.h
  142. subr.o: regvar.h
  143. subr.o: set.h
  144. subr.o: token.h
  145. subr.o: varinfo.h
  146. tables.o: data.h
  147. tables.o: param.h
  148. tables.o: tables.h
  149. tables.o: types.h
  150. var.o: instruct.h
  151. var.o: lookup.h
  152. var.o: param.h
  153. var.o: property.h
  154. var.o: reg.h
  155. var.o: set.h
  156. var.o: token.h