Makefile 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. #
  2. # Author: L.J. Bekema @ VU Informatica, Amsterdam
  3. #
  4. # Definitions for the making programs.
  5. EMHOME = ../..
  6. LIBDIR= $(EMHOME)/lib
  7. MODLIBDIR = $(EMHOME)/modules/lib
  8. PREFLAGS= -I$(EMHOME)/h -DNDEBUG -DNASSERT
  9. CFLAGS = $(PREFLAGS) -O
  10. LDFLAGS =
  11. LDLIBS = $(MODLIBDIR)/libstring.a $(MODLIBDIR)/libobject.a
  12. LINTFLAGS=-phbxa $(PREFLAGS)
  13. PR = pr
  14. PRFLAGS =
  15. # Some convenient macro definitions.
  16. CFILES = archive.c error.c extract.c finish.c main.c memory.c\
  17. output.c read.c relocate.c save.c scan.c sym.c write.c
  18. HFILES = assert.h const.h debug.h defs.h memory.h orig.h scan.h
  19. OFILES = archive.o error.o extract.o finish.o main.o memory.o\
  20. output.o read.o relocate.o save.o scan.o sym.o write.o
  21. # Things that can be made.
  22. led: $(OFILES)
  23. $(CC) $(LDFLAGS) $(OFILES) $(LDLIBS) -o led
  24. install:led
  25. rm -f $(LIBDIR)/em_led $(EMHOME)/man/led.6 $(EMHOME)/man/ack.out.5
  26. cp led $(LIBDIR)/em_led
  27. cp led.6 $(EMHOME)/man/led.6
  28. cp ack.out.5 $(EMHOME)/man/ack.out.5
  29. cmp: led
  30. cmp led $(LIBDIR)/em_led
  31. lint:
  32. lint $(LINTFLAGS) $(CFILES)
  33. pr: $(CFILES) $(HFILES) mach.c
  34. $(PR) $(PRFLAGS) $?
  35. @touch pr
  36. opr:
  37. make pr | opr
  38. clean:
  39. rm -f Out *.o led nohup.out
  40. depend:
  41. makedepend $(CFILES)
  42. # The next lines are generated automatically.
  43. # AUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTO
  44. archive.o: const.h
  45. archive.o: debug.h
  46. archive.o: defs.h
  47. archive.o: memory.h
  48. error.o: const.h
  49. extract.o: const.h
  50. extract.o: debug.h
  51. extract.o: defs.h
  52. extract.o: memory.h
  53. extract.o: orig.h
  54. extract.o: scan.h
  55. finish.o: const.h
  56. finish.o: defs.h
  57. finish.o: memory.h
  58. finish.o: orig.h
  59. finish.o: scan.h
  60. main.o: const.h
  61. main.o: debug.h
  62. main.o: defs.h
  63. main.o: memory.h
  64. main.o: orig.h
  65. memory.o: assert.h
  66. memory.o: const.h
  67. memory.o: debug.h
  68. memory.o: mach.c
  69. memory.o: memory.h
  70. output.o: const.h
  71. output.o: memory.h
  72. read.o: assert.h
  73. read.o: const.h
  74. relocate.o: const.h
  75. relocate.o: debug.h
  76. relocate.o: defs.h
  77. relocate.o: orig.h
  78. save.o: assert.h
  79. save.o: const.h
  80. save.o: memory.h
  81. scan.o: assert.h
  82. scan.o: const.h
  83. scan.o: memory.h
  84. scan.o: scan.h
  85. sym.o: const.h
  86. sym.o: memory.h
  87. write.o: assert.h
  88. write.o: const.h
  89. write.o: memory.h
  90. write.o: orig.h