bgfx/3rdparty/openctm/tools/tinyxml/Makefile.mingw

36 lines
814 B
Text
Raw Normal View History

2012-10-07 23:41:18 -04:00
#****************************************************************************
# Makefile for TinyXml for Windows / MinGW32
#****************************************************************************
# Compiler configuration
CPP = g++
AR = ar rcs
CPPFLAGS = -Wall -Wno-unknown-pragmas -Wno-format -O3
# Target files
STATICLIB = libtinyxml.a
all: $(STATICLIB)
# Object files
OBJS = tinyxml.o \
tinyxmlparser.o \
tinyxmlerror.o \
tinystr.o
# Rule for static library
$(STATICLIB): $(OBJS)
$(AR) $@ $(OBJS)
# Compile rules
%.o : %.cpp
$(CPP) -c $(CPPFLAGS) $< -o $@
clean:
del /Q $(OBJS) $(STATICLIB)
tinyxml.o: tinyxml.cpp tinyxml.h tinystr.h
tinyxmlparser.o: tinyxmlparser.cpp tinyxml.h tinystr.h
tinyxmlerror.o: tinyxmlerror.cpp tinyxml.h tinystr.h
tinystr.o: tinystr.cpp tinystr.h