aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 6 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index b5fca94..79fd0e6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,13 @@
-override CFLAGS+= -g -Wall -std=c11 -I.
-LIBS=
+CFLAGS= -g -Wall -std=c99 -I.
+LDLIBS=
TESTFLAGS= $(CFLAGS) -Isrc/
+ifdef debug
+ CFLAGS+=-DDEBUG
+endif
-all: bin/hyde
-
+all: check
bin:; mkdir -p bin/
-bin/hyde: src/hyde.c src/hashmap.c src/template.c src/vector.c vendor/mpc.c | bin
- $(CC) $(CFLAGS) $^ -o $@
-
bin/test_hashmap: src/hashmap.c tests/test_hashmap.c | bin
$(CC) $(TESTFLAGS) $^ -o $@