diff options
author | Zack Middleton <zturtleman@gmail.com> | 2015-01-27 03:33:15 -0600 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2015-03-17 11:43:05 +0000 |
commit | 05114d86c8eed99141814477c82dbba8447166a2 (patch) | |
tree | 8a77726c1417aee52c8e52bbf4dd0bc08799adb2 /Makefile | |
parent | 871f7453dc06d70314141d44921ea4af502171ef (diff) |
Fix compiling lcc using mingw under cygwin
Also have 'make' under cygwin automatically use mingw.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -46,6 +46,10 @@ endif ############################################################################# -include Makefile.local +ifeq ($(COMPILE_PLATFORM),cygwin) + PLATFORM=mingw32 +endif + ifndef PLATFORM PLATFORM=$(COMPILE_PLATFORM) endif @@ -571,6 +575,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++")) |