[cmake] add windows support for MSYS

Done with Vort's (https://github.com/Vort) cooperation

+ Updated Makefiles for correct options order

Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
R4SAS 2023-02-26 10:14:15 +00:00
parent 2e899a8d36
commit 8ed721ca14
No known key found for this signature in database
GPG key ID: 66F6C87B98EBCFE2
12 changed files with 198 additions and 87 deletions

View file

@ -1,6 +1,7 @@
CXX = clang++
CXXFLAGS := ${CXX_DEBUG} -Wall -std=c++11 -DMAC_OSX
CXXFLAGS := ${CXX_DEBUG} -Wall -std=c++11
INCFLAGS = -I/usr/local/include
DEFINES := -DMAC_OSX
LDFLAGS := -Wl,-rpath,/usr/local/lib -L/usr/local/lib
LDFLAGS += -Wl,-dead_strip
LDFLAGS += -Wl,-dead_strip_dylibs
@ -14,7 +15,7 @@ endif
ifeq ($(USE_UPNP),yes)
LDFLAGS += -ldl
CXXFLAGS += -DUSE_UPNP
DEFINES += -DUSE_UPNP
ifeq ($(USE_STATIC),yes)
LDLIBS += /usr/local/lib/libminiupnpc.a
else
@ -23,7 +24,8 @@ ifeq ($(USE_UPNP),yes)
endif
ifeq ($(USE_AESNI),yes)
CXXFLAGS += -D__AES__ -maes
CXXFLAGS += -maes
DEFINES += -D__AES__
else
CXXFLAGS += -msse
endif