From 9ccb9227c8f78d84b8be545b9859ae1c3e03165e Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 23 Jan 2011 00:20:20 +0000 Subject: Rudimentary msys support svn path=/trunk/netsurf/; revision=11457 --- Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3