From 3bb51609a53802c43751dcdf56b694ffe0bc9c5f Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Fri, 5 Dec 2014 21:47:03 +0100 Subject: Makefile: Make It Nicer™ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 9 ++++++--- 1 file 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: -- cgit v1.2.3-70-g09d2