aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorHiltjo Posthuma <[email protected]>2016-03-20 16:23:33 +0100
committerHiltjo Posthuma <[email protected]>2016-03-20 16:23:33 +0100
commitcd6a519813d97f6c28ad80d6bc08ad58e14ee401 (patch)
tree60dc79d4fd156988ea6d995e1b29a98b76f5c26d /Makefile
parent761417d254f730739b1572f3a11185e01f28821b (diff)
downloadstagit-cd6a519813d97f6c28ad80d6bc08ad58e14ee401.tar.gz
stagit-cd6a519813d97f6c28ad80d6bc08ad58e14ee401.zip
Makefile: separate CPPFLAGS, compile optimized build by default
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
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}