Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- PBMake 2.17G for Clipper, Xbase++, C and˙+--------------------------------------------------------------+ - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

      PBMake allows for the following conditional directives from the
      command line, which can create conditional make scripts.

      #DEFINE
      #IFDEF
      #IFNDEF
      #ELSE
      #ENDIF
      #UNDEF

      These definitions can be nested up to 7 deep

      Definition parameters are defined by prefixing a /D

      For example, if you want to define DEMO to a PBMake script, you
      would pass /DDEMO as a parameter.

      Definitions are passed as parameters on the command line after the
      name of the make script, like:

      MAKE PBMAKE /DDEMO /DDEBUG
      or
      MAKE PBMAKE /DDEBUG

      Note! As of Version 2.00, these defines are passed on into the
      linker script. Actually, your .LNK script is processed into a
      temporary script which is then used to perform the link.

      With definitions like these, you can do the following:

+----------------------------------------------------------------------------+
|                 PBMake 2.17G for Clipper, Xbase++, C and ASM               |
|       Copyright (C) 1998 Phil Barnett, All Rights Reserved Worldwide       |
|                           See PBMAKE.NG for help.                          |
+----------------------------------------------------------------------------+

LINKER=BLINKER

PROG1=PBMAKE BUFFREAD

#IFDEF DEMO

   EXEFILE=DEMO\PBMAKE.EXE

   LINKFILE=DEMO.LNK
   OBJDIR=DEMO\OBJ\

   #IFNDEF DEBUG
      FLAG1= /M /N /W /Q /ES2 /DDEMO
   #ELSE
      FLAG1= /M /N /W /Q /ES2 /DDEMO /B
   #ENDIF

   SUCCESS=PKLITE DEMO\PBMAKE -E -A

#ELSE

   EXEFILE=REG\PBMAKE.EXE

   LINKFILE=REG.LNK
   OBJDIR=REG\OBJ\

   #IFDEF DEBUG
      FLAG1= /M /N /W /Q /ES2 /B
   #ELSE
      FLAG1= /M /N /W /Q /ES2
   #ENDIF

   SUCCESS=PKLITE REG\PBMAKE -E -A

#ENDIF

NONEED=ECHO PKLite not Necessary

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson