On Thursday, 16 May 2002, Salman Khilji wrote:
> On Linux, g++ I tried to do this:
>
> CCFLAGS -= -W
GNU Make is not C or C++. There is no -=. If you want to remove this flag
permanently for all compilation, set the flag in platform_macros.GNU like
this:
$ACE_ROOT/include/makeinclude/platform_macros.GNU
-------------------------------------------------
debug = 0
inline = 1
optimize = 1
include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
CFLAGS = (whatever you want it to be)
I think that CFLAGS contain the warning setting. Or if you want to change
the value for a particular directory, change the Makefile in the directory
like this:
CFLAGS := $(filter-out -Wall,$(CFLAGS))
CFLAGS := $(filter-out -W,$(CFLAGS))
Note you must do this after all the includes in the Makefile, right before
the beginning of the rules. Ofcourse you should read the manual....
-kitty.
--
Krishnakumar B <kitty at cs dot wustl dot edu>
Distributed Object Computing Laboratory, Washington University in St.Louis