Makefile (410B)
1 all: libxmlpull.a 2 3 libxmlpull.a: 4 gcc -shared -g -c xmlpull.c -o libxmlpull.so 5 6 read: 7 gcc -L. test_read.c -lxmlpull -o read_xmlpull 8 9 write: 10 gcc -L. test_write.c -lxmlpull -o write_xmlpull 11 12 install: 13 14 clean: 15 if [ -f libxmlpull.* ]; then rm libxmlpull.*; fi 16 if [ -f xmlpull.o ]; then rm xmlpull.o; fi 17 if [ -f read_xmlpull* ]; then rm read_xmlpull*; fi 18 if [ -f write_xmlpull* ]; then rm write_xmlpull*; fi 19