summaryrefslogtreecommitdiff
path: root/Makefile.mingw32
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-10-03 20:01:00 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-10-03 20:01:00 +0200
commit09affc83b19f1a6b50988292ccb50b2d2385340b (patch)
tree15a79b6644da264181bd15bea4d1e2c71a281129 /Makefile.mingw32
parentde4dcf9e8649ccd56d5b8617baa4650e8515005f (diff)
Making sure the mingw32 makefile works on all msys distributions.
Diffstat (limited to 'Makefile.mingw32')
-rw-r--r--Makefile.mingw323
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.mingw32 b/Makefile.mingw32
index 43aabd9..f28a674 100644
--- a/Makefile.mingw32
+++ b/Makefile.mingw32
@@ -1,4 +1,5 @@
SYSTEM=$(shell uname)
+SUBSYSTEM=$(shell uname | cut -f 1 -d_ )
ifeq ($(SYSTEM),Darwin)
CC = i386-mingw32-gcc
CXX = i386-mingw32-g++
@@ -7,7 +8,7 @@ AS = i386-mingw32-gcc -c
STRIP = i386-mingw32-strip --strip-unneeded
WINDRES = i386-mingw32-windres
else
-ifeq ($(SYSTEM),MINGW32_NT-5.1)
+ifeq ($(SUBSYSTEM),MINGW32)
CC = gcc
CXX = g++
LD = g++