|
|
@ -5,14 +5,11 @@ WINDRES = windres |
|
|
|
|
|
|
|
|
|
|
|
CXXFLAGS := $(CXX_DEBUG) -fPIC -msse |
|
|
|
CXXFLAGS := $(CXX_DEBUG) -fPIC -msse |
|
|
|
INCFLAGS := -I$(DAEMON_SRC_DIR) -IWin32 |
|
|
|
INCFLAGS := -I$(DAEMON_SRC_DIR) -IWin32 |
|
|
|
LDFLAGS := ${LD_DEBUG} -static |
|
|
|
LDFLAGS := ${LD_DEBUG} -static -fPIC -msse |
|
|
|
|
|
|
|
|
|
|
|
NEEDED_CXXFLAGS += -std=c++17 |
|
|
|
NEEDED_CXXFLAGS += -std=c++17 |
|
|
|
DEFINES += -DWIN32_LEAN_AND_MEAN |
|
|
|
DEFINES += -DWIN32_LEAN_AND_MEAN |
|
|
|
|
|
|
|
|
|
|
|
# Boost libraries suffix
|
|
|
|
|
|
|
|
BOOST_SUFFIX = -mt |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# UPNP Support
|
|
|
|
# UPNP Support
|
|
|
|
ifeq ($(USE_UPNP),yes) |
|
|
|
ifeq ($(USE_UPNP),yes) |
|
|
|
DEFINES += -DUSE_UPNP -DMINIUPNP_STATICLIB |
|
|
|
DEFINES += -DUSE_UPNP -DMINIUPNP_STATICLIB |
|
|
@ -20,20 +17,20 @@ ifeq ($(USE_UPNP),yes) |
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
LDLIBS += \
|
|
|
|
LDLIBS += \
|
|
|
|
-lboost_system$(BOOST_SUFFIX) \
|
|
|
|
$(MINGW_PREFIX)/lib/libboost_system-mt.a \
|
|
|
|
-lboost_date_time$(BOOST_SUFFIX) \
|
|
|
|
$(MINGW_PREFIX)/lib/libboost_date_time-mt.a \
|
|
|
|
-lboost_filesystem$(BOOST_SUFFIX) \
|
|
|
|
$(MINGW_PREFIX)/lib/libboost_filesystem-mt.a \
|
|
|
|
-lboost_program_options$(BOOST_SUFFIX) \
|
|
|
|
$(MINGW_PREFIX)/lib/libboost_program_options-mt.a \
|
|
|
|
-lssl \
|
|
|
|
$(MINGW_PREFIX)/lib/libssl.a \
|
|
|
|
-lcrypto \
|
|
|
|
$(MINGW_PREFIX)/lib/libcrypto.a \
|
|
|
|
-lz \
|
|
|
|
$(MINGW_PREFIX)/lib/libz.a \
|
|
|
|
-lwsock32 \
|
|
|
|
-lwsock32 \
|
|
|
|
-lws2_32 \
|
|
|
|
-lws2_32 \
|
|
|
|
-lgdi32 \
|
|
|
|
|
|
|
|
-liphlpapi \
|
|
|
|
-liphlpapi \
|
|
|
|
|
|
|
|
-lcrypt32 \
|
|
|
|
|
|
|
|
-lgdi32 \
|
|
|
|
-lole32 \
|
|
|
|
-lole32 \
|
|
|
|
-luuid \
|
|
|
|
-luuid |
|
|
|
-lpthread |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(USE_WIN32_APP), yes) |
|
|
|
ifeq ($(USE_WIN32_APP), yes) |
|
|
|
DEFINES += -DWIN32_APP |
|
|
|
DEFINES += -DWIN32_APP |
|
|
@ -48,6 +45,7 @@ endif |
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(USE_AESNI),yes) |
|
|
|
ifeq ($(USE_AESNI),yes) |
|
|
|
NEEDED_CXXFLAGS += -maes |
|
|
|
NEEDED_CXXFLAGS += -maes |
|
|
|
|
|
|
|
LDFLAGS += -maes |
|
|
|
DEFINES += -D__AES__ |
|
|
|
DEFINES += -D__AES__ |
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|