aramis_acg 2010-08-30 13:13:18 +00:00
parent cab35c496d
commit 76bdf7d0cb
1 changed files with 5 additions and 4 deletions

View File

@ -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)