home *** CD-ROM | disk | FTP | other *** search
/ Point Programming 1 / PPROG1.ISO / c / pas_sdk1 / pas / subs / cdrom / makefile < prev    next >
Encoding:
Makefile  |  1992-07-21  |  1.5 KB  |  53 lines

  1. ##
  2. ## This make file controls the building of the any model library for
  3. ## 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 command line options for the compiler and assembler
  17.  
  18. MM= /Mx
  19. MZ= # /Zi
  20.  
  21. CZ= -Zp # -Zi
  22. CO= # -Od
  23.  
  24. ## The following are command line options for the librarian
  25.  
  26. LIBDIR= ..\..\inc
  27.  
  28. ## The default is to build the model-specific library, and is included
  29. ## for compatibility for the "make" program (this is an "nmake" file).
  30.  
  31. default: $(LIBDIR)\mvh$(S)lib.lib
  32.  
  33. ## The following are the command lines to build each module.
  34. ## The output file is named according to the model, the first letter
  35. ## of the name representing the model (L, C, M, S, T)
  36.  
  37. $(S)mscdex.obj: mscdex.asm 
  38.     masm /t $(MM) $(MZ) /DMODELSIZE=$(M) mscdex.asm, $(S)mscdex.obj;
  39.  
  40. $(S)cdrom.obj: cdrom.c 
  41.     cl -nologo -c $(CO) $(CZ) -A$(S) -Fo$(S)cdrom.obj cdrom.c
  42.  
  43. $(S)cdmas.obj:
  44.     cl -nologo -c $(CO) $(CZ) -A$(S) -Fo$(S)cdmas.obj cdmaster.c
  45.  
  46. ## The following are the command lines for the librarian
  47.  
  48. $(LIBDIR)\mvh$(S)lib.lib: $(S)mscdex.obj $(S)cdrom.obj $(S)cdmas.obj
  49.     lib $(LIBDIR)\mvh$(S)lib -+$(S)mscdex.obj ,,$(LIBDIR)\mvh$(S)lib;
  50.     lib $(LIBDIR)\mvh$(S)lib -+$(S)cdrom.obj; ,,$(LIBDIR)\mvh$(S)lib;
  51.     lib $(LIBDIR)\mvh$(S)lib -+$(S)cdmas.obj; ,,$(LIBDIR)\mvh$(S)lib;
  52.  
  53.