aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Sijmen J. Mulder <ik@sjmulder.nl>2018-12-17 09:50:29 +0100
committerGravatar Sijmen J. Mulder <ik@sjmulder.nl>2018-12-17 10:22:36 +0100
commit6658af3f66232211fe4720cf611bf4cf10ce415e (patch)
tree6e671b419c2c6ae954c1c22c73ee959d49cfb101 /Makefile
parent4005a1fa4679adcfcb4d51fa89aca0ab1db3cd26 (diff)
downloadnnn-6658af3f66232211fe4720cf611bf4cf10ce415e.tar.gz
Revert "Remove CPPFLAGS since C++ is not used"
Mistook CPPFLAGS ("C preprocessor flags") for CXXFLAGS ("C++ flags"). This reverts commit 0956b82d33fb2956da837e6a06a2a6f7216d47c0.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0235c02..e5b645e 100644
--- a/Makefile
+++ b/Makefile
@@ -33,10 +33,10 @@ all: $(BIN)
$(SRC): 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