From 76bdf7d0cbd4fb2231d1b85f0e5624cc9f97a88f Mon Sep 17 00:00:00 2001 From: aramis_acg Date: Mon, 30 Aug 2010 13:13:18 +0000 Subject: [PATCH] Fix makefile.mingw, see http://sourceforge.net/projects/assimp/forums/forum/817654/topic/3828839. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@808 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- code/makefile.mingw | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/code/makefile.mingw b/code/makefile.mingw index e3fb16655..341642c04 100644 --- a/code/makefile.mingw +++ b/code/makefile.mingw @@ -67,9 +67,10 @@ endif # Setup environment for debug build ifeq ($(DEBUG),1) DEFINEFLAGS += -D_DEBUG -DDEBUG + CPPFLAGS += -g # NAMESUFFIX += -debug else - CPPFLAGS += -O3 -s + CPPFLAGS += -O2 -s DEFINEFLAGS += -DNDEBUG -D_NDEBUG endif @@ -86,15 +87,15 @@ all: $(SHARED_TARGET) $(SHARED_TARGET): $(OBJECTS) $(OBJECTSC) gcc -o $@ $(OBJECTS) $(OBJECTSC) -shared -lstdc++ %.o:%.cpp - $(CXX) -g -c $(CPPFLAGS) $? -o $@ $(INCLUDEFLAGS) $(DEFINEFLAGS) + $(CXX) -c $(CPPFLAGS) $? -o $@ $(INCLUDEFLAGS) $(DEFINEFLAGS) %.oc:%.c - $(CXX) -x c -g -c -ansi $(CPPFLAGS) $? -o $@ + $(CXX) -x c -c -ansi $(CPPFLAGS) $? -o $@ # target: clean # usage : cleanup all object files, prepare for a rebuild .PHONY: clean clean: - -del *.o .\..\contrib\irrXML\*.o .\..\contrib\zlib\*.oc + -del *.o .\..\contrib\irrXML\*.o .\..\contrib\zlib\*.oc .\..\contrib\unzip\*.oc .\..\contrib\ConvertUTF\*.oc # target: static # usage : build a static library (*.a)