2 # Build xmlrpc.so PHP extension
4 # Mark Huang <mlhuang@cs.princeton.edu>
5 # Copyright (C) 2006 The Trustees of Princeton University
11 CFLAGS := -g -O2 -I. -Ilibxmlrpc -fPIC
12 CFLAGS += $(shell php-config --includes)
13 CFLAGS += $(shell xml2-config --cflags)
15 LDFLAGS := -shared --export-dynamic
18 # for building on fedora 8
19 ifneq "$(shell ld --help | grep build-id)" ""
20 #not needed# CFLAGS += -Wl,--build-id
26 xmlrpc.so: xmlrpc-epi-php.o $(patsubst %.c, %.o, $(wildcard libxmlrpc/*.c))
27 $(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
30 rm -f *.o libxmlrpc/*.o *.so