home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / proglc / zoo141_c.lzh / MAKEFILE < prev    next >
Text File  |  1987-02-01  |  3KB  |  110 lines

  1. #Make Zoo
  2. #
  3. #The contents of this makefile are hereby released to the public domain.
  4. #                                  -- Rahul Dhesi 1986/12/31
  5. #
  6. #This makefile should not be invoked directly, because different 
  7. #targets require different compilation switches.  The standard make
  8. #utility does not allow different switches to be specified for each target
  9. #(except through recursive invocation, which takes more memory than 
  10. #some systems have).  Invoke this makefile through one of the several
  11. #shell scripts supplied.  For non *NIX systems, convert the appropriate
  12. #shell script to one accepted by your system.
  13. #
  14. #This makefile expects two macro names, `cswitch' and `extra', to hold
  15. #all the switches to be supplied to the C compiler.  It also expects
  16. #a macro `ldswitch' to hold the switch for the loader when invoked.
  17.  
  18. #Destination directory where `make install' will put the programs.
  19. DESTDIR = ../bin
  20.  
  21. cswitch =
  22. extra = -DBIG_MEM -DNDEBUG
  23.  
  24. #List of all object files created for Zoo
  25. ZOOOBJS =     addbfcrc.o addfname.o basename.o comment.o crcdefs.o \
  26.         getfile.o lzc.o lzd.o machine.o makelist.o misc.o misc2.o \
  27.         nextfile.o needed.o options.o parse.o portable.o prterror.o \
  28.         zoo.o zooadd.o zooadd2.o zoodel.o zooext.o zoolist.o \
  29.         zoopack.o
  30.  
  31. FIZOBJS = fiz.o addbfcrc.o portable.o crcdefs.o
  32.  
  33. .c.o :
  34.     cc $(cswitch) $(extra) $*.c
  35.  
  36. all : ERROR
  37.  
  38. zoo: $(ZOOOBJS)
  39.     cc $(ldswitch) $(ZOOOBJS)
  40.  
  41. fiz: $(FIZOBJS)
  42.     cc $(ldswitch) $(FIZOBJS)
  43.  
  44. #Install executable code into destination directory.  If your system
  45. #has the `install' program invoke it as:  install -s zoo $(DESTDIR)/zoo
  46. #
  47. install : 
  48.     mv zoo $(DESTDIR)/zoo
  49.     mv fiz $(DESTDIR)/fiz
  50.  
  51. clean :
  52.     /bin/rm -f core a.out $(ZOOOBJS) $(FIZOBJS)
  53.  
  54. lzd.o : lzd.c zoomem.h
  55.     cc $(cswitch) $(extra) $*.c
  56.  
  57. lzc.o : lzc.c zoomem.h
  58.     cc $(cswitch) $(extra) $*.c
  59.  
  60. addbfcrc.o : addbfcrc.c
  61.  
  62. addfname.o : addfname.c
  63.  
  64. basename.o : basename.c
  65.  
  66. comment.o : comment.c 
  67.  
  68. crcdefs.o : crcdefs.c
  69.  
  70. getfile.o : getfile.c zoomem.h
  71.     cc $(cswitch) $(extra) $*.c
  72.  
  73. machine.o : machine.c nixtime.i
  74.     cc $(cswitch) $(extra) $*.c
  75.  
  76. makelist.o : makelist.c
  77.  
  78. misc.o : misc.c 
  79.  
  80. misc2.o : misc2.c zoomem.h
  81.     cc $(cswitch) $(extra) $*.c
  82.  
  83. options.o : options.c
  84.  
  85. nextfile.o :  nextfile.c
  86.  
  87. needed.o : needed.c
  88.  
  89. parse.o : parse.c
  90.  
  91. portable.o : portable.c
  92.  
  93. prterror.o : prterror.c
  94.  
  95. zoo.o :   zoo.c zoomem.h errors.i
  96.     cc $(cswitch) $(extra) $*.c
  97.  
  98. zooadd.o : zooadd.c 
  99.  
  100. zooadd2.o : zooadd2.c
  101.  
  102. zoodel.o : zoodel.c 
  103.  
  104. zooext.o : zooext.c  errors.i
  105.     cc $(cswitch) $(extra) $*.c
  106.  
  107. zoolist.o : zoolist.c 
  108.  
  109. zoopack.o : zoopack.c 
  110.