diff options
author | Danny van Kooten <dannyvankooten@users.noreply.github.com> | 2020-03-12 09:30:29 +0100 |
---|---|---|
committer | Danny van Kooten <dannyvankooten@users.noreply.github.com> | 2020-03-12 09:30:29 +0100 |
commit | cd70ca266bb212d6a32d2dd808c7708bb7be6f1f (patch) | |
tree | 5cfe0289c5a964520dee96691561f8844023ad50 /Makefile | |
parent | edf331cd2573726d8053ce76e3497203a12d99b9 (diff) | |
download | unja-cd70ca266bb212d6a32d2dd808c7708bb7be6f1f.tar.gz unja-cd70ca266bb212d6a32d2dd808c7708bb7be6f1f.zip |
move files to src/ subdir
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 |