Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>compiler batch files</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Compiler Batch Files


Syntax:        CL/CLD <source file>

Argument:      <source file> is the name of the program file to
               compile and link.  The filename can be specified
               including both a drive designator and/or a path
               reference.

               Note: Specifying the <source file> with an
               extension will cause a linker error.

Description:   Clipper includes two sample batch files (CL.BAT and
               CLD.BAT) for compiling and linking.  Both batch files
               compile the specified (.prg) file and link only if there
               is no compiler error during compilation.  If there is a
               compiler error, CLIPPER.EXE terminates with a return code
               of 1 and the batch file in turn terminates without
               attempting to link.

               CLD.BAT differs by linking the debugger to the resultant
               object file.


------------------------------------ CL.BAT --------------------------------

   CLS
   Clipper %1
   IF NOT ERRORLEVEL 1 Plink86 FI %1 LIB \CLIPPER\CLIPPER, \CLIPPER\EXTEND



----------------------------------- CLD.BAT --------------------------------

   CLS
   Clipper %1
   IF NOT ERRORLEVEL 1 Plink86 ;
        FI %1,\CLIPPER\DEBUG ;
        LIB \CLIPPER\CLIPPER, \CLIPPER\EXTEND

.

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