|
|
|
|
All of the makefile utilities startup scripts support a standard set of options for controlling the way that the compilation is performed. Makefile options are provided for turning on debug information, speed or size optimizations and inline floating point instructions. By default when you build files, no optimizations and no debugging information is generated. The following table lists the most common and useful of these options for building examples and re-compiling any libraries.
DBG |
Turns on debug information |
OPT |
Turns on speed optimizations |
OPT_SIZE |
Turns on size optimizations |
FPU |
Turns on inline floating point arithmetic |
BUILD_DLL |
Build a dynamic link library of Unix shared library |
STKCALL |
Turns on stack calling conventions for Watcom C++ |
SHOW_ARGS |
Show full arguments passed to compiler under Unix |
CHECKED |
Compile and link against checked debug libraries |
MAX_WARN |
Turn on maximum compiler warning setting |
USE_PMODEW |
Use PMODE/W DOS extender for 32-bit DOS |
USE_CAUSEWAY |
Use CauseWay DOS extender for 32-bit DOS |
All of the above options can be passed to dmake in one of two ways: on the command line or as global environment variables. For instance the following are equivalent:
dmake DBG=1 OPT=1 install
or
set DBG=1
set OPT=1
dmake install
The primary difference between the two is that by setting the environment variables, you change the default behavior for dmake, so that every time you build something those options will be in effect. The environment variable mechanism is useful to set the most common options that you will use so you don’t have to constantly pass them on the command line.
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com