mirror of https://github.com/AxioDL/tinyxml2.git
Updated Makefile to allow building TinyXML2 as a static library
This commit is contained in:
parent
bb4d246f7b
commit
48daa2dd81
21
Makefile
21
Makefile
|
@ -1,6 +1,19 @@
|
||||||
all: xmltest
|
all: xmltest staticlib
|
||||||
xmltest: xmltest.cpp tinyxml2.cpp tinyxml2.h
|
|
||||||
|
rebuild: clean all
|
||||||
|
|
||||||
|
xmltest: xmltest.cpp tinyxml2.a
|
||||||
|
|
||||||
|
clean:
|
||||||
|
$(RM) *.o xmltest tinyxml2.a
|
||||||
|
|
||||||
test: clean xmltest
|
test: clean xmltest
|
||||||
./xmltest
|
./xmltest
|
||||||
clean:
|
|
||||||
rm -f *.o xmltest
|
staticlib: tinyxml2.a
|
||||||
|
|
||||||
|
tinyxml2.a: tinyxml2.o
|
||||||
|
$(AR) $(ARFLAGS)s $@ $^
|
||||||
|
|
||||||
|
tinyxml2.o: tinyxml2.cpp tinyxml2.h
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue