home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 21 / IOPROG_21.ISO / SOFT / OSLIB101.ZIP / SOURCE / OSLIB.RMK < prev    next >
Encoding:
Text File  |  1998-04-14  |  1.9 KB  |  91 lines

  1. /* Tell me where Clipper lives. */
  2.  
  3. ClpHome=D:\Clipper\Master
  4.  
  5. /* Ane the home of the library. */
  6.  
  7. OSLHome=..\
  8.  
  9. /* Paths used in the build. */
  10.  
  11. PrgPath=$(OSLHome)\Source
  12. IncPath=$(OSLHome)\Include
  13. ErrPath=$(OSLHome)\Source
  14. ObjPath=$(OSLHome)\Obj
  15. RspPath=$(OSLHome)\Obj
  16. LibPath=$(OSLHome)\Lib
  17. LstPath=$(OSLHome)\Lib
  18. ApiPath=$(ClpHome)\Include
  19.  
  20. /* Set the MakePaths */
  21.  
  22. MakePath[.Prg] = $(PrgPath)
  23. MakePath[.C]   = $(PrgPath)
  24. MakePath[.Asm] = $(PrgPath)
  25. MakePath[.Obj] = $(ObjPath)
  26. MakePath[.Rsp] = $(RspPath)
  27. MakePath[.Lib] = $(LibPath)
  28. MakePath[.Exe] = $(BinPath)
  29. MakePath[.Ch]  = $(IncPath)
  30. MakePath[.H]   = $(IncPath)
  31.  
  32. /* Programs to call. */
  33.  
  34. CLIP = Clipper
  35. CC   = cl
  36. LIB  = Lib
  37.  
  38. /* Compiler flags. */
  39.  
  40. LIBCFLAGS = /c /Oealtc /FPa /Zln /AL /Gs /J /W3 /WX /Gt1 /I$(ApiPath)
  41. CLPFLAGS  = /l /p /m /n /w /es2
  42.  
  43. /* List and error files. */
  44.  
  45. ERRFILE = OSLib.Err
  46. RSPFILE = OSLib.Rsp
  47. LSTFILE = OSLib.Lst
  48.  
  49. /* Set up the error log. */
  50.  
  51. #!Echo OSLib.Lib Build Error Report>$(ErrPath)\$(ERRFILE)
  52. #!Echo ============================>>$(ErrPath)\$(ERRFILE)
  53. #!Echo.>>$(ErrPath)\$(ERRFILE)
  54.  
  55. /* Init the library response file. */
  56.  
  57. #!Echo $(LibPath)\OSLib.Lib>$(RspPath)\$(RSPFILE)
  58.  
  59. /* Build rules for C -> Obj. */
  60.  
  61. .C.Obj:
  62.         $(CC) $(LIBCFLAGS) /Fo$(ObjPath)\$*.Obj $*.C>>$(ErrPath)\$(ERRFILE)
  63.         Echo -+$@ &>>$(RspPath)\$(RSPFILE)
  64.  
  65. /* Build rules for ASM -> Obj. */
  66. .Asm.Obj:
  67.         masm /Ml $<,$(ObjPath)\$*.OBJ;
  68.         Echo -+$@ &>>$(RspPath)\$(RSPFILE)
  69.  
  70. /* Build rules for Rsp --> Lib. */
  71.  
  72. .Rsp.Lib:
  73.         Echo ,$(LstPath)\$(LSTFILE);>>$(RspPath)\$(RSPFILE)
  74.         $(LIB) @$<>>$(ErrPath)\$(ERRFILE)
  75.  
  76. /* C source files. */
  77.  
  78. AutYield.obj : AutYield.c
  79. DosVer.obj   : DosVer.c
  80. IsMSWin.obj  : IsMSWin.c
  81. IsOS2.obj    : IsOS2.c
  82. IsOS2Win.obj : IsOS2Win.c
  83. FullScrn.Obj : FullScrn.c
  84.  
  85. /* ASM source files. */
  86. Yield.obj    : Yield.asm
  87.  
  88. /* Library file details. */
  89.  
  90. OSLib.Lib       : $(RSPFILE)
  91.