aboutsummaryrefslogtreecommitdiffstats
path: root/config.mk
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-12-07 17:16:12 +0100
committerMattias Andrée <maandree@kth.se>2017-12-07 17:52:43 +0100
commit881f7b4aa699291ae22db304dc9e259cb8331b58 (patch)
treec690587b053352b785620e9f761daf170f5c8b47 /config.mk
parentFix makefile (diff)
downloadblind-881f7b4aa699291ae22db304dc9e259cb8331b58.tar.gz
blind-881f7b4aa699291ae22db304dc9e259cb8331b58.tar.bz2
blind-881f7b4aa699291ae22db304dc9e259cb8331b58.tar.xz
Improve makefile
Almost fully (to the greatest extent possible) portable. Do not rebuild everything everytime a .c file is added. However, there is some minor oddities to allow use of -j. Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.mk b/config.mk
index a046a4d..da71ae9 100644
--- a/config.mk
+++ b/config.mk
@@ -15,7 +15,7 @@ LN = ln -s
# You may want to remove -DHAVE_PRCTL, -DHAVE_EPOLL, -DHAVE_TEE,
# and -DHAVE_SENDFILE from CPPFLAGS if you are not using Linux.
-CFLAGS = -std=c11 -Wall -pedantic -O2
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE \
-D_FILE_OFFSET_BITS=64 -DHAVE_PRCTL -DHAVE_EPOLL -DHAVE_TEE -DHAVE_SENDFILE
+CFLAGS = -std=c11 -Wall -pedantic -O2 $(CPPFLAGS)
LDFLAGS = -lm -s