i2pd/Makefile.mingw

45 lines
1.1 KiB
Makefile
Raw Normal View History

2016-03-12 06:24:23 +03:00
USE_WIN32_APP=yes
2015-11-10 22:09:26 +03:00
CXX = g++
2016-03-08 05:36:11 +03:00
WINDRES = windres
2016-03-10 22:46:45 +03:00
CXXFLAGS = -Os -D_MT -DWIN32 -D_WINDOWS -DWIN32_LEAN_AND_MEAN
NEEDED_CXXFLAGS = -std=c++11
2016-01-31 20:59:37 +03:00
BOOST_SUFFIX = -mt
2016-02-03 20:48:59 +03:00
INCFLAGS = -I/usr/include/ -I/usr/local/include/
2016-03-12 06:24:23 +03:00
LDFLAGS = -Wl,-rpath,/usr/local/lib \
-L/usr/local/lib \
-L/c/dev/openssl \
-L/c/dev/boost/lib
LDLIBS = \
-Wl,-Bstatic -lboost_system$(BOOST_SUFFIX) \
-Wl,-Bstatic -lboost_date_time$(BOOST_SUFFIX) \
-Wl,-Bstatic -lboost_filesystem$(BOOST_SUFFIX) \
-Wl,-Bstatic -lboost_regex$(BOOST_SUFFIX) \
-Wl,-Bstatic -lboost_program_options$(BOOST_SUFFIX) \
-Wl,-Bstatic -lssl \
-Wl,-Bstatic -lcrypto \
-Wl,-Bstatic -lz \
-Wl,-Bstatic -lwsock32 \
-Wl,-Bstatic -lws2_32 \
-Wl,-Bstatic -lgdi32 \
-Wl,-Bstatic -liphlpapi \
-static-libgcc -static-libstdc++ \
-Wl,-Bstatic -lstdc++ \
-Wl,-Bstatic -lpthread
2016-03-12 06:24:23 +03:00
ifeq ($(USE_WIN32_APP), yes)
CXXFLAGS += -DWIN32_APP
LDFLAGS += -mwindows -s
DAEMON_RC += Win32/Resource.rc
DAEMON_OBJS += $(patsubst %.rc,obj/%.o,$(DAEMON_RC))
endif
2016-02-03 23:00:55 +03:00
ifeq ($(USE_AESNI),1)
2016-02-03 20:48:59 +03:00
CPU_FLAGS = -maes -DAESNI
else
CPU_FLAGS = -msse
2016-02-03 20:48:59 +03:00
endif
2016-03-09 17:38:19 +03:00
obj/%.o : %.rc
$(WINDRES) -i $< -o $@