mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
update mingw makefile
This commit is contained in:
parent
f7a6d57855
commit
1fa34be52a
2
Makefile
2
Makefile
@ -48,7 +48,7 @@ else ifneq (, $(findstring mingw, $(SYS))$(findstring cygwin, $(SYS)))
|
||||
DAEMON_SRC += Win32/DaemonWin32.cpp Win32/Win32Service.cpp Win32/Win32App.cpp
|
||||
include Makefile.mingw
|
||||
else # not supported
|
||||
$(error Not supported platform)
|
||||
$(error Not supported platform)
|
||||
endif
|
||||
|
||||
ifeq ($(USE_MESHNET),yes)
|
||||
|
@ -3,10 +3,21 @@ CXX = g++
|
||||
WINDRES = windres
|
||||
CXXFLAGS := ${CXX_DEBUG} -D_MT -DWIN32 -D_WINDOWS -DWIN32_LEAN_AND_MEAN
|
||||
NEEDED_CXXFLAGS = -std=c++11
|
||||
BOOST_SUFFIX = -mt
|
||||
INCFLAGS = -Idaemon -I.
|
||||
LDFLAGS := ${LD_DEBUG} -Wl,-Bstatic -static-libgcc -static-libstdc++
|
||||
|
||||
# Boost libraries suffix
|
||||
BOOST_SUFFIX = -mt
|
||||
|
||||
# Since Boost 1.69.0, libraries in mingw use suffix with architecture in x32/x64 view
|
||||
ifneq (, $(findstring x86_64, $(SYS)))
|
||||
BOOST_ARCHSUFFIX = ${BOOST_SUFFIX}-x64
|
||||
else ifneq (, $(findstring i686, $(SYS)))
|
||||
BOOST_ARCHSUFFIX = ${BOOST_SUFFIX}-x32
|
||||
else
|
||||
$(error Not supported platform)
|
||||
endif
|
||||
|
||||
# UPNP Support
|
||||
ifeq ($(USE_UPNP),yes)
|
||||
CXXFLAGS += -DUSE_UPNP -DMINIUPNP_STATICLIB
|
||||
@ -14,10 +25,10 @@ ifeq ($(USE_UPNP),yes)
|
||||
endif
|
||||
|
||||
LDLIBS += \
|
||||
-lboost_system$(BOOST_SUFFIX) \
|
||||
-lboost_date_time$(BOOST_SUFFIX) \
|
||||
-lboost_filesystem$(BOOST_SUFFIX) \
|
||||
-lboost_program_options$(BOOST_SUFFIX) \
|
||||
-lboost_system$(BOOST_ARCHSUFFIX) \
|
||||
-lboost_date_time$(BOOST_ARCHSUFFIX) \
|
||||
-lboost_filesystem$(BOOST_ARCHSUFFIX) \
|
||||
-lboost_program_options$(BOOST_ARCHSUFFIX) \
|
||||
-lssl \
|
||||
-lcrypto \
|
||||
-lz \
|
||||
|
Loading…
Reference in New Issue
Block a user