home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 13 / CDA13.ISO / cdactual / demobin / share / program / C / APM.ZIP / MAKEFILE < prev    next >
Encoding:
Text File  |  1988-10-12  |  1.5 KB  |  60 lines

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