diff --git a/Makefile b/Makefile index 93c4ce8..37b5b0d 100644 --- a/Makefile +++ b/Makefile @@ -18,8 +18,9 @@ WIDGET_LIB = build/widget.a WX_RES = $(shell wx-config --rescomp) WX_CXXFLAGS = $(shell wx-config --cxxflags) -DEV_CXXFLAGS = -g -Wall -Wextra -DDEBUG -CXXFLAGS = -Os -DNDEBUG +INC_FLAGS = -Iinclude -I. -I/usr/local/include +DEV_CXXFLAGS = -g -Wall -Wextra -DDEBUG $(INC_FLAGS) +CXXFLAGS = -Os -DNDEBUG $(INC_FLAGS) TEST_SRC = $(wildcard tests/*.cpp) TESTS = $(patsubst %.cpp,%,$(TEST_SRC)) @@ -53,8 +54,6 @@ ifeq ($(OS),Linux) CXX += -std=c++11 -Wno-unknown-pragmas -Wno-missing-field-initializers endif -CXX += -Iinclude -I. -I/usr/local/include - ifdef $(DEV) all: CXXFLAGS = $(DEV_CXXFLAGS) endif