home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / clipper / automa.zip / BLINKER.DEF < prev    next >
Text File  |  1993-07-06  |  1KB  |  69 lines

  1. // BLINKER.DEF - Sample AUTOMAKE definition file. 
  2.  
  3. // Defines an application having explicit overlay area and using BLINKER.
  4. // Resulting files provide test and final compile/link.
  5. // AUTOMAKE also creates a file list for the application.
  6.  
  7.  
  8. // have AUTOMAKE add .ALL file to dependancies and create _OBJS macro
  9. AUTOMAKE = _ALL _OBJS
  10.  
  11. // standard compiler switches
  12. CLP = /a /m /n
  13.  
  14. #ifdef  FINAL
  15.     // recompile all .OBJ's w/o line numbers
  16.     ALL = Y
  17.     CLP := $(CLP) /l
  18. #else
  19.     // compile w/ debugging info and .PPO files
  20.     CLP := $(CLP) /b /p
  21. #endif
  22.  
  23. #ifdef  ALL
  24.     // update .ALL file to trigger recompile
  25.     #! echo > $(_ALL)
  26. #endif
  27.  
  28. // Clipper inference rule
  29. .prg.obj:
  30.     set INCLUDE=$(makepath[.ch])
  31.     set CLIPPERCMD=$(CLP)
  32.     Clipper $<
  33.     echo  
  34.  
  35. // RMAKE search paths
  36. makepath[.prg] = ".;util"
  37. makepath[.ch] = $(INCLUDE)
  38. makepath[.lib] = $(LIB)
  39.  
  40.  
  41. // APPLICATION MODULES
  42.  
  43. // Overlay area
  44. EXE = MyApp
  45. PRGS_OVL = $(EXE) Mod1 Mod2 CalcUtil
  46. MODS_OVL = Clipper(DiskSpace)
  47. LIBS_OVL = NanFor
  48.  
  49. // Root area
  50. LIBS = Clipper Extend
  51.  
  52. // file list for app
  53. HEDRS = Inkey Directry FileIO
  54. APPFILES = Blinker.def $(PRGS_OVL,>.prg) $(HEDRS,>.ch)
  55.  
  56. #compile rules
  57.  
  58.  
  59. // link script file
  60. SCRIPT = Temp.lnk
  61.  
  62. // include appropriate link dependancy rule
  63. #ifdef FINAL
  64.     #include Final.rmk
  65. #else
  66.     #include Test.rmk
  67. #endif
  68.  
  69.