From cd6a519813d97f6c28ad80d6bc08ad58e14ee401 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sun, 20 Mar 2016 16:23:33 +0100 Subject: Makefile: separate CPPFLAGS, compile optimized build by default --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 23308fe..d6d4c5d 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ include config.mk NAME = stagit -VERSION = 0.3 +VERSION = 0.3.1 SRC = \ stagit.c\ stagit-index.c @@ -30,8 +30,11 @@ OBJ = ${SRC:.c=.o} ${COMPATOBJ} all: $(BIN) +.o: + ${CC} ${LDFLAGS} -o $@ ${LIBS} + .c.o: - ${CC} -c ${CFLAGS} $< + ${CC} -c ${CFLAGS} ${CPPFLAGS} -o $@ -c $< dist: rm -rf stagit-${VERSION} -- cgit v1.2.3