Don't define DEBUG symbol (already defined by configure script)
Don't use CFLAGS variable to avoid overwriting its contents defined in
Makefile.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
./configure sa_lib_dir=. sar_dir=. conf_dir=. conf_file=sysstat.sysconfig sa_dir=tests --enable-debuginfo
elif [ "$1" = "comp" ]
then
- make CFLAGS="-D DEBUG -D TEST"
+ make TFLAGS="-DTEST"
else
make distclean
- ./configure sa_lib_dir=. sar_dir=. conf_dir=. conf_file=sysstat.sysconfig sa_dir=tests --enable-debuginfo && make CFLAGS="-D DEBUG -D TEST" && make simtest CFLAGS="-D DEBUG -D TEST"
+ ./configure sa_lib_dir=. sar_dir=. conf_dir=. conf_file=sysstat.sysconfig sa_dir=tests --enable-debuginfo && make TFLAGS="-DTEST" && make simtest TFLAGS="-DTEST"
fi