From b43eba280f73aca79c79effcc36cb5f6c905b5e0 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Fri, 5 Dec 2014 16:29:26 +0100 Subject: Move source files to src dir, use VPATH in Makefile --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') 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: -- cgit v1.2.3-54-g00ecf