From 4a20882a8d84a66d8228b9eba3a55024a612000f Mon Sep 17 00:00:00 2001 From: TSUYUSATO Kitsune Date: Sat, 25 Jul 2015 10:20:33 +0900 Subject: [PATCH] CPPFLAGS should use to specify flags for C pre-processor --- src/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Makefile b/src/Makefile index 4aaa55e6..39792d3a 100644 --- a/src/Makefile +++ b/src/Makefile @@ -19,13 +19,13 @@ else ifneq (,$(findstring CYGWIN,$(os))) LIBS += -lncursesw -lboost_regex -ldbghelp else LIBS += -lncursesw -lboost_regex - CXXFLAGS += -I/usr/include/ncursesw + CPPFLAGS += -I/usr/include/ncursesw LDFLAGS += -rdynamic endif debug ?= yes ifeq ($(debug),yes) - CXXFLAGS += -DKAK_DEBUG + CPPFLAGS += -DKAK_DEBUG else ifeq ($(debug),no) CXXFLAGS += -O3 @@ -40,7 +40,7 @@ kak : $(objects) -include $(deps) .%.o: %.cc - $(CXX) $(CXXFLAGS) -MD -MP -MF $(addprefix ., $(<:.cc=.d)) -c -o $@ $< + $(CXX) $(CPPFLAGS) $(CXXFLAGS) -MD -MP -MF $(addprefix ., $(<:.cc=.d)) -c -o $@ $< test: cd ../test && ./run