CPPFLAGS should use to specify flags for C pre-processor
This commit is contained in:
parent
71081f3823
commit
4a20882a8d
|
@ -19,13 +19,13 @@ else ifneq (,$(findstring CYGWIN,$(os)))
|
||||||
LIBS += -lncursesw -lboost_regex -ldbghelp
|
LIBS += -lncursesw -lboost_regex -ldbghelp
|
||||||
else
|
else
|
||||||
LIBS += -lncursesw -lboost_regex
|
LIBS += -lncursesw -lboost_regex
|
||||||
CXXFLAGS += -I/usr/include/ncursesw
|
CPPFLAGS += -I/usr/include/ncursesw
|
||||||
LDFLAGS += -rdynamic
|
LDFLAGS += -rdynamic
|
||||||
endif
|
endif
|
||||||
|
|
||||||
debug ?= yes
|
debug ?= yes
|
||||||
ifeq ($(debug),yes)
|
ifeq ($(debug),yes)
|
||||||
CXXFLAGS += -DKAK_DEBUG
|
CPPFLAGS += -DKAK_DEBUG
|
||||||
else
|
else
|
||||||
ifeq ($(debug),no)
|
ifeq ($(debug),no)
|
||||||
CXXFLAGS += -O3
|
CXXFLAGS += -O3
|
||||||
|
@ -40,7 +40,7 @@ kak : $(objects)
|
||||||
-include $(deps)
|
-include $(deps)
|
||||||
|
|
||||||
.%.o: %.cc
|
.%.o: %.cc
|
||||||
$(CXX) $(CXXFLAGS) -MD -MP -MF $(addprefix ., $(<:.cc=.d)) -c -o $@ $<
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -MD -MP -MF $(addprefix ., $(<:.cc=.d)) -c -o $@ $<
|
||||||
|
|
||||||
test:
|
test:
|
||||||
cd ../test && ./run
|
cd ../test && ./run
|
||||||
|
|
Loading…
Reference in New Issue
Block a user