X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=trunk%2Fphp%2Fxmlrpc%2FMakefile;fp=trunk%2Fphp%2Fxmlrpc%2FMakefile;h=40c68873baa6b03531de960002a4db0d3499480c;hb=5a4c1b1278ffa01e630fde47f7c54888ed20a576;hp=0000000000000000000000000000000000000000;hpb=cee5ab52df1c9f38b6eaff2dd354cb22f59028c7;p=plcapi.git diff --git a/trunk/php/xmlrpc/Makefile b/trunk/php/xmlrpc/Makefile new file mode 100644 index 0000000..40c6887 --- /dev/null +++ b/trunk/php/xmlrpc/Makefile @@ -0,0 +1,26 @@ +# +# Build xmlrpc.so PHP extension +# +# Mark Huang +# Copyright (C) 2006 The Trustees of Princeton University +# +# $Id$ +# + +CC := gcc +CFLAGS := -g -O2 -I. -Ilibxmlrpc -fPIC +CFLAGS += $(shell php-config --includes) +CFLAGS += $(shell xml2-config --cflags) + +LDFLAGS := -shared --export-dynamic +LIBS := -lexpat + +all: xmlrpc.so + +xmlrpc.so: xmlrpc-epi-php.o $(patsubst %.c, %.o, $(wildcard libxmlrpc/*.c)) + $(LD) $(LDFLAGS) -o $@ $^ $(LIBS) + +clean: + rm -f *.o libxmlrpc/*.o *.so + +.PHONY: all clean