home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / c / zoo_src / z201src1 / makefile < prev    next >
Encoding:
Makefile  |  1988-08-25  |  2.5 KB  |  114 lines

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