aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDanny van Kooten <dannyvankooten@users.noreply.github.com>2020-03-15 21:30:17 +0100
committerDanny van Kooten <dannyvankooten@users.noreply.github.com>2020-03-15 21:30:17 +0100
commit9cd1d0d6bea1336f57b6411d1c09abe892156623 (patch)
tree202950ac72425b4db0b9f24cf556776d9764d080 /Makefile
parent8fcc38ce404f16b2809a73de7bdf778bb84becb4 (diff)
downloadunja-9cd1d0d6bea1336f57b6411d1c09abe892156623.tar.gz
unja-9cd1d0d6bea1336f57b6411d1c09abe892156623.zip
add readme
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 $@