summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 82a4adc..01d46bd 100644
--- a/Makefile
+++ b/Makefile
@@ -17,8 +17,9 @@ lib: $(BUILD)
rm $(BUILD)/libengine.a
test: $(BUILD)
- $(CC) tests/*.c src/include/engine/*.c unity/unity.c -o $(BUILD)/test.out
- exec $(BUILD)/test.out
+ $(CC) -I. tests/*.c src/include/engine/*.c unity/unity.c -o $(BUILD)/test.out
+ valgrind --tool=memcheck --log-file=mem_dbg $(BUILD)/test.out
+ valgrind --tool=drd -s --log-file=thrd_dbg $(BUILD)/test.out
rm -rf $(BUILD)
$(BUILD):