diff --git a/src/makefile b/src/makefile index 2f8c292..eab2d30 100644 --- a/src/makefile +++ b/src/makefile @@ -34,10 +34,10 @@ sources := $(wildcard *.cpp) objects := $(addprefix $(OBJDIR)/,$(sources:.cpp=.o)) depends := $(addprefix $(OBJDIR)/,$(sources:.cpp=.d)) -CXXFLAGS := $$(wx-config --cxxflags) -std=c++14 $(CXXFLAGS) $(addprefix -I, $(IDIRS)) -CPPFLAGS := $$(wx-config --cppflags) $(CPPFLAGS) +CXXFLAGS := $(shell wx-config --cxxflags) -std=c++14 $(CXXFLAGS) $(addprefix -I, $(IDIRS)) +CPPFLAGS := $(shell wx-config --cppflags) $(CPPFLAGS) LDFLAGS += $(addprefix -L, $(LDDIRS)) -LDLIBS += $$(wx-config --libs) +LDLIBS += $(shell wx-config --libs) ifeq ($(UNAME), Linux) LDLIBS += -lboost_thread -lboost_regex -lboost_filesystem -lboost_system