all: libxmlpull.a 

libxmlpull.a:
	gcc -c xmlpull.c -o xmlpull.o
	ar rcs libxmlpull.a xmlpull.o

read:
	gcc -L. test_read.c -lxmlpull -o read_xmlpull

write:
	gcc -L. test_write.c -lxmlpull -o write_xmlpull

clean:
	if [ -f libxmlpull.* ]; then rm libxmlpull.*; fi
	if [ -f xmlpull.o ]; then rm xmlpull.o; fi
	if [ -f read_xmlpull* ]; then rm read_xmlpull*; fi
	if [ -f write_xmlpull* ]; then rm write_xmlpull*; fi
