aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5425eb2..a362f52 100644
--- a/Makefile
+++ b/Makefile
@@ -6,14 +6,17 @@ all: bin/hyde
bin:; mkdir -p bin/
-bin/hyde: src/hyde.c src/hashmap.c vendor/mpc.c | bin
+bin/hyde: src/hyde.c src/hashmap.c src/template.c vendor/mpc.c | bin
$(CC) $(CFLAGS) $^ -o $@
bin/test_hashmap: src/hashmap.c tests/test_hashmap.c | bin
$(CC) $(TESTFLAGS) $^ -o $@
+bin/test_template: src/template.c src/hashmap.c tests/test_template.c vendor/mpc.c | bin
+ $(CC) $(TESTFLAGS) $^ -o $@
+
.PHONY: check
-check: bin/test_hashmap
+check: bin/test_hashmap bin/test_template
for test in $^; do $$test || exit 1; done
.PHONY: clean