diff options
-rw-r--r-- | Makefile | 17 | ||||
-rw-r--r-- | src/hashmap.c (renamed from hashmap.c) | 0 | ||||
-rw-r--r-- | src/hashmap.h (renamed from hashmap.h) | 0 | ||||
-rw-r--r-- | src/hyde.c (renamed from hyde.c) | 0 |
4 files changed, 10 insertions, 7 deletions
@@ -1,17 +1,20 @@ -CFLAGS= -g -Wall -std=c11 -Ivendor/ -I. +CFLAGS= -g -Wall -std=c11 -I. LIBS= +TESTFLAGS= $(CFLAGS) -Isrc/ all: bin/hyde -bin: - mkdir -p bin/ +bin:; mkdir -p bin/ -bin/hyde: hyde.c hashmap.c vendor/mpc.c | bin +bin/hyde: src/hyde.c src/hashmap.c vendor/mpc.c | bin $(CC) $(CFLAGS) $^ -o $@ -bin/test_hashmap: hashmap.c tests/test_hashmap.c | bin - $(CC) $(CFLAGS) $^ -o $@ +bin/test_hashmap: src/hashmap.c tests/test_hashmap.c | bin + $(CC) $(TESTFLAGS) $^ -o $@ .PHONY: check check: bin/test_hashmap - for test in $^; do $$test || exit 1; done
\ No newline at end of file + for test in $^; do $$test || exit 1; done + +.PHONY: clean +clean:; rm -r bin/
\ No newline at end of file diff --git a/hashmap.c b/src/hashmap.c index 3d9edd0..3d9edd0 100644 --- a/hashmap.c +++ b/src/hashmap.c diff --git a/hashmap.h b/src/hashmap.h index a37d3d6..a37d3d6 100644 --- a/hashmap.h +++ b/src/hashmap.h |