From: Mark Huang Date: Fri, 10 Nov 2006 06:30:44 +0000 (+0000) Subject: build xmlrpc.so PHP extension X-Git-Tag: pycurl-7_13_1~332 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=d4f789d4b0b26f5f9946176629d6058d8ec2512c build xmlrpc.so PHP extension --- diff --git a/php/xmlrpc/Makefile b/php/xmlrpc/Makefile new file mode 100644 index 0000000..40c6887 --- /dev/null +++ b/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