home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / m / makedrawf / Source / Makefile < prev    next >
Makefile  |  1997-01-13  |  2KB  |  70 lines

  1. # Makefile for mkdrawf 3
  2.  
  3. #-----------------------------------------------------
  4.  
  5. CC    = cc
  6. CC3    = cc3        # see file !!Note
  7. AS    = objasm
  8. LINK    = link
  9.  
  10. CFLAGS    = -fah #-DTAGS
  11. LFLAGS    = 
  12. DEFS    = 
  13.  
  14. LIBS    = C:o.stubs
  15.  
  16. INSTDIR    = $.bin.gjm# where you want executables to go
  17. TAGOBJ    = #o.tagfile    # define this if you use -DTAGS
  18.  
  19. #-----------------------------------------------------
  20.  
  21. .SUFFIXES: .o .s .c
  22.  
  23. .c.o:;    $(CC) -c $(CFLAGS) $(INCLUDE) $(DEFS) $<
  24. .s.o:;    $(AS) $<
  25.  
  26. #-----------------------------------------------------
  27.  
  28. all: mkdrawf decdrawf
  29.  
  30. squeeze: mkdrawf decdrawf
  31.   squeeze -v mkdrawf
  32.   squeeze -v decdrawf
  33.  
  34. install:
  35.   copy mkdrawf $(INSTDIR).mkdrawf f~c
  36.   copy decdrawf $(INSTDIR).decdrawf f~c
  37.  
  38. # --CAUTION-- If you have no assembler, change the first line of the following!
  39. # You might also want to lose the "remove" lines, but I doubt it.
  40. clean:
  41.   wipe o.* ~c
  42.   remove mkdrawf
  43.   remove decdrawf
  44.  
  45. dist: squeeze
  46.   remove o.decdrawf
  47.   remove o.general
  48.   remove o.mouth
  49.   remove o.stomach
  50.   remove o.tagfile
  51.   remove o.test
  52.  
  53. #-----------------------------------------------------
  54.  
  55. mkdrawf: o.mouth o.stomach o.general o.syscalls $(TAGOBJ) h.mkdrawf
  56.   $(LINK) $(LFLAGS) -o mkdrawf o.mouth o.stomach o.general o.syscalls\
  57.     $(TAGOBJ) $(LIBS)
  58.  
  59. decdrawf: o.decdrawf o.lowfile
  60.   $(LINK) $(LFLAGS) -o decdrawf o.decdrawf o.lowfile $(LIBS)
  61.  
  62. test: o.mouth o.general o.syscalls o.test $(TAGOBJ)
  63.   $(LINK) $(LFLAGS) -o test o.mouth o.general o.syscalls o.test\
  64.     $(TAGOBJ) $(LIBS)
  65.  
  66. #-----------------------------------------------------
  67.  
  68. o.mouth: c.mouth
  69.   $(CC3) -c $(CFLAGS) $(INCLUDE) $(DEFS) c.mouth
  70.