[clever] r446 committed - Fixed MINGW detection inside Makefile.

8 views
Skip to first unread message

cle...@googlecode.com

unread,
Jul 20, 2011, 7:50:37 PM7/20/11
to cleve...@googlegroups.com
Revision: 446
Author: cadopoa
Date: Wed Jul 20 16:50:08 2011
Log: Fixed MINGW detection inside Makefile.
http://code.google.com/p/clever/source/detail?r=446

Modified:
/trunk/Makefile

=======================================
--- /trunk/Makefile Wed Jul 20 16:24:55 2011
+++ /trunk/Makefile Wed Jul 20 16:50:08 2011
@@ -5,7 +5,7 @@
# Compiler
CXX?=g++

-ifeq ($(UNAME), Windows)
+ifneq (,$(findstring MINGW,$(UNAME)))
CXXFLAGS=-c -O2 -ggdb -ansi -Iinclude/ -Ibuild/ -Imodules/ -Iwin32/ -I.
-fno-rtti -pedantic -fno-exceptions
else
CXXFLAGS=-c -O2 -ggdb -ansi -Iinclude/ -Ibuild/ -Imodules/ -I. -fno-rtti
-pedantic -fno-exceptions
@@ -30,7 +30,7 @@
# Testrunner dir
EXTRADIR=extra/

-ifeq ($(UNAME), Windows)
+ifneq (,$(findstring MINGW,$(UNAME)))
OBJECTS=$(BUILDDIR)parser.o $(BUILDDIR)scanner.o $(BUILDDIR)driver.o \
$(BUILDDIR)cstring.o $(BUILDDIR)double.o $(BUILDDIR)std_pkg.o \
$(BUILDDIR)int.o $(BUILDDIR)io.o $(BUILDDIR)math.o \

Reply all
Reply to author
Forward
0 new messages