From 881f7b4aa699291ae22db304dc9e259cb8331b58 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 7 Dec 2017 17:16:12 +0100 Subject: Improve makefile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config.mk') 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 -- cgit v1.2.3-70-g09d2