proto.make 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. # $Id$
  2. #PARAMS do not remove this line!
  3. SRC_DIR = $(SRC_HOME)/util/ego/cs
  4. EMH=$(TARGET_HOME)/h
  5. EMLIB=$(TARGET_HOME)/lib.bin
  6. LDFLAGS=$(LDOPTIONS)
  7. CPPFLAGS=-DVERBOSE -DNOTCOMPACT -I$(EMH) -I$(SRC_DIR) -I$(EMLIB)/ego
  8. CFLAGS=$(CPPFLAGS) $(COPTIONS)
  9. LINTFLAGS=$(CPPFLAGS) $(LINTOPTIONS)
  10. CFILES=\
  11. $(SRC_DIR)/cs.c \
  12. $(SRC_DIR)/cs_alloc.c \
  13. $(SRC_DIR)/cs_aux.c \
  14. $(SRC_DIR)/cs_avail.c \
  15. $(SRC_DIR)/cs_debug.c \
  16. $(SRC_DIR)/cs_elim.c \
  17. $(SRC_DIR)/cs_entity.c \
  18. $(SRC_DIR)/cs_kill.c \
  19. $(SRC_DIR)/cs_partit.c \
  20. $(SRC_DIR)/cs_profit.c \
  21. $(SRC_DIR)/cs_getent.c \
  22. $(SRC_DIR)/cs_stack.c \
  23. $(SRC_DIR)/cs_vnm.c
  24. OFILES=\
  25. cs.$(SUF) \
  26. cs_alloc.$(SUF) \
  27. cs_aux.$(SUF) \
  28. cs_avail.$(SUF) \
  29. cs_debug.$(SUF) \
  30. cs_elim.$(SUF) \
  31. cs_entity.$(SUF) \
  32. cs_kill.$(SUF) \
  33. cs_partit.$(SUF) \
  34. cs_profit.$(SUF) \
  35. cs_getent.$(SUF) \
  36. cs_stack.$(SUF) \
  37. cs_vnm.$(SUF)
  38. HFILES=\
  39. $(SRC_DIR)/cs.h \
  40. $(SRC_DIR)/cs_alloc.h \
  41. $(SRC_DIR)/cs_aux.h \
  42. $(SRC_DIR)/cs_avail.h \
  43. $(SRC_DIR)/cs_debug.h \
  44. $(SRC_DIR)/cs_elim.h \
  45. $(SRC_DIR)/cs_entity.h \
  46. $(SRC_DIR)/cs_kill.h \
  47. $(SRC_DIR)/cs_partit.h \
  48. $(SRC_DIR)/cs_profit.h \
  49. $(SRC_DIR)/cs_getent.h \
  50. $(SRC_DIR)/cs_stack.h \
  51. $(SRC_DIR)/cs_vnm.h
  52. PRFILES=\
  53. $(CFILES) $(HFILES) $(SRC_DIR)/proto.make
  54. all: cs
  55. cs: $(OFILES)
  56. $(CC) -o cs $(LDFLAGS) $(OFILES) $(EMLIB)/ego/share.$(LIBSUF) $(EMLIB)/em_data.$(LIBSUF)
  57. install: all
  58. cp cs $(EMLIB)/ego/cs
  59. cmp: all
  60. -cmp cs $(EMLIB)/ego/cs
  61. clean:
  62. rm -f *.$(SUF) cs Out out nohup.out
  63. lint:
  64. $(LINT) $(LINTFLAGS) $(CFILES) $(EMLIB)/ego/$(LINTPREF)share.$(LINTSUF) $(EMLIB)/$(LINTPREF)em_data.$(LINTSUF)
  65. pr:
  66. @pr $(PRFILES)
  67. opr:
  68. make pr | opr
  69. depend:
  70. rm_deps Makefile >Makefile.new
  71. for i in $(CFILES) ; do \
  72. echo "`basename $$i .c`.$$(SUF): $$i" >> Makefile.new ; \
  73. echo ' $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \
  74. $(UTIL_HOME)/lib.bin/cpp -d $(CPPFLAGS) $$i | sed "s/^/`basename $$i .c`.$$(SUF): /" >> Makefile.new ; \
  75. done
  76. mv Makefile Makefile.old
  77. mv Makefile.new Makefile
  78. # do not remove the next line
  79. #DEPENDENCIES
  80. cs.$(SUF): $(SRC_DIR)/cs.c
  81. $(CC) -c $(CFLAGS) $(SRC_DIR)/cs.c
  82. cs.$(SUF): $(SRC_DIR)/cs_vnm.h
  83. cs.$(SUF): $(SRC_DIR)/cs_stack.h
  84. cs.$(SUF): $(SRC_DIR)/cs_profit.h
  85. cs.$(SUF): $(SRC_DIR)/cs_entity.h
  86. cs.$(SUF): $(SRC_DIR)/cs_elim.h
  87. cs.$(SUF): $(SRC_DIR)/cs_debug.h
  88. cs.$(SUF): $(SRC_DIR)/cs_avail.h
  89. cs.$(SUF): $(SRC_DIR)/cs_aux.h
  90. cs.$(SUF): $(SRC_DIR)/cs.h
  91. cs.$(SUF): $(SRC_DIR)/../share/go.h
  92. cs.$(SUF): $(SRC_DIR)/../share/debug.h
  93. cs.$(SUF): $(SRC_DIR)/../share/lset.h
  94. cs.$(SUF): $(SRC_DIR)/../share/types.h
  95. cs_alloc.$(SUF): $(SRC_DIR)/cs_alloc.c
  96. $(CC) -c $(CFLAGS) $(SRC_DIR)/cs_alloc.c
  97. cs_alloc.$(SUF): $(SRC_DIR)/cs.h
  98. cs_alloc.$(SUF): $(SRC_DIR)/../share/alloc.h
  99. cs_alloc.$(SUF): $(SRC_DIR)/../share/types.h
  100. cs_aux.$(SUF): $(SRC_DIR)/cs_aux.c
  101. $(CC) -c $(CFLAGS) $(SRC_DIR)/cs_aux.c
  102. cs_aux.$(SUF): $(SRC_DIR)/cs_entity.h
  103. cs_aux.$(SUF): $(SRC_DIR)/cs.h
  104. cs_aux.$(SUF): $(SRC_DIR)/../share/lset.h
  105. cs_aux.$(SUF): $(SRC_DIR)/../share/global.h
  106. cs_aux.$(SUF): $(SRC_DIR)/../share/aux.h
  107. cs_aux.$(SUF): $(SRC_DIR)/../share/debug.h
  108. cs_aux.$(SUF): $(SRC_DIR)/../share/types.h
  109. cs_avail.$(SUF): $(SRC_DIR)/cs_avail.c
  110. $(CC) -c $(CFLAGS) $(SRC_DIR)/cs_avail.c
  111. cs_avail.$(SUF): $(SRC_DIR)/cs_getent.h
  112. cs_avail.$(SUF): $(SRC_DIR)/cs_alloc.h
  113. cs_avail.$(SUF): $(SRC_DIR)/cs_debug.h
  114. cs_avail.$(SUF): $(SRC_DIR)/cs_aux.h
  115. cs_avail.$(SUF): $(SRC_DIR)/cs.h
  116. cs_avail.$(SUF): $(SRC_DIR)/../share/global.h
  117. cs_avail.$(SUF): $(SRC_DIR)/../share/lset.h
  118. cs_avail.$(SUF): $(SRC_DIR)/../share/aux.h
  119. cs_avail.$(SUF): $(SRC_DIR)/../share/debug.h
  120. cs_avail.$(SUF): $(SRC_DIR)/../share/types.h
  121. cs_avail.$(SUF): $(EMH)/em_mnem.h
  122. cs_debug.$(SUF): $(SRC_DIR)/cs_debug.c
  123. $(CC) -c $(CFLAGS) $(SRC_DIR)/cs_debug.c
  124. cs_debug.$(SUF): $(SRC_DIR)/cs_entity.h
  125. cs_debug.$(SUF): $(SRC_DIR)/cs_avail.h
  126. cs_debug.$(SUF): $(SRC_DIR)/cs_aux.h
  127. cs_debug.$(SUF): $(SRC_DIR)/cs.h
  128. cs_debug.$(SUF): $(SRC_DIR)/../share/lset.h
  129. cs_debug.$(SUF): $(SRC_DIR)/../share/debug.h
  130. cs_debug.$(SUF): $(SRC_DIR)/../share/types.h
  131. cs_debug.$(SUF): $(EMH)/em_spec.h
  132. cs_elim.$(SUF): $(SRC_DIR)/cs_elim.c
  133. $(CC) -c $(CFLAGS) $(SRC_DIR)/cs_elim.c
  134. cs_elim.$(SUF): $(SRC_DIR)/cs_partit.h
  135. cs_elim.$(SUF): $(SRC_DIR)/cs_profit.h
  136. cs_elim.$(SUF): $(SRC_DIR)/cs_debug.h
  137. cs_elim.$(SUF): $(SRC_DIR)/cs_aux.h
  138. cs_elim.$(SUF): $(SRC_DIR)/cs_alloc.h
  139. cs_elim.$(SUF): $(SRC_DIR)/cs_avail.h
  140. cs_elim.$(SUF): $(SRC_DIR)/cs.h
  141. cs_elim.$(SUF): $(SRC_DIR)/../share/debug.h
  142. cs_elim.$(SUF): $(SRC_DIR)/../share/global.h
  143. cs_elim.$(SUF): $(SRC_DIR)/../share/aux.h
  144. cs_elim.$(SUF): $(SRC_DIR)/../share/lset.h
  145. cs_elim.$(SUF): $(SRC_DIR)/../share/alloc.h
  146. cs_elim.$(SUF): $(SRC_DIR)/../share/types.h
  147. cs_elim.$(SUF): $(EMH)/em_mnem.h
  148. cs_elim.$(SUF): $(EMH)/em_reg.h
  149. cs_entity.$(SUF): $(SRC_DIR)/cs_entity.c
  150. $(CC) -c $(CFLAGS) $(SRC_DIR)/cs_entity.c
  151. cs_entity.$(SUF): $(SRC_DIR)/cs_aux.h
  152. cs_entity.$(SUF): $(SRC_DIR)/cs_alloc.h
  153. cs_entity.$(SUF): $(SRC_DIR)/cs.h
  154. cs_entity.$(SUF): $(SRC_DIR)/../share/debug.h
  155. cs_entity.$(SUF): $(SRC_DIR)/../share/lset.h
  156. cs_entity.$(SUF): $(SRC_DIR)/../share/global.h
  157. cs_entity.$(SUF): $(SRC_DIR)/../share/types.h
  158. cs_kill.$(SUF): $(SRC_DIR)/cs_kill.c
  159. $(CC) -c $(CFLAGS) $(SRC_DIR)/cs_kill.c
  160. cs_kill.$(SUF): $(SRC_DIR)/cs_entity.h
  161. cs_kill.$(SUF): $(SRC_DIR)/cs_avail.h
  162. cs_kill.$(SUF): $(SRC_DIR)/cs_debug.h
  163. cs_kill.$(SUF): $(SRC_DIR)/cs_aux.h
  164. cs_kill.$(SUF): $(SRC_DIR)/cs.h
  165. cs_kill.$(SUF): $(SRC_DIR)/../share/map.h
  166. cs_kill.$(SUF): $(SRC_DIR)/../share/aux.h
  167. cs_kill.$(SUF): $(SRC_DIR)/../share/cset.h
  168. cs_kill.$(SUF): $(SRC_DIR)/../share/lset.h
  169. cs_kill.$(SUF): $(SRC_DIR)/../share/global.h
  170. cs_kill.$(SUF): $(SRC_DIR)/../share/debug.h
  171. cs_kill.$(SUF): $(SRC_DIR)/../share/types.h
  172. cs_kill.$(SUF): $(EMH)/em_mnem.h
  173. cs_partit.$(SUF): $(SRC_DIR)/cs_partit.c
  174. $(CC) -c $(CFLAGS) $(SRC_DIR)/cs_partit.c
  175. cs_partit.$(SUF): $(SRC_DIR)/cs_stack.h
  176. cs_partit.$(SUF): $(SRC_DIR)/cs.h
  177. cs_partit.$(SUF): $(SRC_DIR)/../share/global.h
  178. cs_partit.$(SUF): $(SRC_DIR)/../share/debug.h
  179. cs_partit.$(SUF): $(SRC_DIR)/../share/aux.h
  180. cs_partit.$(SUF): $(SRC_DIR)/../share/types.h
  181. cs_partit.$(SUF): $(EMH)/em_spec.h
  182. cs_partit.$(SUF): $(EMH)/em_reg.h
  183. cs_partit.$(SUF): $(EMH)/em_pseu.h
  184. cs_partit.$(SUF): $(EMH)/em_mnem.h
  185. cs_profit.$(SUF): $(SRC_DIR)/cs_profit.c
  186. $(CC) -c $(CFLAGS) $(SRC_DIR)/cs_profit.c
  187. cs_profit.$(SUF): $(SRC_DIR)/cs_partit.h
  188. cs_profit.$(SUF): $(SRC_DIR)/cs_avail.h
  189. cs_profit.$(SUF): $(SRC_DIR)/cs_debug.h
  190. cs_profit.$(SUF): $(SRC_DIR)/cs_aux.h
  191. cs_profit.$(SUF): $(SRC_DIR)/cs.h
  192. cs_profit.$(SUF): $(SRC_DIR)/../share/lset.h
  193. cs_profit.$(SUF): $(SRC_DIR)/../share/cset.h
  194. cs_profit.$(SUF): $(SRC_DIR)/../share/aux.h
  195. cs_profit.$(SUF): $(SRC_DIR)/../share/global.h
  196. cs_profit.$(SUF): $(SRC_DIR)/../share/debug.h
  197. cs_profit.$(SUF): $(SRC_DIR)/../share/types.h
  198. cs_profit.$(SUF): $(EMH)/em_spec.h
  199. cs_profit.$(SUF): $(EMH)/em_mnem.h
  200. cs_getent.$(SUF): $(SRC_DIR)/cs_getent.c
  201. $(CC) -c $(CFLAGS) $(SRC_DIR)/cs_getent.c
  202. cs_getent.$(SUF): $(SRC_DIR)/cs_stack.h
  203. cs_getent.$(SUF): $(SRC_DIR)/cs_entity.h
  204. cs_getent.$(SUF): $(SRC_DIR)/cs_aux.h
  205. cs_getent.$(SUF): $(SRC_DIR)/cs.h
  206. cs_getent.$(SUF): $(SRC_DIR)/../share/global.h
  207. cs_getent.$(SUF): $(SRC_DIR)/../share/debug.h
  208. cs_getent.$(SUF): $(SRC_DIR)/../share/aux.h
  209. cs_getent.$(SUF): $(SRC_DIR)/../share/types.h
  210. cs_getent.$(SUF): $(EMH)/em_mnem.h
  211. cs_stack.$(SUF): $(SRC_DIR)/cs_stack.c
  212. $(CC) -c $(CFLAGS) $(SRC_DIR)/cs_stack.c
  213. cs_stack.$(SUF): $(SRC_DIR)/cs_aux.h
  214. cs_stack.$(SUF): $(SRC_DIR)/cs.h
  215. cs_stack.$(SUF): $(SRC_DIR)/../share/aux.h
  216. cs_stack.$(SUF): $(SRC_DIR)/../share/debug.h
  217. cs_stack.$(SUF): $(SRC_DIR)/../share/global.h
  218. cs_stack.$(SUF): $(SRC_DIR)/../share/types.h
  219. cs_vnm.$(SUF): $(SRC_DIR)/cs_vnm.c
  220. $(CC) -c $(CFLAGS) $(SRC_DIR)/cs_vnm.c
  221. cs_vnm.$(SUF): $(SRC_DIR)/cs_getent.h
  222. cs_vnm.$(SUF): $(SRC_DIR)/cs_partit.h
  223. cs_vnm.$(SUF): $(SRC_DIR)/cs_kill.h
  224. cs_vnm.$(SUF): $(SRC_DIR)/cs_stack.h
  225. cs_vnm.$(SUF): $(SRC_DIR)/cs_avail.h
  226. cs_vnm.$(SUF): $(SRC_DIR)/cs_entity.h
  227. cs_vnm.$(SUF): $(SRC_DIR)/cs_aux.h
  228. cs_vnm.$(SUF): $(SRC_DIR)/cs_alloc.h
  229. cs_vnm.$(SUF): $(SRC_DIR)/cs.h
  230. cs_vnm.$(SUF): $(SRC_DIR)/../share/aux.h
  231. cs_vnm.$(SUF): $(SRC_DIR)/../share/debug.h
  232. cs_vnm.$(SUF): $(SRC_DIR)/../share/global.h
  233. cs_vnm.$(SUF): $(SRC_DIR)/../share/types.h
  234. cs_vnm.$(SUF): $(EMH)/em_mnem.h