new shell script for installing DLLs on MSYS2.

imported https://gitlab.com/void995/netradiant/commits/working_multithreading_on_windows
This commit is contained in:
Garux
2018-02-08 00:09:46 +03:00
parent 5aec9aec87
commit 42e6cf618c
2 changed files with 98 additions and 2 deletions

View File

@@ -174,7 +174,7 @@ ifeq ($(findstring $(CFLAGS),-O),)
CFLAGS_COMMON += -O3
# only add -O3 if no -O flag is in $(CFLAGS)
endif
CFLAGS_COMMON += -march=native -mcpu=native
CFLAGS_COMMON += -march=native -mtune=native
CPPFLAGS_COMMON +=
LDFLAGS_COMMON += -s
else
@@ -250,6 +250,24 @@ endif
endif
endif
# MSYS2
UNAME_S := $(shell uname -s)
UNAME_O := $(shell uname -o)
ifneq "$(filter MINGW32_NT%,$(UNAME_S))" ""
OS = Win32
ifeq ($(UNAME_O),Msys)
DLLINSTALL = install-dlls-msys2-mingw.sh
endif
endif
ifneq "$(filter MINGW64_NT%,$(UNAME_S))" ""
OS = Win32
ifeq ($(UNAME_O),Msys)
DLLINSTALL = install-dlls-msys2-mingw.sh
endif
endif
# VERSION!
RADIANT_VERSION_NUMBER = 1.5.0
RADIANT_VERSION = $(RADIANT_VERSION_NUMBER)n
@@ -456,8 +474,8 @@ binaries-q3map2: \
.PHONY: clean
clean:
$(RM_R) $(INSTALLDIR_BASE)/
$(FIND) . \( -name \*.o -o -name \*.d -o -name \*.$(DLL) -o -name \*.$(A) -o -name \*.$(EXE) \) -exec $(RM) {} \;
$(RM_R) $(INSTALLDIR_BASE)/
$(RM) icons/*.rc
%.$(EXE):