home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / clipper / 52capi.zip / RULES.RMK < prev    next >
Text File  |  1993-07-07  |  2KB  |  100 lines

  1. // Rules.rmk Include file  (V1.20)
  2. //
  3. // Copyright (C) 1991-3, Computer Associates, All rights reserved.
  4. // -------------------------------===-------------------------------------
  5. // WARNING:
  6. // Rules expects $(LIBLIST) to contain a list of library files.
  7. // -----------------------------------------------------------------------
  8. //
  9. // If CLIPSW or LINKSW are defined as Compiler or Linker options, then
  10. // they are not bothered, otherwise, DEBUG and PLL are checked, and the
  11. // option macros are set appropriately based on the defined state of 
  12. // these macros.
  13. //
  14. // This is meant to be an example of what your Rules.rmk file COULD look
  15. // like.  In reality, you may want to hardwire makepaths, linker choices,
  16. // corporate library directories (network directories), and other compiler
  17. // types.  However, this Rules file is adequate for most purposes.
  18. //
  19.  
  20. // Define BIN directories here, have them in the path, or define
  21. // them in your individual make files.
  22. //
  23. // Note: Directories must have trailing backslashes
  24. //
  25. #ifndef LINKDIR
  26.    LINKDIR=
  27. #endif
  28.  
  29. #ifndef CLIPDIR
  30.    CLIPDIR=
  31. #endif
  32.  
  33. #ifndef MSCDIR
  34.    MSCDIR=
  35. #endif
  36.  
  37. // Set compile switches
  38. //
  39. #ifndef CLIPSW
  40.    #ifdef DEBUG
  41.       CLIPSW=/w /m /b /n /p /dDEBUG
  42.    #else 
  43.       CLIPSW=/w /m /l /n
  44.    #endif
  45. #endif
  46.  
  47. #ifndef LINKSW
  48.    #ifdef PLL
  49.       LINKSW=/PLL:BASE50
  50.    #else
  51.       LINKSW=
  52.    #endif
  53. #endif
  54.  
  55. // Handle MSC versions 6 or 7
  56. //
  57. #ifdef C600
  58.    MSCSW=$(MSCSW) /Gh
  59. #endif
  60.  
  61. #ifdef C700
  62.    MSCSW=$(MSCSW) /Gh
  63. #endif
  64.  
  65. //  ALL INCLUDE directories (MSC,CLIPPER, etc...) should be
  66. //  in your environment or in the make -- not in this rules file!
  67. //  NOTE: LIB is assumed to be set properly as well.
  68. //
  69. makepath[.ch] = "$(INCLUDE)"
  70.  
  71. .prg.OBJ:
  72.    SET CLIPPERCMD=$(CLIPSW)
  73.    SET INCLUDE=$(INCLUDE)
  74.    $(CLIPDIR)CLIPPER $< /o$(OBJDIR)
  75.  
  76. .c.OBJ:
  77.    SET MSC=-c -AL -FPa -Gs -Zl -Oalt
  78.    $(MSCDIR)CL $(MSCSW) $<.c
  79.  
  80. // To do deferred linking:
  81.  
  82. .OBJ.RSP:
  83.    ECHO $<+ >> $@
  84.  
  85. .RSP.EXE:
  86.    ECHO NUL >> $**
  87.    ECHO $@ >> $**
  88.    ECHO NUL >> $**
  89.    ECHO $(LIBLIST); >> $**
  90.    SET RTLINKCMD=/POSI /VERBOSE
  91.    $(LINKDIR)RTLINK @$**
  92.  
  93. // Demand linking section
  94.  
  95. .OBJ.EXE:
  96.    SET RTLINKCMD=/POSI /VERBOSE
  97.    $(LINKDIR)RTLINK $<,NUL,$@,$(LIBLIST);
  98.  
  99. // EOF: Rules.rmk
  100.