diff --git a/Makefile b/Makefile index e9ca074dd..7fb098aa6 100644 --- a/Makefile +++ b/Makefile @@ -77,11 +77,11 @@ XFLAGS = -Wfatal-errors -g -DVDEBUG=1 -DCHECK_LEAKS=0 -DUSE_SYSTEM_ALLOCATION=1 #XFLAGS = -O6 -DVDEBUG=0 -DUSE_SYSTEM_ALLOCATION=1 -DEFENCE=1 -g -lefence #Electric Fence #XFLAGS = -O6 -DVDEBUG=0 -DUSE_SYSTEM_ALLOCATION=1 -g -INCLUDES= -I. +INCLUDES= -I. -I/opt/local/include Z3FLAG= -DVZ3=0 Z3LIB= ifeq (,$(shell echo $(MAKECMDGOALS) | sed 's/.*z3.*//g')) -INCLUDES= -I. -Iz3/src/api -Iz3/src/api/c++ +INCLUDES= -I. -I/opt/local/include -Iz3/src/api -Iz3/src/api/c++ # ifeq (,$(shell echo $(MAKECMDGOALS) | sed 's/.*static.*//g')) # Z3LIB= -Lz3/build -lz3 -lgomp -pthread -Wl,--whole-archive -lrt -lpthread -Wl,--no-whole-archive -ldl # else @@ -541,7 +541,7 @@ VSAT_OBJ := $(addprefix $(CONF_ID)/, $(VSAT_DEP)) TKV_OBJ := $(addprefix $(CONF_ID)/, $(TKV_DEP)) define COMPILE_CMD -$(CXX) $(CXXFLAGS) $(filter -l%, $+) $(filter %.o, $^) -o $@_$(BRANCH)_$(COM_CNT) $(Z3LIB) -lgmp -lgmpxx +$(CXX) $(CXXFLAGS) $(filter -l%, $+) $(filter %.o, $^) -o $@_$(BRANCH)_$(COM_CNT) $(Z3LIB) -L/opt/local/lib -lgmp -lgmpxx @#$(CXX) -static $(CXXFLAGS) $(Z3LIB) $(filter %.o, $^) -o $@ @#strip $@ endef