summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-01-23 11:02:22 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-01-23 11:02:22 +0000
commit2df4c9eb34e086100e048f7ba9cf42bcf89cb44b (patch)
tree05ee8bceec01318804a753254a1aac8da1b5059c
parent676e19b01137473e1d108cfec067bb4b95b62173 (diff)
downloadbuildsystem-2df4c9eb34e086100e048f7ba9cf42bcf89cb44b.tar.gz
buildsystem-2df4c9eb34e086100e048f7ba9cf42bcf89cb44b.tar.bz2
Rudimentary MSYS support
svn path=/trunk/tools/buildsystem/; revision=11460
-rw-r--r--makefiles/Makefile.tools11
1 files changed, 10 insertions, 1 deletions
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