|
|
|
@ -3,8 +3,9 @@ BREWROOT = /usr/local
@@ -3,8 +3,9 @@ BREWROOT = /usr/local
|
|
|
|
|
BOOSTROOT = ${BREWROOT}/opt/boost |
|
|
|
|
SSLROOT = ${BREWROOT}/opt/libressl |
|
|
|
|
UPNPROOT = ${BREWROOT}/opt/miniupnpc |
|
|
|
|
CXXFLAGS = -g -Wall -std=c++11 -DMAC_OSX -Wno-overloaded-virtual |
|
|
|
|
CXXFLAGS = ${CXX_DEBUG} -Wall -std=c++11 -DMAC_OSX -Wno-overloaded-virtual |
|
|
|
|
INCFLAGS = -I${SSLROOT}/include -I${BOOSTROOT}/include |
|
|
|
|
LDFLAGS = ${LD_DEBUG} |
|
|
|
|
|
|
|
|
|
ifndef TRAVIS |
|
|
|
|
CXX = clang++ |
|
|
|
@ -13,7 +14,7 @@ endif
@@ -13,7 +14,7 @@ endif
|
|
|
|
|
ifeq ($(USE_STATIC),yes) |
|
|
|
|
LDLIBS = -lz ${SSLROOT}/lib/libcrypto.a ${SSLROOT}/lib/libssl.a ${BOOSTROOT}/lib/libboost_system.a ${BOOSTROOT}/lib/libboost_date_time.a ${BOOSTROOT}/lib/libboost_filesystem.a ${BOOSTROOT}/lib/libboost_program_options.a -lpthread |
|
|
|
|
else |
|
|
|
|
LDFLAGS = -L${SSLROOT}/lib -L${BOOSTROOT}/lib |
|
|
|
|
LDFLAGS += -L${SSLROOT}/lib -L${BOOSTROOT}/lib |
|
|
|
|
LDLIBS = -lz -lcrypto -lssl -lboost_system -lboost_date_time -lboost_filesystem -lboost_program_options -lpthread |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
@ -34,7 +35,7 @@ endif
@@ -34,7 +35,7 @@ endif
|
|
|
|
|
# Seems like all recent Mac's have AES-NI, after firmware upgrade 2.2
|
|
|
|
|
# Found no good way to detect it from command line. TODO: Might be some osx sysinfo magic
|
|
|
|
|
ifeq ($(USE_AESNI),yes) |
|
|
|
|
CXXFLAGS += -maes |
|
|
|
|
CXXFLAGS += -maes -DAESNI |
|
|
|
|
endif |
|
|
|
|
ifeq ($(USE_AVX),1) |
|
|
|
|
CXXFLAGS += -mavx |
|
|
|
|