home *** CD-ROM | disk | FTP | other *** search
/ DOS Wares / doswares.zip / doswares / DATABASE / DB4COMP / SYSTEM.CA5 / SAMPLES.MAK < prev   
Encoding:
Makefile  |  1993-03-16  |  5.0 KB  |  175 lines

  1. #                     dBASE Compiler Sample Make File
  2. #              Copyright (c) 1993, Borland International, Inc.
  3. #
  4. # This example Make file defines instructions to create the
  5. # dBASE IV version 2.0 Samples application elements.
  6. #
  7. # This Make file takes advantage of the implicit rules which are
  8. # defined in the builtins.mak file which accompanies this release.
  9. #
  10. # These examples assume all source and object files are in the same
  11. # directory.
  12. #-------------------------------------------------------------------------
  13.  
  14. # The following conditional steps define the BDC compiler flag settings
  15. # based on the presence of a -DDEBUG on the make command line.  In
  16. # DEBUG mode, the BDC preprocessor output is saved to a file in the
  17. # current directory (.).
  18.  
  19. !ifdef DEBUG
  20. CFLAGS = $(CFLAGS) -p.
  21. !endif
  22.  
  23. # Define the following macro to specify to BDL that compact .EXE files
  24. # should be built.
  25. DFLAGS = $(DFLAGS) /S
  26.  
  27. # The following macros define useful sets of dBASE object files which
  28. # can be referenced in various rules.
  29.  
  30. # In some cases, to produce the corresponding source files
  31. # (.FRG, .LBG, etc.) needed by the compiler to produce these object
  32. # files, you will have to use the dBASE IV Control Center design
  33. # tools to generate the source files from the original design objects.
  34.  
  35. FORMO = ADDBOOK.FMO CONTACTS.FMO OBJECTS.FMO PHONELOG.FMO
  36.  
  37. REPORTO = \
  38.  ACCT_REC.FRO\
  39.  ALLNAMES.FRO\
  40.  CARDREC.FRO\
  41.  CODES.FRO\
  42.  CUST.FRO\
  43.  EMPLOYEE.FRO\
  44.  GOODS.FRO\
  45.  INVENTRY.FRO\
  46.  ORDERS.FRO\
  47.  REGIONAL.FRO\
  48.  VENDORS.FRO
  49.  
  50. LABELO = CARDONLY.LBO INVITES.LBO MAILALL.LBO NAMETAGS.LBO
  51.  
  52. VIEWO = GUESTS.QBO LOCATOR.QBO NAMESQRY.QBO ADDCODES.UPO
  53.  
  54. BINFILEO = GETDRIVE.BIN STRSUBST.BIN
  55.  
  56. BUS_OBJ = \
  57.  BUSINESS.DBO\
  58.  ACCT_REC.DBO\
  59.  AREACODE.DBO\
  60.  BACK_RES.DBO\
  61.  CUST.DBO\
  62.  EMPLOYEE.DBO\
  63.  EMP_REPT.DBO\
  64.  GOODS.DBO\
  65.  HELPER.DBO\
  66.  INVOICES.DBO\
  67.  LIBRARY.DBO\
  68.  MENUS.DBO\
  69.  ORDERS.DBO\
  70.  VENDORS.DBO
  71.  
  72.  
  73. # Each of the following pseudo-targets can be referenced explicitly on
  74. # the Make command line.  Notice that there is no explicit command after
  75. # the target: dependent specification.  However, Make will determine
  76. # whether any of the dependent object files is older than its matching
  77. # source file and automatically recompile it via the proper implicit rule
  78. # in builtins.mak.
  79.  
  80. # The implicit rule for making ".BIN" files assumes that Borland's
  81. # TASM assembler and TLINK linker are installed and locatable via
  82. # the DOS PATH environment variable.  Edit builtins.mak to use other
  83. # vendors' assemblers or linkers.
  84.  
  85. forms: $(FORMO)
  86.  
  87. reports: $(REPORTO)
  88.  
  89. labels: $(LABELO)
  90.  
  91. views: $(VIEWO)
  92.     
  93. binfiles: $(BINFILEO)
  94.  
  95.  
  96. # Following are simple rules to create the demonstrations of new,
  97. # improved mouse and event features.  These rules take advantage
  98. # of the implicit rule in builtins.mak.
  99. # A suggested Make command line to build dochisel.exe is:
  100. #
  101. #      MAKE -fsamples.mak dochisel.exe 
  102.  
  103. dochisel.exe: dochisel.dbo
  104.  
  105. movewin.exe: movewin.dbo
  106.  
  107. barcount.exe: barcount.dbo
  108.  
  109. mrowcol.exe: mrowcol.dbo
  110.  
  111. onmouse.exe: mrowcol.dbo
  112.  
  113. # The following rule creates the AREACODE sample application as a
  114. # compact .EXE.
  115.  
  116. areacode.exe: areacode.dbo library.dbo
  117.   BDL -EAREACODE /S /BAREACODE $**
  118.  
  119.  
  120. # Following is a rule which creates the Business sample application
  121. # as a compact .EXE.  This rules takes advantage of the implicit rule
  122. # for compiling .PRG files into .DBO files.  If none of the .DBO
  123. # files is newer than business.exe, the link step will also be skipped.
  124. # This rule uses the "in-line file" feature to produce a list file of
  125. # the .DBO files for BDL to process.
  126.  
  127. BUSINESS.EXE: $(BUS_OBJ)
  128.   BDL -EBUSINESS.EXE /S /BBUSINESS @&&"
  129.  BUSINESS.DBO
  130.  ACCT_REC.DBO
  131.  AREACODE.DBO
  132.  BACK_RES.DBO
  133.  CUST.DBO
  134.  EMPLOYEE.DBO
  135.  EMP_REPT.DBO
  136.  GOODS.DBO
  137.  HELPER.DBO
  138.  INVOICES.DBO
  139.  LIBRARY.DBO
  140.  MENUS.DBO
  141.  ORDERS.DBO
  142.  VENDORS.DBO
  143. "
  144.  
  145.  
  146. # The following pseudo-target will cause ALL of the elements of the
  147. # dBASE IV version 2.0 Samples applications to be created.
  148.  
  149. samples: business.exe dochisel.exe movewin.exe barcount.exe\
  150.  mrowcol.exe onmouse.exe areacode.exe\
  151.  $(VIEWO) $(FORMO) $(REPORTO) $(LABELO) $(BINFILEO)
  152.  
  153.  
  154. # Following is a general purpose rule which will compile and link all
  155. # .PRG files in the current directory.  The make command must include
  156. # a -DSTART=<procname> parameter to name the procedure which should be
  157. # first executed in the linked .EXE.  In this case, the linker is called
  158. # automatically by BDC and directed to created a standalone .EXE.
  159. #
  160. # The dir /B option is only supported in MS-DOS 5.0 or later.
  161. #
  162. # The use of the BDC @<filename> option, rather than expanding the
  163. # list in-line, ensures that the BDC command line will not become
  164. # too long.  A DOS command line is limited to 127 characters.
  165.  
  166. bigapp:
  167. !ifdef START
  168.  dir *.prg /B > zzzzzbig.src
  169.  bdc @zzzzzbig.src -B$(START) -E$(START) -L
  170.  del zzzzzbig.src
  171. !else
  172.  @echo You MUST define the START macro on the command line!
  173.  @echo Please view the SAMPLES.MAK file for further instructions.
  174. !endif
  175.