aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-12-05 16:29:26 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2014-12-05 16:29:26 +0100
commitb43eba280f73aca79c79effcc36cb5f6c905b5e0 (patch)
treeacb94c7e6d7dce6a905baf895c67e314109148de /Makefile
parent5ccfe5a04747de790628100f10a3b1ff7eac4a08 (diff)
downloadsds-b43eba280f73aca79c79effcc36cb5f6c905b5e0.tar.xz
Move source files to src dir, use VPATH in Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 045fa88..bcec56c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,9 @@
+VPATH = .src/
+
all: sds-test
sds-test: sds.c sds.h testhelp.h
- $(CC) -o sds-test sds.c -Wall -std=c99 -pedantic -O2 -DSDS_TEST_MAIN
+ $(CC) -o sds-test $< -Wall -std=c99 -pedantic -O2 -DSDS_TEST_MAIN
@echo ">>> Type ./sds-test to run the sds.c unit tests."
clean: