diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 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 |