Skip to content

Commit

Permalink
Fix compiling lcc using mingw under cygwin
Browse files Browse the repository at this point in the history
Also have 'make' under cygwin automatically use mingw.
  • Loading branch information
zturtleman committed Jan 27, 2015
1 parent 43c7f1e commit 4e029b1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Makefile
Expand Up @@ -52,6 +52,10 @@ endif
#############################################################################
-include Makefile.local

ifeq ($(COMPILE_PLATFORM),cygwin)
PLATFORM=mingw32
endif

ifndef PLATFORM
PLATFORM=$(COMPILE_PLATFORM)
endif
Expand Down Expand Up @@ -584,6 +588,11 @@ ifeq ($(PLATFORM),mingw32)
TOOLS_BINEXT=.exe
endif

ifeq ($(COMPILE_PLATFORM),cygwin)
TOOLS_BINEXT=.exe
TOOLS_CC=$(CC)
endif

LIBS= -lws2_32 -lwinmm -lpsapi
# clang 3.4 doesn't support this
ifneq ("$(CC)", $(findstring "$(CC)", "clang" "clang++"))
Expand Down

0 comments on commit 4e029b1

Please sign in to comment.