Makefile 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. EMHOME=../../..
  2. EMH=$(EMHOME)/h
  3. EMLIB=$(EMHOME)/lib
  4. SHR=../share
  5. LDFLAGS=
  6. CPPFLAGS=-DVERBOSE -DNOTCOMPACT -I$(EMH)
  7. CFLAGS=$(CPPFLAGS) -O
  8. LINTFLAGS=-hbu
  9. CFILES=\
  10. ra.c ra_items.c ra_lifet.c ra_allocl.c ra_profits.c \
  11. ra_interv.c ra_pack.c ra_xform.c ra_aux.c
  12. OFILES=\
  13. ra.o ra_items.o ra_lifet.o ra_allocl.o ra_profits.o \
  14. ra_interv.o ra_pack.o ra_xform.o ra_aux.o
  15. HFILES=\
  16. ra.h ra_items.h ra_lifet.h ra_allocl.h ra_profits.h \
  17. ra_interv.h ra_pack.h ra_xform.h ra_aux.h
  18. PRFILES=\
  19. $(CFILES) $(HFILES) Makefile
  20. SHARE_OFILES=\
  21. $(SHR)/aux.o $(SHR)/get.o $(SHR)/put.o $(SHR)/alloc.o $(SHR)/global.o \
  22. $(SHR)/debug.o $(SHR)/files.o $(SHR)/map.o $(SHR)/lset.o $(SHR)/cset.o \
  23. $(SHR)/go.o
  24. SHARE_MFILES=\
  25. $(SHR)/aux.m $(SHR)/get.m $(SHR)/put.m $(SHR)/alloc.m $(SHR)/global.m \
  26. $(SHR)/debug.m $(SHR)/files.m $(SHR)/map.m $(SHR)/lset.m $(SHR)/cset.m \
  27. $(SHR)/go.m
  28. all: ra
  29. ra: $(OFILES)
  30. $(CC) -o ra $(LDFLAGS) $(OFILES) $(SHARE_OFILES) $(EMLIB)/em_data.a
  31. ra_ack: $(CFILES) $(SHARE_MFILES)
  32. $(CC) -c.o $(CFLAGS) $(CFILES) $(SHARE_MFILES)
  33. $(CC) -o ra -.c $(LDFLAGS) ra.o $(EMLIB)/em_data.a
  34. itemtab.h: itemtab.src makeitems $(EMH)/em_mnem.h
  35. makeitems $(EMH)/em_mnem.h itemtab.src > itemtab.h
  36. makeitems: makeitems.c
  37. $(CC) -o makeitems makeitems.c
  38. install: all
  39. ../install ra
  40. cmp: all
  41. -../compare ra
  42. pr:
  43. @pr $(PRFILES)
  44. opr:
  45. make pr | opr
  46. clean:
  47. rm -f ra makeitems itemtab.h *.o Out out nohup.out
  48. lint:
  49. lint $(LINTFLAGS) $(CPPFLAGS) $(CFILES)
  50. print: $(PRFILES)
  51. @pr $?
  52. @touch print
  53. depend:
  54. $(SHR)/makedepend
  55. # the next lines are generated automatically
  56. # AUTOAUTOAUTOAUTOAUTOAUTO
  57. ra.o: ../share/alloc.h
  58. ra.o: ../share/debug.h
  59. ra.o: ../share/files.h
  60. ra.o: ../share/get.h
  61. ra.o: ../share/global.h
  62. ra.o: ../share/go.h
  63. ra.o: ../share/lset.h
  64. ra.o: ../share/map.h
  65. ra.o: ../share/put.h
  66. ra.o: ../share/types.h
  67. ra.o: ra.h
  68. ra.o: ra_allocl.h
  69. ra.o: ra_items.h
  70. ra.o: ra_pack.h
  71. ra.o: ra_profits.h
  72. ra.o: ra_xform.h
  73. ra_allocl.o: ../share/alloc.h
  74. ra_allocl.o: ../share/aux.h
  75. ra_allocl.o: ../share/cset.h
  76. ra_allocl.o: ../share/debug.h
  77. ra_allocl.o: ../share/def.h
  78. ra_allocl.o: ../share/global.h
  79. ra_allocl.o: ../share/lset.h
  80. ra_allocl.o: ../share/map.h
  81. ra_allocl.o: ../share/types.h
  82. ra_allocl.o: ra.h
  83. ra_allocl.o: ra_allocl.h
  84. ra_allocl.o: ra_aux.h
  85. ra_allocl.o: ra_interv.h
  86. ra_allocl.o: ra_items.h
  87. ra_aux.o: ../share/alloc.h
  88. ra_aux.o: ../share/debug.h
  89. ra_aux.o: ../share/def.h
  90. ra_aux.o: ../share/global.h
  91. ra_aux.o: ../share/lset.h
  92. ra_aux.o: ../share/types.h
  93. ra_aux.o: ra.h
  94. ra_aux.o: ra_aux.h
  95. ra_interv.o: ../share/alloc.h
  96. ra_interv.o: ../share/debug.h
  97. ra_interv.o: ../share/global.h
  98. ra_interv.o: ../share/lset.h
  99. ra_interv.o: ../share/types.h
  100. ra_interv.o: ra.h
  101. ra_interv.o: ra_interv.h
  102. ra_items.o: ../share/alloc.h
  103. ra_items.o: ../share/aux.h
  104. ra_items.o: ../share/debug.h
  105. ra_items.o: ../share/def.h
  106. ra_items.o: ../share/global.h
  107. ra_items.o: ../share/lset.h
  108. ra_items.o: ../share/types.h
  109. ra_items.o: itemtab.h
  110. ra_items.o: ra.h
  111. ra_items.o: ra_aux.h
  112. ra_items.o: ra_items.h
  113. ra_lifet.o: ../share/alloc.h
  114. ra_lifet.o: ../share/aux.h
  115. ra_lifet.o: ../share/debug.h
  116. ra_lifet.o: ../share/def.h
  117. ra_lifet.o: ../share/global.h
  118. ra_lifet.o: ../share/lset.h
  119. ra_lifet.o: ../share/types.h
  120. ra_lifet.o: ra.h
  121. ra_lifet.o: ra_aux.h
  122. ra_lifet.o: ra_items.h
  123. ra_lifet.o: ra_lifet.h
  124. ra_pack.o: ../share/alloc.h
  125. ra_pack.o: ../share/aux.h
  126. ra_pack.o: ../share/cset.h
  127. ra_pack.o: ../share/debug.h
  128. ra_pack.o: ../share/def.h
  129. ra_pack.o: ../share/global.h
  130. ra_pack.o: ../share/lset.h
  131. ra_pack.o: ../share/types.h
  132. ra_pack.o: ra.h
  133. ra_pack.o: ra_aux.h
  134. ra_pack.o: ra_interv.h
  135. ra_profits.o: ../share/debug.h
  136. ra_profits.o: ../share/global.h
  137. ra_profits.o: ../share/lset.h
  138. ra_profits.o: ../share/types.h
  139. ra_profits.o: ra.h
  140. ra_profits.o: ra_aux.h
  141. ra_profits.o: ra_profits.h
  142. ra_xform.o: ../share/alloc.h
  143. ra_xform.o: ../share/aux.h
  144. ra_xform.o: ../share/debug.h
  145. ra_xform.o: ../share/def.h
  146. ra_xform.o: ../share/global.h
  147. ra_xform.o: ../share/lset.h
  148. ra_xform.o: ../share/types.h
  149. ra_xform.o: ra.h
  150. ra_xform.o: ra_interv.h
  151. ra_xform.o: ra_items.h
  152. ra_xform.o: ra_xform.h