Makefile 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. EMHOME=../../..
  2. EMH=$(EMHOME)/h
  3. EMLIB=$(EMHOME)/lib
  4. SHR=../share
  5. LDFLAGS=
  6. CPPFLAGS=-DVERBOSE -DNOTCOMPACT
  7. CFLAGS=$(CPPFLAGS) -O
  8. LINTFLAGS=-hbu
  9. CFILES=\
  10. cs.c cs_alloc.c cs_aux.c cs_avail.c cs_debug.c cs_elim.c \
  11. cs_entity.c cs_kill.c cs_partit.c cs_profit.c cs_getent.c \
  12. cs_stack.c cs_vnm.c
  13. OFILES=\
  14. cs.o cs_alloc.o cs_aux.o cs_avail.o cs_debug.o cs_elim.o \
  15. cs_entity.o cs_kill.o cs_partit.o cs_profit.o cs_getent.o \
  16. cs_stack.o cs_vnm.o
  17. HFILES=\
  18. cs.h cs_alloc.h cs_aux.h cs_avail.h cs_debug.h cs_elim.h \
  19. cs_entity.h cs_kill.h cs_partit.h cs_profit.h cs_getent.h \
  20. cs_stack.h cs_vnm.h
  21. PRFILES=\
  22. $(CFILES) $(HFILES) Makefile
  23. SHARE_OFILES=\
  24. $(SHR)/get.o $(SHR)/put.o $(SHR)/alloc.o $(SHR)/global.o $(SHR)/debug.o\
  25. $(SHR)/files.o $(SHR)/map.o $(SHR)/lset.o $(SHR)/cset.o $(SHR)/aux.o\
  26. $(SHR)/go.o
  27. SHARE_MFILES=\
  28. $(SHR)/get.m $(SHR)/put.m $(SHR)/alloc.m $(SHR)/global.m $(SHR)/debug.m\
  29. $(SHR)/files.m $(SHR)/map.m $(SHR)/lset.m $(SHR)/cset.m $(SHR)/aux.m\
  30. $(SHR)/go.m
  31. all: cs
  32. cs: $(OFILES)
  33. $(CC) -o cs $(LDFLAGS) $(OFILES) $(SHARE_OFILES) $(EMLIB)/em_data.a
  34. cs_ack: $(CFILES) $(SHARE_MFILES)
  35. $(CC) -c.o $(CFLAGS) $(CFILES) $(SHARE_MFILES)
  36. $(CC) -o cs -.c $(LDFLAGS) cs.o $(EMLIB)/em_data.a
  37. install: all
  38. ../install cs
  39. cmp: all
  40. -../compare cs
  41. pr:
  42. @pr $(PRFILES)
  43. opr:
  44. make pr | opr
  45. clean:
  46. rm -f cs *.o Out out nohup.out
  47. lint:
  48. lint $(LINTFLAGS) $(CPPFLAGS) $(CFILES)
  49. print: $(PRFILES)
  50. @pr $?
  51. @touch print
  52. depend:
  53. $(SHR)/makedepend
  54. # the next lines are generated automatically
  55. # AUTOAUTOAUTOAUTOAUTOAUTO
  56. cs.o: ../share/debug.h
  57. cs.o: ../share/go.h
  58. cs.o: ../share/types.h
  59. cs.o: cs.h
  60. cs.o: cs_aux.h
  61. cs.o: cs_avail.h
  62. cs.o: cs_debug.h
  63. cs.o: cs_elim.h
  64. cs.o: cs_entity.h
  65. cs.o: cs_profit.h
  66. cs.o: cs_stack.h
  67. cs.o: cs_vnm.h
  68. cs_alloc.o: ../share/alloc.h
  69. cs_alloc.o: ../share/types.h
  70. cs_alloc.o: cs.h
  71. cs_aux.o: ../share/aux.h
  72. cs_aux.o: ../share/debug.h
  73. cs_aux.o: ../share/global.h
  74. cs_aux.o: ../share/lset.h
  75. cs_aux.o: ../share/types.h
  76. cs_aux.o: cs.h
  77. cs_aux.o: cs_entity.h
  78. cs_avail.o: ../../../h/em_mnem.h
  79. cs_avail.o: ../share/aux.h
  80. cs_avail.o: ../share/debug.h
  81. cs_avail.o: ../share/global.h
  82. cs_avail.o: ../share/lset.h
  83. cs_avail.o: ../share/types.h
  84. cs_avail.o: cs.h
  85. cs_avail.o: cs_alloc.h
  86. cs_avail.o: cs_aux.h
  87. cs_avail.o: cs_getent.h
  88. cs_debug.o: ../../../h/em_spec.h
  89. cs_debug.o: ../share/debug.h
  90. cs_debug.o: ../share/lset.h
  91. cs_debug.o: ../share/types.h
  92. cs_debug.o: cs.h
  93. cs_debug.o: cs_aux.h
  94. cs_debug.o: cs_avail.h
  95. cs_debug.o: cs_entity.h
  96. cs_elim.o: ../../../h/em_mnem.h
  97. cs_elim.o: ../../../h/em_reg.h
  98. cs_elim.o: ../share/alloc.h
  99. cs_elim.o: ../share/aux.h
  100. cs_elim.o: ../share/debug.h
  101. cs_elim.o: ../share/global.h
  102. cs_elim.o: ../share/lset.h
  103. cs_elim.o: ../share/types.h
  104. cs_elim.o: cs.h
  105. cs_elim.o: cs_alloc.h
  106. cs_elim.o: cs_aux.h
  107. cs_elim.o: cs_avail.h
  108. cs_elim.o: cs_debug.h
  109. cs_elim.o: cs_partit.h
  110. cs_elim.o: cs_profit.h
  111. cs_entity.o: ../share/debug.h
  112. cs_entity.o: ../share/global.h
  113. cs_entity.o: ../share/lset.h
  114. cs_entity.o: ../share/types.h
  115. cs_entity.o: cs.h
  116. cs_entity.o: cs_aux.h
  117. cs_getent.o: ../../../h/em_mnem.h
  118. cs_getent.o: ../share/aux.h
  119. cs_getent.o: ../share/debug.h
  120. cs_getent.o: ../share/global.h
  121. cs_getent.o: ../share/types.h
  122. cs_getent.o: cs.h
  123. cs_getent.o: cs_aux.h
  124. cs_getent.o: cs_entity.h
  125. cs_getent.o: cs_stack.h
  126. cs_kill.o: ../../../h/em_mnem.h
  127. cs_kill.o: ../share/aux.h
  128. cs_kill.o: ../share/cset.h
  129. cs_kill.o: ../share/debug.h
  130. cs_kill.o: ../share/global.h
  131. cs_kill.o: ../share/lset.h
  132. cs_kill.o: ../share/types.h
  133. cs_kill.o: cs.h
  134. cs_kill.o: cs_aux.h
  135. cs_kill.o: cs_avail.h
  136. cs_kill.o: cs_debug.h
  137. cs_kill.o: cs_entity.h
  138. cs_partit.o: ../../../h/em_mnem.h
  139. cs_partit.o: ../../../h/em_pseu.h
  140. cs_partit.o: ../../../h/em_reg.h
  141. cs_partit.o: ../../../h/em_spec.h
  142. cs_partit.o: ../share/aux.h
  143. cs_partit.o: ../share/debug.h
  144. cs_partit.o: ../share/global.h
  145. cs_partit.o: ../share/types.h
  146. cs_partit.o: cs.h
  147. cs_partit.o: cs_stack.h
  148. cs_profit.o: ../../../h/em_mnem.h
  149. cs_profit.o: ../../../h/em_spec.h
  150. cs_profit.o: ../share/aux.h
  151. cs_profit.o: ../share/cset.h
  152. cs_profit.o: ../share/debug.h
  153. cs_profit.o: ../share/global.h
  154. cs_profit.o: ../share/lset.h
  155. cs_profit.o: ../share/types.h
  156. cs_profit.o: cs.h
  157. cs_profit.o: cs_aux.h
  158. cs_profit.o: cs_avail.h
  159. cs_profit.o: cs_partit.h
  160. cs_stack.o: ../share/aux.h
  161. cs_stack.o: ../share/debug.h
  162. cs_stack.o: ../share/global.h
  163. cs_stack.o: ../share/types.h
  164. cs_stack.o: cs.h
  165. cs_stack.o: cs_aux.h
  166. cs_valno.o: ../share/debug.h
  167. cs_valno.o: ../share/types.h
  168. cs_valno.o: cs.h
  169. cs_vnm.o: ../../../h/em_mnem.h
  170. cs_vnm.o: ../share/aux.h
  171. cs_vnm.o: ../share/debug.h
  172. cs_vnm.o: ../share/global.h
  173. cs_vnm.o: ../share/types.h
  174. cs_vnm.o: cs.h
  175. cs_vnm.o: cs_alloc.h
  176. cs_vnm.o: cs_aux.h
  177. cs_vnm.o: cs_avail.h
  178. cs_vnm.o: cs_entity.h
  179. cs_vnm.o: cs_getent.h
  180. cs_vnm.o: cs_kill.h
  181. cs_vnm.o: cs_partit.h
  182. cs_vnm.o: cs_stack.h