29 May 2012

Making a definition at make command

For emergency use, when an extra define is needed outside source code / Makefile.
When running make command,
make CPPFLAG=-DMYFLAG
which is equal to,
#define MYFLAG
in cpp file.

Warning: this will replace the CPPFLAG defined in the Makefile.

No comments:

Post a Comment