mirror of https://github.com/PurpleI2P/i2pd.git
R4SAS
6 years ago
2 changed files with 58 additions and 58 deletions
@ -1,54 +1,54 @@ |
|||||||
USE_WIN32_APP=yes |
USE_WIN32_APP=yes |
||||||
CXX = g++ |
CXX = g++ |
||||||
WINDRES = windres |
WINDRES = windres |
||||||
CXXFLAGS := ${CXX_DEBUG} -D_MT -DWIN32 -D_WINDOWS -DWIN32_LEAN_AND_MEAN |
CXXFLAGS := ${CXX_DEBUG} -D_MT -DWIN32 -D_WINDOWS -DWIN32_LEAN_AND_MEAN |
||||||
NEEDED_CXXFLAGS = -std=c++11 |
NEEDED_CXXFLAGS = -std=c++11 |
||||||
BOOST_SUFFIX = -mt |
BOOST_SUFFIX = -mt |
||||||
INCFLAGS = -Idaemon -I. |
INCFLAGS = -Idaemon -I. |
||||||
LDFLAGS := ${LD_DEBUG} -Wl,-Bstatic -static-libgcc -static-libstdc++ |
LDFLAGS := ${LD_DEBUG} -Wl,-Bstatic -static-libgcc -static-libstdc++ |
||||||
|
|
||||||
# UPNP Support
|
# UPNP Support
|
||||||
ifeq ($(USE_UPNP),yes) |
ifeq ($(USE_UPNP),yes) |
||||||
CXXFLAGS += -DUSE_UPNP -DMINIUPNP_STATICLIB |
CXXFLAGS += -DUSE_UPNP -DMINIUPNP_STATICLIB |
||||||
LDLIBS = -lminiupnpc |
LDLIBS = -lminiupnpc |
||||||
endif |
endif |
||||||
|
|
||||||
LDLIBS += \
|
LDLIBS += \
|
||||||
-lboost_system$(BOOST_SUFFIX) \
|
-lboost_system$(BOOST_SUFFIX) \
|
||||||
-lboost_date_time$(BOOST_SUFFIX) \
|
-lboost_date_time$(BOOST_SUFFIX) \
|
||||||
-lboost_filesystem$(BOOST_SUFFIX) \
|
-lboost_filesystem$(BOOST_SUFFIX) \
|
||||||
-lboost_program_options$(BOOST_SUFFIX) \
|
-lboost_program_options$(BOOST_SUFFIX) \
|
||||||
-lssl \
|
-lssl \
|
||||||
-lcrypto \
|
-lcrypto \
|
||||||
-lz \
|
-lz \
|
||||||
-lwsock32 \
|
-lwsock32 \
|
||||||
-lws2_32 \
|
-lws2_32 \
|
||||||
-lgdi32 \
|
-lgdi32 \
|
||||||
-liphlpapi \
|
-liphlpapi \
|
||||||
-lstdc++ \
|
-lstdc++ \
|
||||||
-lpthread |
-lpthread |
||||||
|
|
||||||
ifeq ($(USE_WIN32_APP), yes) |
ifeq ($(USE_WIN32_APP), yes) |
||||||
CXXFLAGS += -DWIN32_APP |
CXXFLAGS += -DWIN32_APP |
||||||
LDFLAGS += -mwindows |
LDFLAGS += -mwindows |
||||||
DAEMON_RC += Win32/Resource.rc |
DAEMON_RC += Win32/Resource.rc |
||||||
DAEMON_OBJS += $(patsubst %.rc,obj/%.o,$(DAEMON_RC)) |
DAEMON_OBJS += $(patsubst %.rc,obj/%.o,$(DAEMON_RC)) |
||||||
endif |
endif |
||||||
|
|
||||||
# don't change following line to ifeq ($(USE_AESNI),yes) !!!
|
# don't change following line to ifeq ($(USE_AESNI),yes) !!!
|
||||||
ifeq ($(USE_AESNI),1) |
ifeq ($(USE_AESNI),1) |
||||||
CPU_FLAGS += -maes |
CPU_FLAGS += -maes |
||||||
else |
else |
||||||
CPU_FLAGS += -msse |
CPU_FLAGS += -msse |
||||||
endif |
endif |
||||||
|
|
||||||
ifeq ($(USE_AVX),1) |
ifeq ($(USE_AVX),1) |
||||||
CPU_FLAGS += -mavx |
CPU_FLAGS += -mavx |
||||||
endif |
endif |
||||||
|
|
||||||
ifeq ($(USE_ASLR),yes) |
ifeq ($(USE_ASLR),yes) |
||||||
LDFLAGS += -Wl,--nxcompat -Wl,--high-entropy-va -Wl,--dynamicbase,--export-all-symbols |
LDFLAGS += -Wl,--nxcompat -Wl,--high-entropy-va -Wl,--dynamicbase,--export-all-symbols |
||||||
endif |
endif |
||||||
|
|
||||||
obj/%.o : %.rc |
obj/%.o : %.rc |
||||||
$(WINDRES) -i $< -o $@ |
$(WINDRES) -i $< -o $@ |
||||||
|
Loading…
Reference in new issue