1#**************************************************************************** 2# Makefile for TinyXml for Windows / MinGW32 3#**************************************************************************** 4 5# Compiler configuration 6CPP = g++ 7AR = ar rcs 8CPPFLAGS = -Wall -Wno-unknown-pragmas -Wno-format -O3 9 10# Target files 11STATICLIB = libtinyxml.a 12 13all: $(STATICLIB) 14 15# Object files 16OBJS = tinyxml.o \ 17 tinyxmlparser.o \ 18 tinyxmlerror.o \ 19 tinystr.o 20 21# Rule for static library 22$(STATICLIB): $(OBJS) 23 $(AR) $@ $(OBJS) 24 25# Compile rules 26%.o : %.cpp 27 $(CPP) -c $(CPPFLAGS) $< -o $@ 28 29clean: 30 del /Q $(OBJS) $(STATICLIB) 31 32tinyxml.o: tinyxml.cpp tinyxml.h tinystr.h 33tinyxmlparser.o: tinyxmlparser.cpp tinyxml.h tinystr.h 34tinyxmlerror.o: tinyxmlerror.cpp tinyxml.h tinystr.h 35tinystr.o: tinystr.cpp tinystr.h 36