sean_in_raleigh
12/9/2008 7:14:00 PM
On Dec 9, 11:37 am, moongeegee <moongee...@gmail.com> wrote:
> There is a define in *.h file, and I wanted to undef it in Makefile.
> Please shed a light.
> tks
You probably can't do this, since any macros you set
or unset on the command-line will be redefined
in the source file.
Your best bet is probably something like:
#ifdef SOME_FLAG
#undef SOME_MACRO
#endif
and then in your makefile say:
cc -DSOME_FLAG ...
or whatever the syntax is for your compiler.
Sean