aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-12-05 21:47:03 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2014-12-05 21:47:03 +0100
commit3bb51609a53802c43751dcdf56b694ffe0bc9c5f (patch)
tree498dc751bdd755a528e6109886f90605045b4ec3 /Makefile
parentb43eba280f73aca79c79effcc36cb5f6c905b5e0 (diff)
downloadsds-3bb51609a53802c43751dcdf56b694ffe0bc9c5f.tar.xz
Makefile: Make It Nicer™
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index bcec56c..cff5cac 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,12 @@
-VPATH = .src/
+CFLAGS = -Weverything -std=c11
+CC = clang
+SOURCES = src/test.c src/sds.c
+HEADERS = src/test.h src/sds.c
all: sds-test
-sds-test: sds.c sds.h testhelp.h
- $(CC) -o sds-test $< -Wall -std=c99 -pedantic -O2 -DSDS_TEST_MAIN
+sds-test: $(SOURCES) $(HEADERS)
+ $(CC) $(CFLAGS) -o $@ $(SOURCES)
@echo ">>> Type ./sds-test to run the sds.c unit tests."
clean: