Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland MAKE v4.0 - make options http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
MAKE options
------------
Command-line options control MAKE behavior. Options are
case-sensitive. Type options with either a preceding - or /. For
example, to use a file called PROJECTA.MAK as the makefile, type MAKE
-fPROJECTA.MAK (a space after -f is optional). Many of the
command-line options have equivalent directives that are used in the
makefile. The following table describes MAKE's command-line options.


Option          Description
------          -----------
-h or -?        Displays MAKE options and shows defaults with
                a trailing plus sign.

-B              Builds all targets regardless of file dates.

-D<macro>       Defines <macro> as a single character, causing
                an expression <!ifdef macro> written in the
                makefile to return true.

[-D]<macro>=[string]    Defines <macro> as "string." If "string"
                        contains any spaces or tabs, enclose "string"
                        in quotation marks. The -D is optional.

-I<directory>   Searches for include files in the current
                directory first, then in <directory>.

-K              Keeps temporary files that MAKE creates (MAKE
                usually deletes them).

-N              Executes MAKE like Microsoft's NMAKE (see the
                section following this table for more
                information).

-U<macro>       Undefines previous definitions of <macro>.

-W              Writes the current specified non-string
                options to MAKE.EXE making them defaults.

-f<filename>    Uses <filename> or <filename>.MAK instead of
                MAKEFILE (space after -f is optional).

-a              Checks dependencies of include files and
                nested include files associated with .OBJ
                files and updates the .OBJ if the .H file
                changed. See also -c.

-c              Caches autodependency information, which can
                improve MAKE's speed. Use with -a; don't use
                if MAKE changes include files (such as using
                TOUCH from a makefile or creating header or
                include files during the MAKE process).

-d<directory>   Used with -S to specify the drive and
                directory MAKE uses when it swaps out of
                memory. The option is ineffective when used
                with the MAKER.

-e              Ignores a macro if its name is the same as an
                environment variable (MAKE uses the
                environment variable instead of the macro).

-i              Ignores the exit status of all programs run
                from MAKE and continues the build process.

-m              Displays the date and time stamp of each file
                as MAKE processes it.

-n              Prints the commands but doesn't actually
                perform them, which is helpful for debugging
                a makefile.

-p              Displays all macro definitions and implicit
                rules before executing the makefile.

-q              Returns 0 if the target is up-to-date and
                nonzero if is is not (for use with batch
                files).

-r              Ignores any rules defined in BUILTINS.MAK.

-s              Suppresses onscreen command display.

-S              Swaps MAKER out of memory while commands are
                executed, reducing memory overhead and
                allowing compilation of large modules. This
                option has no effect on MAKER.

-W              Sets MAKE defaults.

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