From: Reiner Herrmann Date: Fri, 19 Oct 2018 16:24:09 +0000 (+0200) Subject: Honour CPPFLAGS X-Git-Tag: v2.1~90^2 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=eccc69beebe00b0bf094a28b3746c106f06fe36b;p=nnn.git Honour CPPFLAGS Preprocessor flags are passed in CPPFLAGS. Debian uses it to pass hardening options (-D_FORTIFY_SOURCE) to the compiler. --- diff --git a/Makefile b/Makefile index 30b76aca..64c6e204 100644 --- a/Makefile +++ b/Makefile @@ -26,10 +26,10 @@ all: $(BIN) $(PLAYER) $(SRC): nnn.h $(BIN): $(SRC) - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS) + $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS) debug: $(SRC) - $(CC) -DDEBUGMODE -g $(CFLAGS) $(LDFLAGS) -o $(BIN) $^ $(LDLIBS) + $(CC) -DDEBUGMODE -g $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $(BIN) $^ $(LDLIBS) install: all $(INSTALL) -m 0755 -d $(DESTDIR)$(PREFIX)/bin