diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2014-12-05 21:47:03 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2014-12-05 21:47:03 +0100 |
commit | 3bb51609a53802c43751dcdf56b694ffe0bc9c5f (patch) | |
tree | 498dc751bdd755a528e6109886f90605045b4ec3 /Makefile | |
parent | b43eba280f73aca79c79effcc36cb5f6c905b5e0 (diff) | |
download | sds-3bb51609a53802c43751dcdf56b694ffe0bc9c5f.tar.xz |
Makefile: Make It Nicer™
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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: |