Makefile 3.4 KB

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