home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_10_03 / 1003060a < prev    next >
Text File  |  1991-10-07  |  605b  |  35 lines

  1. ########################################
  2. #
  3. #   LISTING 7
  4. #
  5. #   Makefile for TAPE.SYS demo device
  6. #   driver
  7. #
  8.  
  9. MODEL       =   s
  10. LIBS        =   \lib\c$(MODEL)
  11. LINK        =   /m /s
  12. COMPILE     =   -w -c
  13. ASSEMBLE    =   /w+ /mx
  14.  
  15. .c.obj:
  16.     tcc $(COMPILE) -m$(MODEL) $*
  17.  
  18. .asm.obj:
  19.     tasm $(ASSEMBLE) $*
  20.  
  21. all:    tape.sys
  22.  
  23. start.obj:  start.asm
  24.  
  25. exec.obj:   exec.c driver.h
  26.  
  27. tape.obj:   tape.c driver.h tape.h
  28.  
  29. tape.exe: start.obj exec.obj tape.obj
  30.     tlink $(LINK) start exec tape,tape.exe,,$(LIBS)
  31.  
  32. tape.sys:   tape.exe
  33.     exe2bin tape.exe tape.sys
  34.     del tape.exe
  35.