home *** CD-ROM | disk | FTP | other *** search
/ Point Programming 1 / PPROG1.ISO / c / pas_sdk1 / pas / cdromapp / makefile < prev    next >
Encoding:
Makefile  |  1992-10-02  |  2.0 KB  |  81 lines

  1. ##
  2. ## This make file controls the building of the CD application programs 
  3. ## using any model library of the CDROM routines.
  4. ##
  5. ## To build a LARGE model,    "nmake S=L M=4"
  6. ## To build a COMPACT model,    "nmake S=C M=3"
  7. ## To build a MEDIUM model,    "nmake S=M M=2"
  8. ## To build a SMALL model,    "nmake S=S M=1"
  9. ## To build a TINY model,    "nmake S=T M=0"
  10. ##
  11. ## The default is to build a small model.
  12.  
  13. S= S
  14. M= 1
  15.  
  16. ## The following are options for the compiler, assembler and linker
  17.  
  18. MZ= # /Zi
  19.  
  20. CZ= -Zpi
  21. CO= -Od
  22.  
  23. LC= /CO 
  24.  
  25. # The following is the location of the mvXlib.lib library files
  26.  
  27. LIBDIR= ..\inc
  28.  
  29. .asm.obj:
  30.     masm $(MZ) $<;
  31.  
  32. .c.obj:
  33.     cl -nologo -c $(CO) $(CZ) -A$(S) $<
  34.  
  35. # The default is to build the command-line control apps, until it is
  36. # decided if the "mvcd.obj" and the "outbuf.obj" modules will be
  37. # included in the SDK.
  38.  
  39. cdromapp: cdpause.exe cdstatus.exe cdstop.exe cdplay.exe cdresume.exe cdreset.exe
  40.  
  41.  
  42. cdpause.obj: cdpause.c
  43.     cl -nologo -c $(CO) $(CZ) -A$(S) cdpause.c
  44.  
  45. cdstatus.obj: cdstatus.c
  46.     cl -nologo -c $(CO) $(CZ) -A$(S) cdstatus.c
  47.  
  48. cdstop.obj: cdstop.c
  49.     cl -nologo -c $(CO) $(CZ) -A$(S) cdstop.c
  50.  
  51. cdreset.obj: cdreset.c
  52.     cl -nologo -c $(CO) $(CZ) -A$(S) cdreset.c
  53.  
  54. cdplay.obj: cdplay.c
  55.     cl -nologo -c $(CO) $(CZ) -A$(S) cdplay.c
  56.  
  57. cdresume.obj: cdresume.c
  58.     cl -nologo -c $(CO) $(CZ) -A$(S) cdresume.c
  59.  
  60. # These programs control the CD from the command line
  61.  
  62. cdpause.exe: cdpause.obj 
  63.     link $(LC) cdpause.obj, cdpause.exe,, $(LIBDIR)\mvh$(S)lib.lib;
  64.  
  65. cdstatus.exe: cdstatus.obj 
  66.     link $(LC) cdstatus.obj, cdstatus.exe,, $(LIBDIR)\mvh$(S)lib.lib ;
  67.  
  68. cdstop.exe: cdstop.obj 
  69.     link $(LC) cdstop.obj, cdstop.exe,, $(LIBDIR)\mvh$(S)lib.lib ;
  70.  
  71. cdreset.exe: cdreset.obj 
  72.     link $(LC) cdreset.obj, cdreset.exe,, $(LIBDIR)\mvh$(S)lib.lib ;
  73.  
  74. cdplay.exe: cdplay.obj 
  75.     link $(LC) cdplay.obj, cdplay.exe,, $(LIBDIR)\mvh$(S)lib.lib ;
  76.  
  77. cdresume.exe: cdresume.obj 
  78.     link $(LC) cdresume.obj, cdresume.exe,, $(LIBDIR)\mvh$(S)lib.lib ;
  79.  
  80.  
  81.