Dear all,
I have created some C++ classes for a plugin of a simulator.
Some lines of these classes are useful for making up a log file, in order to testing the good working of the plugin.
When I use this plugin, I would disable the making up of the log file.
I thought to use the following macro:
Code:
#ifdef DEBUG
// code for making up the log file
#endif
In this way, if I compile the classes in release mode, the code within
and
statements is not compiled.
In order to compiling the plugin, I use a
Makefile.gen, and I generate the
Makefile by the command
Code:
make -f Makefile.gen
.
Within the Makefile I found the following line:
Code:
CFLAGS=-O2 -DNDEBUG=1 -DWITH_PARSIM -DWITH_NETBUILDER
Does it exist an option for make command in order to create the following line in the Makefile?
Code:
CFLAGS=-O2 -DDEBUG -DWITH_PARSIM -DWITH_NETBUILDER
Thanks a lot!