Makefile 3.6 KB

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