From cd70ca266bb212d6a32d2dd808c7708bb7be6f1f Mon Sep 17 00:00:00 2001 From: Danny van Kooten Date: Thu, 12 Mar 2020 09:30:29 +0100 Subject: move files to src/ subdir --- Makefile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0551369..5425eb2 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3