home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / utilities / utilsm / mkdrawf / Source / Makefile < prev    next >
Encoding:
Makefile  |  1995-04-26  |  1.2 KB  |  55 lines

  1. # Makefile for mkdrawf,decdrawf distribution
  2.  
  3. # Things you might need to change:
  4. ASM    = as        # your assembler
  5. CC    = cc        # your C compiler
  6. INSTDIR    = $.bin2# where you want the executables to go
  7.  
  8. # Customise mkdrawf by defining symbols:
  9. # DEFS    = -DTAGS
  10.  
  11. #---------------------------------------------------------------------------
  12.  
  13. all: mkdrawf decdrawf
  14.  
  15. squeeze:
  16.   squeeze -v mkdrawf
  17.   squeeze -v decdrawf
  18.  
  19. install:
  20.   copy mkdrawf $(INSTDIR).mkdrawf f~c
  21.   copy decdrawf $(INSTDIR).decdrawf f~c
  22.  
  23. # CAUTION! If you have no assembler, change the first line of the following
  24. clean:
  25.   wipe o.* ~c
  26.   remove mkdrawf  # you may want to lose these two lines
  27.   remove decdrawf
  28.  
  29. #---------------------------------------------------------------------------
  30.  
  31. # The programs themselves
  32.  
  33. mkdrawf: o.mkdrawf o.syscalls
  34.   $(CC) o.mkdrawf o.syscalls
  35. decdrawf: o.decdrawf o.lowfile
  36.   $(CC) o.decdrawf o.lowfile
  37.  
  38.  
  39. # Object files for the programs themselves
  40.  
  41. o.mkdrawf: c.mkdrawf
  42.   | (Expect 11 warnings about c.mkdrawf.)
  43.   $(CC) -c $(DEFS) mkdrawf
  44. o.decdrawf: c.decdrawf
  45.   | (Expect 2 warnings about c.decdrawf.)
  46.   $(CC) -c $(DEFS) decdrawf
  47.  
  48.  
  49. # Object files for useful low-level functions
  50.  
  51. o.syscalls: s.syscalls
  52.   $(ASM) s.syscalls
  53. o.lowfile: s.lowfile
  54.   $(ASM) s.lowfile
  55.