Categories
status

Defining Macros on the Command Line Macros can…

Defining Macros on the Command Line

Macros can be defined on the Make command line. For example:

make CFLAGS=–ms
would start up Make and define the macro CFLAGS with the value “–ms”. Macros defined on the command line take precedence over macros of the same name defined in the makefile.

If a command-line macro contains spaces, it must be enclosed in double quotes as in:

make “CFLAGS=-ms -z -p”

http://www.opussoftware.com/tutorial/TutMakefile.htm

By microbe

Like to cook for microorganisms and human. Play football, tennis, and baseball.

Leave a Reply

Your email address will not be published. Required fields are marked *