binaries = unit_test jhash_test config_test metrics_test
include = -I ../src/xapp -I ../src/alarm -I ../src/messaging -I ../src/config -I ../ext/jsmn -I ../src/json -I ../src/metrics
-ld_path = LD_LIBRARY_PATH=../src/.build
tests:: $(binaries)
# build a special jwrapper object with coverage settings
jwrapper_test.o:: ../src/json/jwrapper.c ../src/json/jwrapper.h
- cc $(coverage_opts) -g -I ../src/json -I ../ext/jsmn ../src/json/jwrapper.c -c -o jwrapper_test.o
+ cc $(coverage_opts) -DDEBUG=0 -g -I ../src/json -I ../ext/jsmn ../src/json/jwrapper.c -c -o jwrapper_test.o
jhash_test:: jwrapper_test.o jhash_test.cpp
# do NOT link the xapp lib; we include all modules in the test programme