home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / PROGRAM / C / APMTEST / MAKEFILE < prev    next >
Text File  |  1993-12-01  |  1KB  |  62 lines

  1. #
  2. # Makefile for building the APM library, "libapm.a"
  3. #
  4.  
  5. CC          = cc
  6.  
  7. CFLAGS        = -O
  8.  
  9. LIBRARY          = libapm.a
  10.  
  11. OBJS          = addsub.o calc.o memory.o misc.o muldiv.o utils.o
  12.  
  13. SRCS          = addsub.c calc.c memory.c misc.c muldiv.c utils.c
  14.  
  15. all:        $(LIBRARY)
  16.  
  17. $(LIBRARY):    $(OBJS)
  18.         ar cru  tempfile `lorder $(OBJS) | tsort`
  19.         mv tempfile $(LIBRARY)
  20.  
  21. test:        test/apmtest
  22.  
  23. test/apmtest:    $(LIBRARY)
  24.         cd test; make
  25.  
  26. clean:
  27.         rm -f $(OBJS)
  28.         cd test; make clean
  29.  
  30. # The 'depend' production assumes the use of a program called 'makedepend'.
  31. # Change your 'depend' line accordingly.
  32.  
  33. depend:
  34.         makedepend $(SRCS)
  35.         cd test ; make depend
  36.         
  37. # The 'shar' production assumes the use of a rather specific shar program
  38. # called 'doshar'.  Change your 'shar' line accordingly.
  39.  
  40. shar:
  41.         doshar README FUNCTIONS LICENSE Makefile makefile.msc apm.arf \
  42.         *.c *.h test/Makefile test/makefile.msc test/apmtest.c
  43.  
  44. ###
  45. # DO NOT DELETE THIS LINE -- makedepend uses it.
  46. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  47.  
  48. addsub.c:
  49. addsub.o: addsub.c /usr/include/stdio.h apm.h apmlocal.h
  50. calc.c:
  51. calc.o: calc.c /usr/include/stdio.h /usr/include/varargs.h apm.h apmlocal.h
  52. memory.c:
  53. memory.o: memory.c /usr/include/stdio.h apm.h apmlocal.h
  54. misc.c:
  55. misc.o: misc.c /usr/include/stdio.h apm.h apmlocal.h
  56. muldiv.c:
  57. muldiv.o: muldiv.c /usr/include/stdio.h apm.h apmlocal.h
  58. utils.c:
  59. utils.o: utils.c /usr/include/stdio.h /usr/include/varargs.h apm.h apmlocal.h
  60.  
  61. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  62.