summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-01-23 00:20:20 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-01-23 00:20:20 +0000
commit9ccb9227c8f78d84b8be545b9859ae1c3e03165e (patch)
tree235bdb22a0271ca0614e95a94fe24ad5ecdb987b
parentac8096964eb72d73ba2edf6787885af3b1cd0945 (diff)
downloadnetsurf-9ccb9227c8f78d84b8be545b9859ae1c3e03165e.tar.gz
netsurf-9ccb9227c8f78d84b8be545b9859ae1c3e03165e.tar.bz2
Rudimentary msys support
svn path=/trunk/netsurf/; revision=11457
-rw-r--r--Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c919dde4d..ed037d021 100644
--- a/Makefile
+++ b/Makefile
@@ -88,7 +88,16 @@ else
TARGET := atari
endif
endif
-
+ ifeq ($(findstring MINGW,$(HOST)),MINGW)
+ # MSYS' uname reports the likes of "MINGW32_NT-6.0"
+ HOST := windows
+ endif
+ ifeq ($(HOST),windows)
+ ifeq ($(TARGET),)
+ TARGET := windows
+ endif
+ endif
+
# Default target is GTK backend
ifeq ($(TARGET),)
TARGET := gtk
@@ -197,6 +206,8 @@ else
# mingw cross-compile
CC := $(MINGW_PREFIX)gcc
PKG_CONFIG := $(MINGW_INSTALL_ENV)/bin/pkg-config
+ else
+ # Building on Windows
endif
else
ifeq ($(TARGET),amiga)