forked from PurpleI2P/i2pd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update windows build script, change makefile.mingw line ending
- Loading branch information
Showing
2 changed files
with
58 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,54 @@ | ||
USE_WIN32_APP=yes | ||
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++ | ||
# UPNP Support | ||
ifeq ($(USE_UPNP),yes) | ||
CXXFLAGS += -DUSE_UPNP -DMINIUPNP_STATICLIB | ||
LDLIBS = -lminiupnpc | ||
endif | ||
LDLIBS += \ | ||
-lboost_system$(BOOST_SUFFIX) \ | ||
-lboost_date_time$(BOOST_SUFFIX) \ | ||
-lboost_filesystem$(BOOST_SUFFIX) \ | ||
-lboost_program_options$(BOOST_SUFFIX) \ | ||
-lssl \ | ||
-lcrypto \ | ||
-lz \ | ||
-lwsock32 \ | ||
-lws2_32 \ | ||
-lgdi32 \ | ||
-liphlpapi \ | ||
-lstdc++ \ | ||
-lpthread | ||
ifeq ($(USE_WIN32_APP), yes) | ||
CXXFLAGS += -DWIN32_APP | ||
LDFLAGS += -mwindows | ||
DAEMON_RC += Win32/Resource.rc | ||
DAEMON_OBJS += $(patsubst %.rc,obj/%.o,$(DAEMON_RC)) | ||
endif | ||
# don't change following line to ifeq ($(USE_AESNI),yes) !!! | ||
ifeq ($(USE_AESNI),1) | ||
CPU_FLAGS += -maes | ||
else | ||
CPU_FLAGS += -msse | ||
endif | ||
ifeq ($(USE_AVX),1) | ||
CPU_FLAGS += -mavx | ||
endif | ||
ifeq ($(USE_ASLR),yes) | ||
LDFLAGS += -Wl,--nxcompat -Wl,--high-entropy-va -Wl,--dynamicbase,--export-all-symbols | ||
endif | ||
obj/%.o : %.rc | ||
$(WINDRES) -i $< -o $@ | ||
USE_WIN32_APP=yes | ||
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++ | ||
|
||
# UPNP Support | ||
ifeq ($(USE_UPNP),yes) | ||
CXXFLAGS += -DUSE_UPNP -DMINIUPNP_STATICLIB | ||
LDLIBS = -lminiupnpc | ||
endif | ||
|
||
LDLIBS += \ | ||
-lboost_system$(BOOST_SUFFIX) \ | ||
-lboost_date_time$(BOOST_SUFFIX) \ | ||
-lboost_filesystem$(BOOST_SUFFIX) \ | ||
-lboost_program_options$(BOOST_SUFFIX) \ | ||
-lssl \ | ||
-lcrypto \ | ||
-lz \ | ||
-lwsock32 \ | ||
-lws2_32 \ | ||
-lgdi32 \ | ||
-liphlpapi \ | ||
-lstdc++ \ | ||
-lpthread | ||
|
||
ifeq ($(USE_WIN32_APP), yes) | ||
CXXFLAGS += -DWIN32_APP | ||
LDFLAGS += -mwindows | ||
DAEMON_RC += Win32/Resource.rc | ||
DAEMON_OBJS += $(patsubst %.rc,obj/%.o,$(DAEMON_RC)) | ||
endif | ||
|
||
# don't change following line to ifeq ($(USE_AESNI),yes) !!! | ||
ifeq ($(USE_AESNI),1) | ||
CPU_FLAGS += -maes | ||
else | ||
CPU_FLAGS += -msse | ||
endif | ||
|
||
ifeq ($(USE_AVX),1) | ||
CPU_FLAGS += -mavx | ||
endif | ||
|
||
ifeq ($(USE_ASLR),yes) | ||
LDFLAGS += -Wl,--nxcompat -Wl,--high-entropy-va -Wl,--dynamicbase,--export-all-symbols | ||
endif | ||
|
||
obj/%.o : %.rc | ||
$(WINDRES) -i $< -o $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters