Makefile 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. EMHOME=../../..
  2. EMH=$(EMHOME)/h
  3. EMLIB=$(EMHOME)/lib
  4. SHARE=../share
  5. LDFLAGS=
  6. CPPFLAGS=-DVERBOSE -DNOTCOMPACT
  7. CFLAGS=$(CPPFLAGS) -O
  8. LINTFLAGS=-hbu
  9. CFILES=\
  10. debug.c global.c files.c go.c map.c aux.c get.c put.c alloc.c lset.c\
  11. cset.c parser.c stack_chg.c locals.c init_glob.c
  12. SRC=\
  13. types.h def.h debug.h global.h files.h go.h map.h aux.h get.h put.h alloc.h\
  14. lset.h cset.h parser.h stack_chg.h locals.h init_glob.h $(CFILES)
  15. PRFILES=$(SRC)
  16. .SUFFIXES: .m
  17. .c.m:
  18. $(CC) -c.m $(CFLAGS) $<
  19. all:\
  20. classdefs.h pop_push.h wordlen.h alloc.o cset.o debug.o files.o go.o\
  21. global.o lset.o map.o parser.o get.o put.o aux.o stack_chg.o locals.o\
  22. init_glob.o
  23. install: all
  24. cmp: all
  25. distr: pop_push.h
  26. em_files:\
  27. classdefs.h pop_push.h wordlen.h alloc.m cset.m debug.m\
  28. files.m go.m global.m lset.m map.m parser.m get.m put.m aux.m stack_chg.m\
  29. locals.m init_glob.m
  30. classdefs.h: \
  31. makeclassdef \
  32. cldefs.src
  33. makeclassdef $(EMH)/em_mnem.h cldefs.src > classdefs.h
  34. makeclassdef: \
  35. makecldef.c
  36. $(CC) -o makeclassdef makecldef.c
  37. pop_push.h: \
  38. $(EMHOME)/etc/em_table pop_push.awk
  39. awk -f pop_push.awk < $(EMHOME)/etc/em_table > pop_push.h
  40. wordlen.h: makewordlen
  41. makewordlen > wordlen.h
  42. rm makewordlen
  43. makewordlen: makewlen.c
  44. $(CC) -o makewordlen makewlen.c
  45. show: \
  46. show.c
  47. $(CC) -o show show.c $(EMLIB)/em_data.a
  48. pr:
  49. @pr $(PRFILES)
  50. opr:
  51. make pr | opr
  52. clean:
  53. @echo "make clean does not remove anything, because it is also done"
  54. @echo "by the installation script, and this directory should not be"
  55. @echo "cleaned. Type 'make oclean' instead."
  56. oclean:
  57. rm -f makeclassdef classdefs.h makewordlen wordlen.h *.o Out out nohup.out *.m
  58. lint:
  59. lint $(LINTFLAGS) $(CPPFLAGS) $(CFILES)
  60. print: $(PRFILES)
  61. @pr $?
  62. @touch print
  63. depend:
  64. $(SHR)/makedepend
  65. # the next lines are generated automatically
  66. # AUTOAUTOAUTOAUTOAUTOAUTO
  67. alloc.o: alloc.h
  68. alloc.o: debug.h
  69. alloc.o: types.h
  70. aux.o: ../../../h/em_mes.h
  71. aux.o: ../../../h/em_pseu.h
  72. aux.o: ../share/alloc.h
  73. aux.o: ../share/aux.h
  74. aux.o: ../share/debug.h
  75. aux.o: ../share/global.h
  76. aux.o: ../share/map.h
  77. aux.o: ../share/types.h
  78. cset.o: alloc.h
  79. cset.o: cset.h
  80. cset.o: debug.h
  81. cset.o: global.h
  82. cset.o: types.h
  83. debug.o: ../../../h/em_spec.h
  84. debug.o: debug.h
  85. debug.o: def.h
  86. debug.o: global.h
  87. debug.o: types.h
  88. get.o: ../../../h/em_flag.h
  89. get.o: ../../../h/em_mes.h
  90. get.o: ../../../h/em_mnem.h
  91. get.o: ../../../h/em_pseu.h
  92. get.o: ../../../h/em_spec.h
  93. get.o: alloc.h
  94. get.o: aux.h
  95. get.o: cset.h
  96. get.o: debug.h
  97. get.o: def.h
  98. get.o: get.h
  99. get.o: global.h
  100. get.o: lset.h
  101. get.o: map.h
  102. get.o: types.h
  103. global.o: types.h
  104. go.o: ../share/alloc.h
  105. go.o: ../share/debug.h
  106. go.o: ../share/files.h
  107. go.o: ../share/get.h
  108. go.o: ../share/global.h
  109. go.o: ../share/lset.h
  110. go.o: ../share/map.h
  111. go.o: ../share/put.h
  112. go.o: ../share/types.h
  113. init_glob.o: ../share/alloc.h
  114. init_glob.o: ../share/debug.h
  115. init_glob.o: ../share/global.h
  116. init_glob.o: ../share/map.h
  117. init_glob.o: ../share/types.h
  118. locals.o: ../../../h/em_mes.h
  119. locals.o: ../../../h/em_mnem.h
  120. locals.o: ../../../h/em_pseu.h
  121. locals.o: ../../../h/em_spec.h
  122. locals.o: alloc.h
  123. locals.o: aux.h
  124. locals.o: cset.h
  125. locals.o: debug.h
  126. locals.o: def.h
  127. locals.o: get.h
  128. locals.o: global.h
  129. locals.o: locals.h
  130. locals.o: lset.h
  131. locals.o: types.h
  132. lset.o: alloc.h
  133. lset.o: debug.h
  134. lset.o: lset.h
  135. lset.o: types.h
  136. map.o: map.h
  137. map.o: types.h
  138. parser.o: ../../../h/em_mnem.h
  139. parser.o: ../../../h/em_spec.h
  140. parser.o: alloc.h
  141. parser.o: aux.h
  142. parser.o: classdefs.h
  143. parser.o: debug.h
  144. parser.o: global.h
  145. parser.o: lset.h
  146. parser.o: types.h
  147. put.o: ../../../h/em_pseu.h
  148. put.o: ../../../h/em_spec.h
  149. put.o: alloc.h
  150. put.o: debug.h
  151. put.o: def.h
  152. put.o: global.h
  153. put.o: lset.h
  154. put.o: map.h
  155. put.o: put.h
  156. put.o: types.h
  157. show.o: ../../../h/em_flag.h
  158. show.o: ../../../h/em_pseu.h
  159. show.o: ../../../h/em_spec.h
  160. show.o: ../share/def.h
  161. show.o: ../share/global.h
  162. show.o: ../share/types.h
  163. stack_chg.o: ../share/debug.h
  164. stack_chg.o: ../share/global.h
  165. stack_chg.o: ../share/types.h
  166. stack_chg.o: ../../../h/em_mnem.h
  167. stack_chg.o: ../../../h/em_spec.h
  168. stack_chg.o: pop_push.h
  169. alloc.m: alloc.h
  170. alloc.m: debug.h
  171. alloc.m: types.h
  172. aux.m: ../../../h/em_mes.h
  173. aux.m: ../../../h/em_pseu.h
  174. aux.m: ../share/alloc.h
  175. aux.m: ../share/aux.h
  176. aux.m: ../share/debug.h
  177. aux.m: ../share/global.h
  178. aux.m: ../share/map.h
  179. aux.m: ../share/types.h
  180. cset.m: alloc.h
  181. cset.m: cset.h
  182. cset.m: debug.h
  183. cset.m: global.h
  184. cset.m: types.h
  185. debug.m: ../../../h/em_spec.h
  186. debug.m: debug.h
  187. debug.m: def.h
  188. debug.m: global.h
  189. debug.m: types.h
  190. get.m: ../../../h/em_flag.h
  191. get.m: ../../../h/em_mes.h
  192. get.m: ../../../h/em_mnem.h
  193. get.m: ../../../h/em_pseu.h
  194. get.m: ../../../h/em_spec.h
  195. get.m: alloc.h
  196. get.m: aux.h
  197. get.m: cset.h
  198. get.m: debug.h
  199. get.m: def.h
  200. get.m: get.h
  201. get.m: global.h
  202. get.m: lset.h
  203. get.m: map.h
  204. get.m: types.h
  205. global.m: types.h
  206. go.m: ../share/alloc.h
  207. go.m: ../share/debug.h
  208. go.m: ../share/files.h
  209. go.m: ../share/get.h
  210. go.m: ../share/global.h
  211. go.m: ../share/lset.h
  212. go.m: ../share/map.h
  213. go.m: ../share/put.h
  214. go.m: ../share/types.h
  215. init_glob.m: ../share/alloc.h
  216. init_glob.m: ../share/debug.h
  217. init_glob.m: ../share/global.h
  218. init_glob.m: ../share/map.h
  219. init_glob.m: ../share/types.h
  220. locals.m: ../../../h/em_mes.h
  221. locals.m: ../../../h/em_mnem.h
  222. locals.m: ../../../h/em_pseu.h
  223. locals.m: ../../../h/em_spec.h
  224. locals.m: alloc.h
  225. locals.m: aux.h
  226. locals.m: cset.h
  227. locals.m: debug.h
  228. locals.m: def.h
  229. locals.m: get.h
  230. locals.m: global.h
  231. locals.m: locals.h
  232. locals.m: lset.h
  233. locals.m: types.h
  234. lset.m: alloc.h
  235. lset.m: debug.h
  236. lset.m: lset.h
  237. lset.m: types.h
  238. map.m: map.h
  239. map.m: types.h
  240. parser.m: ../../../h/em_mnem.h
  241. parser.m: ../../../h/em_spec.h
  242. parser.m: alloc.h
  243. parser.m: aux.h
  244. parser.m: classdefs.h
  245. parser.m: debug.h
  246. parser.m: global.h
  247. parser.m: lset.h
  248. parser.m: types.h
  249. put.m: ../../../h/em_pseu.h
  250. put.m: ../../../h/em_spec.h
  251. put.m: alloc.h
  252. put.m: debug.h
  253. put.m: def.h
  254. put.m: global.h
  255. put.m: lset.h
  256. put.m: map.h
  257. put.m: put.h
  258. put.m: types.h
  259. show.m: ../../../h/em_flag.h
  260. show.m: ../../../h/em_pseu.h
  261. show.m: ../../../h/em_spec.h
  262. show.m: ../share/def.h
  263. show.m: ../share/global.h
  264. show.m: ../share/types.h
  265. stack_chg.m: ../share/debug.h
  266. stack_chg.m: ../share/global.h
  267. stack_chg.m: ../share/types.h
  268. stack_chg.m: ../../../h/em_mnem.h
  269. stack_chg.m: ../../../h/em_spec.h
  270. stack_chg.m: pop_push.h