Makefile 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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. sr.c sr_iv.c sr_reduce.c sr_cand.c sr_xform.c sr_expr.c sr_aux.c
  11. OFILES=\
  12. sr.o sr_expr.o sr_reduce.o sr_iv.o sr_cand.o sr_xform.o sr_aux.o
  13. HFILES=\
  14. sr.h sr_iv.h sr_reduce.h sr_cand.h sr_xform.h sr_expr.h sr_aux.h
  15. PRFILES=\
  16. $(CFILES) $(HFILES) Makefile
  17. SHARE_OFILES=\
  18. $(SHR)/get.o $(SHR)/put.o $(SHR)/alloc.o $(SHR)/global.o $(SHR)/debug.o \
  19. $(SHR)/files.o $(SHR)/map.o $(SHR)/lset.o $(SHR)/cset.o $(SHR)/aux.o \
  20. $(SHR)/go.o
  21. SHARE_MFILES=\
  22. $(SHR)/get.m $(SHR)/put.m $(SHR)/alloc.m $(SHR)/global.m $(SHR)/debug.m \
  23. $(SHR)/files.m $(SHR)/map.m $(SHR)/lset.m $(SHR)/cset.m $(SHR)/aux.m \
  24. $(SHR)/go.m
  25. all: sr
  26. sr: $(OFILES)
  27. $(CC) -o sr $(LDFLAGS) $(OFILES) $(SHARE_OFILES) $(EMLIB)/em_data.a
  28. sr_ack: $(CFILES) $(SHARE_MFILES)
  29. $(CC) -c.o $(CFLAGS) $(CFILES) $(SHARE_MFILES)
  30. $(CC) -o sr -.c $(LDFLAGS) sr.o $(EMLIB)/em_data.a
  31. install: all
  32. ../install sr
  33. cmp: all
  34. -../compare sr
  35. pr:
  36. @pr $(PRFILES)
  37. opr:
  38. make pr | opr
  39. clean:
  40. rm -f sr *.o Out out nohup.out
  41. lint:
  42. lint $(LINTFLAGS) $(CPPFLAGS) $(CFILES)
  43. print: $(PRFILES)
  44. @pr $?
  45. @touch print
  46. depend:
  47. $(SHR)/makedepend
  48. # the next lines are generated automatically
  49. # AUTOAUTOAUTOAUTOAUTOAUTO
  50. sr.o: ../share/alloc.h
  51. sr.o: ../share/debug.h
  52. sr.o: ../share/files.h
  53. sr.o: ../share/get.h
  54. sr.o: ../share/global.h
  55. sr.o: ../share/lset.h
  56. sr.o: ../share/map.h
  57. sr.o: ../share/put.h
  58. sr.o: ../share/types.h
  59. sr.o: sr.h
  60. sr.o: sr_aux.h
  61. sr.o: sr_iv.h
  62. sr_aux.o: ../../../h/em_mnem.h
  63. sr_aux.o: ../../../h/em_pseu.h
  64. sr_aux.o: ../share/aux.h
  65. sr_aux.o: ../share/debug.h
  66. sr_aux.o: ../share/global.h
  67. sr_aux.o: ../share/lset.h
  68. sr_aux.o: ../share/types.h
  69. sr_aux.o: sr.h
  70. sr_aux.o: sr_aux.h
  71. sr_aux.o: sr_xform.h
  72. sr_cand.o: ../../../h/em_mnem.h
  73. sr_cand.o: ../../../h/em_pseu.h
  74. sr_cand.o: ../share/aux.h
  75. sr_cand.o: ../share/cset.h
  76. sr_cand.o: ../share/debug.h
  77. sr_cand.o: ../share/global.h
  78. sr_cand.o: ../share/lset.h
  79. sr_cand.o: ../share/map.h
  80. sr_cand.o: ../share/types.h
  81. sr_cand.o: sr.h
  82. sr_cand.o: sr_aux.h
  83. sr_cand.o: sr_cand.h
  84. sr_expr.o: ../../../h/em_mnem.h
  85. sr_expr.o: ../share/aux.h
  86. sr_expr.o: ../share/debug.h
  87. sr_expr.o: ../share/global.h
  88. sr_expr.o: ../share/lset.h
  89. sr_expr.o: ../share/types.h
  90. sr_expr.o: sr.h
  91. sr_expr.o: sr_aux.h
  92. sr_expr.o: sr_iv.h
  93. sr_iv.o: ../../../h/em_mnem.h
  94. sr_iv.o: ../../../h/em_pseu.h
  95. sr_iv.o: ../share/alloc.h
  96. sr_iv.o: ../share/aux.h
  97. sr_iv.o: ../share/cset.h
  98. sr_iv.o: ../share/debug.h
  99. sr_iv.o: ../share/global.h
  100. sr_iv.o: ../share/lset.h
  101. sr_iv.o: ../share/types.h
  102. sr_iv.o: sr.h
  103. sr_iv.o: sr_aux.h
  104. sr_iv.o: sr_cand.h
  105. sr_iv.o: sr_iv.h
  106. sr_reduce.o: ../../../h/em_mes.h
  107. sr_reduce.o: ../../../h/em_mnem.h
  108. sr_reduce.o: ../../../h/em_pseu.h
  109. sr_reduce.o: ../../../h/em_reg.h
  110. sr_reduce.o: ../share/alloc.h
  111. sr_reduce.o: ../share/aux.h
  112. sr_reduce.o: ../share/debug.h
  113. sr_reduce.o: ../share/global.h
  114. sr_reduce.o: ../share/lset.h
  115. sr_reduce.o: ../share/types.h
  116. sr_reduce.o: sr.h
  117. sr_reduce.o: sr_aux.h
  118. sr_reduce.o: sr_expr.h
  119. sr_reduce.o: sr_reduce.h
  120. sr_reduce.o: sr_xform.h
  121. sr_xform.o: ../../../h/em_mnem.h
  122. sr_xform.o: ../../../h/em_pseu.h
  123. sr_xform.o: ../../../h/em_spec.h
  124. sr_xform.o: ../share/alloc.h
  125. sr_xform.o: ../share/aux.h
  126. sr_xform.o: ../share/debug.h
  127. sr_xform.o: ../share/def.h
  128. sr_xform.o: ../share/get.h
  129. sr_xform.o: ../share/global.h
  130. sr_xform.o: ../share/lset.h
  131. sr_xform.o: ../share/types.h
  132. sr_xform.o: sr.h
  133. sr_xform.o: sr_aux.h
  134. sr_xform.o: sr_xform.h