


Sample makefiles are provided which show how a DLL and an EXE can be created from one COBOL precompiler source file. If the DLL or the EXE are to be generated from several source files, the makefiles must be adapted accordingly. The makefiles must also be adapted, if options of the COBOL precompiler or COBOL compiler change.
To define the base name of the source file (filename without extension), use the variable "pcsrc".

The following sequence of commands creates an EXE using the above-mentioned makefile:
set PCSRC=hbl
nmake /f cobpcexe.mak hbl.exe

The following sequence of commands creates a DLL using the above-mentioned makefile:
set PCSRC=hbl
nmake /f cobpcdll.mak hbl.dll
See also:
Executing the Linked COBOL Program
COBOL Precompiler Runtime Options
COBOL Precompiler Input/Output Files
Calling Operating System Commands
COBOL Precompiler Include Files


