home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / PASSDK30.ZIP;1 / DISK1.ZIP / PAS / PCM / PLAYFILE < prev    next >
Encoding:
Text File  |  1993-04-07  |  1.8 KB  |  104 lines

  1.  
  2. ##
  3. ## Build file for creating PLAYFILE.EXE
  4. ##
  5. ## To build a LARGE model,    "nmake S=L M=4 [BCC=1]"
  6. ## To build a COMPACT model,    "nmake S=C M=3 [BCC=1]"
  7. ## To build a MEDIUM model,    "nmake S=M M=2 [BCC=1]"
  8. ## To build a SMALL model,    "nmake S=S M=1 [BCC=1]"
  9. ## To build a TINY model,    "nmake S=T M=0 [BCC=1]"
  10. ##
  11. ## Add BCC=1 to the line if building using Borland C++
  12. ##
  13.  
  14. ## The default is to build a small model.
  15.  
  16. !ifndef S
  17. !ifdef BCC
  18. S= s
  19. !else
  20. S= S
  21. !endif
  22. !endif
  23. !ifndef M
  24. M= 1
  25. !endif
  26.  
  27. ## The following are search paths
  28.  
  29. INC  = ..\INC
  30. GINC = ..\..\INC
  31.  
  32. LBO  =
  33. LBB  = ..\inc
  34.  
  35. #############################################################################
  36.  
  37. ## The following are command line options compiler, assembler selection
  38.  
  39. !ifdef BCC
  40.  
  41. BDIR = c:\borlandc
  42. BLB  = $(BDIR)\lib
  43.  
  44. ## tools selection
  45.  
  46. IP=%include%
  47. MA= tasm /i. /i$(INC) /i$(GINC) /JQUIRKS /JMASM51 /JNOSMART /m2
  48. CL= bcc  /I$(BDIR)\include /I. /I$(INC) /I$(GINC)
  49. LK= tlink
  50. LB= tlib
  51. CMOD= -m$(S)!
  52.  
  53. ## switches
  54.  
  55. AS= -mx
  56. AO= -DMODELSIZE=$(M) -DBUILD_NONE=1 -v
  57. CS= -c -Ox
  58. CO= $(CMOD)
  59. LS=
  60. LO= /m /c
  61. ONAM= -o
  62.  
  63. !else
  64.  
  65. ## tools selection
  66.  
  67. MA= masm
  68. CL= cl
  69. LK= link
  70. LB= lib
  71. CMOD=-A$(S)
  72.  
  73. ## switches
  74.  
  75. AS= /Mx
  76. AO= /DMODELSIZE=$(M) /DBUILD_NONE=1
  77. CS= /c /Ox /Zp1
  78. CO= $(CMOD)
  79. LO= /Ma
  80. LS=
  81. ONAM= -Fo
  82.  
  83. !endif
  84.  
  85. #############################################################################
  86.  
  87. DEFAULT: playfile.exe
  88.  
  89. playfile.obj: playfile.c
  90.     $(CL) $(CS) $(CO) /DPROAS=1 playfile.c
  91.  
  92. !ifdef BCC
  93.  
  94. playfile.exe: playfile.obj
  95.     $(LK) /L$(CLNK) $(LS) $(LO) $(BLB)\C0$(S) playfile,playfile,,$(LBB)\bvh$(S)lib+$(LBB)\bv$(S)lib+$(BLB)\c$(S).lib;
  96.  
  97. !else
  98.  
  99. playfile.exe: playfile.obj
  100.     $(LK) $(LS) $(LO) playfile,,,$(LBB)\mvh$(S)lib+$(LBB)\mv$(S)lib;;
  101.  
  102. !endif
  103.  
  104.