home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 432b.lha / EzLib / src / makefile < prev    next >
Makefile  |  1990-11-10  |  1KB  |  56 lines

  1. # this is a somewhat stupid makefile.  I still haven't learned the
  2. # subtleties of the .c.o rules... sigh
  3. #
  4. # This will compile and make the library.  I make use of a pre-compiled
  5. # header file as it makes compile times *much* faster.    Everything should
  6. # work as is if you have to rebuild the library (at least I hope so).
  7. #
  8. # Oh BTW, the demo that is in the directory above this one is created in
  9. # this makefile.  This is to test out the library, and if you make changes
  10. # you should make sure that the demo still works
  11. #
  12.  
  13. # header.h is actually the precompiled header file
  14. CFLAGS = +L +Iinclude/header.h
  15.  
  16. OBJS= getstring.o getfont.o getyn.o gadget.o window.o screen.o openlibs.o
  17.  
  18. all : demo ez.lib include/header.h
  19.  
  20. include/header.h : include/includes.h
  21.          cc +L +Hinclude/header.h includes.h
  22.  
  23. demo : ez.lib demo.o
  24.     ln -o demo demo.o ez.lib -lc
  25.  
  26. demo.o       : demo.c
  27.        cc $(CFLAGS) demo.c
  28.  
  29. ez.lib : $(OBJS)
  30.      lb ez $(OBJS)
  31.  
  32. openlibs.o : openlibs.c ezlib.h
  33.        cc $(CFLAGS) openlibs.c
  34.  
  35. screen.o  : screen.c ezlib.h
  36.        cc $(CFLAGS) screen.c
  37.  
  38. window.o  : window.c ezlib.h
  39.        cc $(CFLAGS) window.c
  40.  
  41. gadget.o  : gadget.c ezlib.h
  42.        cc $(CFLAGS) gadget.c
  43.  
  44. getyn.o    : getyn.c  ezlib.h
  45.        cc $(CFLAGS) getyn.c
  46.  
  47. getfilename.o : getfilename.c ezlib.h
  48.           cc $(CFLAGS) getfilename.c
  49.  
  50. getfont.o  : getfont.c ezlib.h
  51.        cc $(CFLAGS) getfont.c
  52.  
  53. getstring.o   : getstring.c  ezlib.h
  54.        cc $(CFLAGS) getstring.c
  55.  
  56.