diff options
author | Reiner Herrmann <reiner@reiner-h.de> | 2018-10-19 18:24:09 +0200 |
---|---|---|
committer | Reiner Herrmann <reiner@reiner-h.de> | 2018-10-19 18:24:09 +0200 |
commit | eccc69beebe00b0bf094a28b3746c106f06fe36b (patch) | |
tree | f63014ede76b2580d36b7f2a9defc44af8a14d78 | |
parent | f70698f6c71824a1db20e749b91b53a7716155c8 (diff) | |
download | nnn-eccc69beebe00b0bf094a28b3746c106f06fe36b.tar.gz |
Honour CPPFLAGS
Preprocessor flags are passed in CPPFLAGS.
Debian uses it to pass hardening options (-D_FORTIFY_SOURCE)
to the compiler.
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |