Makefile 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. #
  2. # Author: L.J. Bekema @ VU Informatica, Amsterdam
  3. #
  4. .SUFFIXES: .c,v .h .h,v
  5. .c,v.o:
  6. co -q $*.c
  7. $(CC) $(CFLAGS) -c $*.c
  8. rm -f $*.c
  9. .h,v.h:
  10. co -q $*.h
  11. # Definitions for the making programs.
  12. M = /user1/sjoerd/amoeba/libmonix
  13. X = /usr/em/lib/l68k2
  14. CC = l68k2
  15. LIBDIR = ../../lib
  16. PREFLAGS= -DNDEBUG # -DNASSERT
  17. CFLAGS = -L $(PREFLAGS)
  18. LDFLAGS = -b0:0x20000 -a0:2 -a1:2 -a2:2 -a3:2 -a4:2 -c.out $M/head.o
  19. LDLIBS = $X/tail_cc.1s $X/tail_cc.2g $M/libmonix.a $X/tail_em.rt $X/end_em
  20. LINTFLAGS=-phbxac $(PREFLAGS)
  21. PR = pr
  22. PRFLAGS =
  23. # Some convenient macro definitions.
  24. CFILES = archive.c byte_order.c error.c extract.c finish.c main.c memory.c\
  25. output.c read.c relocate.c save.c scan.c sym.c write.c
  26. CVFILES = archive.c,v byte_order.c,v error.c,v extract.c,v finish.c,v main.c,v\
  27. memory.c,v output.c,v read.c,v relocate.c,v save.c,v scan.c,v\
  28. sym.c,v write.c,v
  29. HFILES = assert.h const.h debug.h defs.h memory.h orig.h scan.h
  30. HVFILES = assert.h,v const.h,v debug.h,v defs.h,v memory.h,v orig.h,v scan.h,v
  31. OFILES = archive.o byte_order.o error.o extract.o finish.o main.o memory.o\
  32. output.o read.o relocate.o save.o scan.o sym.o write.o
  33. # Things that can be made.
  34. led: $(OFILES)
  35. $(CC) $(LDFLAGS) $(OFILES) $(LDLIBS) -o led.led
  36. /user1/sjoerd/amoeba/util/convert led.led led
  37. /user1/sjoerd/amoeba/test/load led >/user1/sjoerd/amoeba/test/led.load
  38. mach.c: mach.c,v
  39. co -q mach.c
  40. install:led
  41. cp led $(LIBDIR)/em_led
  42. cmp: led
  43. cmp led $(LIBDIR)/em_led
  44. lint:
  45. -for i in $(CFILES) $(HFILES) mach.c; do\
  46. if test ! -f $$i; then\
  47. echo $$i >> checked.out;\
  48. co -q $$i;\
  49. fi;\
  50. done
  51. lint $(LINTFLAGS) $(CFILES)
  52. rm -f `cat checked.out` checked.out
  53. pr: $(CVFILES) $(HVFILES) mach.c
  54. @-for i in $?; do\
  55. co -q -p $$i | $(PR) $(PRFLAGS) -h `basename $$i ,v`;\
  56. done
  57. @touch pr
  58. opr:
  59. make pr | opr
  60. clean:
  61. rm *.o led
  62. depend:
  63. -for i in $(CFILES); do\
  64. if test ! -f $$i; then\
  65. echo $$i >> checked.out;\
  66. co -q $$i;\
  67. fi;\
  68. done
  69. makedepend $(CFILES)
  70. rm -f `cat checked.out` checked.out
  71. procentry.o:
  72. $(CC) -c -L procentry.c
  73. # The next lines are generated automatically.
  74. # AUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTO
  75. archive.o: ../../h/arch.h
  76. archive.o: ../../h/out.h
  77. archive.o: ../../h/ranlib.h
  78. archive.o: const.h
  79. archive.o: debug.h
  80. archive.o: defs.h
  81. archive.o: memory.h
  82. byte_order.o: assert.h
  83. byte_order.o: const.h
  84. error.o: ../../h/out.h
  85. error.o: const.h
  86. extract.o: ../../h/out.h
  87. extract.o: const.h
  88. extract.o: debug.h
  89. extract.o: defs.h
  90. extract.o: memory.h
  91. extract.o: orig.h
  92. extract.o: scan.h
  93. finish.o: ../../h/out.h
  94. finish.o: const.h
  95. finish.o: defs.h
  96. finish.o: memory.h
  97. finish.o: orig.h
  98. finish.o: scan.h
  99. main.o: ../../h/out.h
  100. main.o: const.h
  101. main.o: debug.h
  102. main.o: defs.h
  103. main.o: memory.h
  104. main.o: orig.h
  105. memory.o: ../../h/out.h
  106. memory.o: assert.h
  107. memory.o: const.h
  108. memory.o: debug.h
  109. memory.o: mach.c
  110. memory.o: memory.h
  111. output.o: ../../h/out.h
  112. output.o: const.h
  113. output.o: memory.h
  114. read.o: ../../h/arch.h
  115. read.o: ../../h/out.h
  116. read.o: ../../h/ranlib.h
  117. read.o: assert.h
  118. read.o: const.h
  119. relocate.o: ../../h/out.h
  120. relocate.o: const.h
  121. relocate.o: debug.h
  122. relocate.o: defs.h
  123. relocate.o: orig.h
  124. save.o: ../../h/arch.h
  125. save.o: ../../h/out.h
  126. save.o: assert.h
  127. save.o: const.h
  128. save.o: memory.h
  129. scan.o: ../../h/arch.h
  130. scan.o: ../../h/out.h
  131. scan.o: ../../h/ranlib.h
  132. scan.o: assert.h
  133. scan.o: const.h
  134. scan.o: memory.h
  135. scan.o: scan.h
  136. sym.o: ../../h/out.h
  137. sym.o: const.h
  138. sym.o: memory.h
  139. write.o: ../../h/out.h
  140. write.o: assert.h
  141. write.o: const.h
  142. write.o: memory.h
  143. write.o: orig.h