Fix compiling lcc using mingw under cygwin

Also have 'make' under cygwin automatically use mingw.
This commit is contained in:
Zack Middleton 2015-01-27 03:33:15 -06:00
parent 43c7f1e734
commit 4e029b1f6b

View file

@ -52,6 +52,10 @@ endif
############################################################################# #############################################################################
-include Makefile.local -include Makefile.local
ifeq ($(COMPILE_PLATFORM),cygwin)
PLATFORM=mingw32
endif
ifndef PLATFORM ifndef PLATFORM
PLATFORM=$(COMPILE_PLATFORM) PLATFORM=$(COMPILE_PLATFORM)
endif endif
@ -584,6 +588,11 @@ ifeq ($(PLATFORM),mingw32)
TOOLS_BINEXT=.exe TOOLS_BINEXT=.exe
endif endif
ifeq ($(COMPILE_PLATFORM),cygwin)
TOOLS_BINEXT=.exe
TOOLS_CC=$(CC)
endif
LIBS= -lws2_32 -lwinmm -lpsapi LIBS= -lws2_32 -lwinmm -lpsapi
# clang 3.4 doesn't support this # clang 3.4 doesn't support this
ifneq ("$(CC)", $(findstring "$(CC)", "clang" "clang++")) ifneq ("$(CC)", $(findstring "$(CC)", "clang" "clang++"))