diff options
author | Hiltjo Posthuma <[email protected]> | 2016-03-20 16:23:33 +0100 |
---|---|---|
committer | Hiltjo Posthuma <[email protected]> | 2016-03-20 16:23:33 +0100 |
commit | cd6a519813d97f6c28ad80d6bc08ad58e14ee401 (patch) | |
tree | 60dc79d4fd156988ea6d995e1b29a98b76f5c26d /Makefile | |
parent | 761417d254f730739b1572f3a11185e01f28821b (diff) | |
download | stagit-cd6a519813d97f6c28ad80d6bc08ad58e14ee401.tar.gz stagit-cd6a519813d97f6c28ad80d6bc08ad58e14ee401.zip |
Makefile: separate CPPFLAGS, compile optimized build by default
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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} |