makefile: Fix broken build under MinGW
This commit is contained in:
parent
ebbe009d57
commit
a71e5e0599
1 changed files with 3 additions and 1 deletions
4
makefile
4
makefile
|
@ -87,8 +87,10 @@ else
|
||||||
endif
|
endif
|
||||||
find_lib = $(abspath $(strip $(firstword $(foreach dir,$(strip $(LIBPATH)),$(wildcard $(dir)/lib$(1).$(LIBEXT))))))
|
find_lib = $(abspath $(strip $(firstword $(foreach dir,$(strip $(LIBPATH)),$(wildcard $(dir)/lib$(1).$(LIBEXT))))))
|
||||||
find_include = $(abspath $(strip $(firstword $(foreach dir,$(strip $(INCPATH)),$(wildcard $(dir)/$(1).h)))))
|
find_include = $(abspath $(strip $(firstword $(foreach dir,$(strip $(INCPATH)),$(wildcard $(dir)/$(1).h)))))
|
||||||
|
$(info OS=$(OS))
|
||||||
ifneq ($(findstring Windows,$(OS)),)
|
ifneq ($(findstring Windows,$(OS)),)
|
||||||
ifeq ($(findstring .exe,$(SHELL))),.exe)
|
$(info SHELL=$(SHELL))
|
||||||
|
ifeq ($(findstring .exe,$(SHELL)),.exe)
|
||||||
# MinGW
|
# MinGW
|
||||||
WIN32 := 1
|
WIN32 := 1
|
||||||
else # Msys or cygwin
|
else # Msys or cygwin
|
||||||
|
|
Loading…
Add table
Reference in a new issue