From 2df4c9eb34e086100e048f7ba9cf42bcf89cb44b Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 23 Jan 2011 11:02:22 +0000 Subject: Rudimentary MSYS support svn path=/trunk/tools/buildsystem/; revision=11460 --- makefiles/Makefile.tools | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/makefiles/Makefile.tools b/makefiles/Makefile.tools index ccdbb80..a5148a2 100644 --- a/makefiles/Makefile.tools +++ b/makefiles/Makefile.tools @@ -60,6 +60,10 @@ else ifeq ($(HOST),AmigaOS) HOST := amiga endif + + ifeq ($(findstring MINGW,$(HOST)),MINGW) + HOST := windows + endif endif ifeq ($(TARGET),) @@ -195,7 +199,12 @@ endif # Windows ifeq ($(TARGET),windows) ifeq ($(HOST),windows) - $(error Compiling on Windows is not supported) + # Building on Windows + CC__ := gcc + CXX__ := g++ + AR__ := ar + + PKGCONFIG ?= else # Cross compiling for Windows -- assumes mingw toolchain MINGW_INSTALL_ENV ?= /usr/local/mingw -- cgit v1.2.3