aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/test/Makefile b/test/Makefile
index 398ebc1..209a7cd 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -3,11 +3,20 @@
check: build
./checker
-build: checker.cc ../lib/libcommon.a
- g++ -o checker -g -O2 -I ../lib/include -Wall -Wextra $^
+build: checker.cc test_helper.h ../lib/libcommon.a
+ g++ -o checker \
+ -g -O2 \
+ -I ../lib/include \
+ -Wall -Wextra \
+ -fsanitize=address \
+ -fsanitize=pointer-compare \
+ -fsanitize=pointer-subtract \
+ -fsanitize=undefined \
+ $(filter-out %.h, $^)
../lib/libcommon.a:
make -C ../lib
clean:
rm -f checker
+ make -C ../lib clean