mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Honour CPPFLAGS
Preprocessor flags are passed in CPPFLAGS. Debian uses it to pass hardening options (-D_FORTIFY_SOURCE) to the compiler.
This commit is contained in:
parent
f70698f6c7
commit
eccc69beeb
4
Makefile
4
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
|
||||
|
|
Loading…
Reference in a new issue