1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-29 10:02:57 +03:00

CPPFLAGS should use to specify flags for C pre-processor

This commit is contained in:
TSUYUSATO Kitsune 2015-07-25 10:20:33 +09:00
parent 71081f3823
commit 4a20882a8d

View File

@ -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