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-9d2fd5bffc1fpull/1/head
parent
cab35c496d
commit
76bdf7d0cb
|
@ -67,9 +67,10 @@ endif
|
||||||
# Setup environment for debug build
|
# Setup environment for debug build
|
||||||
ifeq ($(DEBUG),1)
|
ifeq ($(DEBUG),1)
|
||||||
DEFINEFLAGS += -D_DEBUG -DDEBUG
|
DEFINEFLAGS += -D_DEBUG -DDEBUG
|
||||||
|
CPPFLAGS += -g
|
||||||
# NAMESUFFIX += -debug
|
# NAMESUFFIX += -debug
|
||||||
else
|
else
|
||||||
CPPFLAGS += -O3 -s
|
CPPFLAGS += -O2 -s
|
||||||
DEFINEFLAGS += -DNDEBUG -D_NDEBUG
|
DEFINEFLAGS += -DNDEBUG -D_NDEBUG
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -86,15 +87,15 @@ all: $(SHARED_TARGET)
|
||||||
$(SHARED_TARGET): $(OBJECTS) $(OBJECTSC)
|
$(SHARED_TARGET): $(OBJECTS) $(OBJECTSC)
|
||||||
gcc -o $@ $(OBJECTS) $(OBJECTSC) -shared -lstdc++
|
gcc -o $@ $(OBJECTS) $(OBJECTSC) -shared -lstdc++
|
||||||
%.o:%.cpp
|
%.o:%.cpp
|
||||||
$(CXX) -g -c $(CPPFLAGS) $? -o $@ $(INCLUDEFLAGS) $(DEFINEFLAGS)
|
$(CXX) -c $(CPPFLAGS) $? -o $@ $(INCLUDEFLAGS) $(DEFINEFLAGS)
|
||||||
%.oc:%.c
|
%.oc:%.c
|
||||||
$(CXX) -x c -g -c -ansi $(CPPFLAGS) $? -o $@
|
$(CXX) -x c -c -ansi $(CPPFLAGS) $? -o $@
|
||||||
|
|
||||||
# target: clean
|
# target: clean
|
||||||
# usage : cleanup all object files, prepare for a rebuild
|
# usage : cleanup all object files, prepare for a rebuild
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
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
|
# target: static
|
||||||
# usage : build a static library (*.a)
|
# usage : build a static library (*.a)
|
||||||
|
|
Loading…
Reference in New Issue