Sfoglia il codice sorgente

Honour CPPFLAGS

Preprocessor flags are passed in CPPFLAGS.
Debian uses it to pass hardening options (-D_FORTIFY_SOURCE)
to the compiler.
master
Reiner Herrmann 7 anni fa
parent
commit
eccc69beeb
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      Makefile

+ 2
- 2
Makefile Vedi File

@@ -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…
Annulla
Salva