aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny van Kooten <dannyvankooten@users.noreply.github.com>2020-03-12 09:30:29 +0100
committerDanny van Kooten <dannyvankooten@users.noreply.github.com>2020-03-12 09:30:29 +0100
commitcd70ca266bb212d6a32d2dd808c7708bb7be6f1f (patch)
tree5cfe0289c5a964520dee96691561f8844023ad50
parentedf331cd2573726d8053ce76e3497203a12d99b9 (diff)
downloadunja-cd70ca266bb212d6a32d2dd808c7708bb7be6f1f.tar.gz
unja-cd70ca266bb212d6a32d2dd808c7708bb7be6f1f.zip
move files to src/ subdir
-rw-r--r--Makefile17
-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
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
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
diff --git a/hyde.c b/src/hyde.c
index 332ddab..332ddab 100644
--- a/hyde.c
+++ b/src/hyde.c