1 ###############################################################################
2 # This directory builds libxmlrpc_util, which contains utility
3 # functions that are used by the Xmlprc-c # libraries, and also
4 # directly by Xmlrpc-c programs.
6 # The functions in this library are characterized by being general purpose
7 # programming functions, such as one might wish were in the standard C
8 # library, which have nothing in particular to do with XML-RPC.
9 ###############################################################################
12 SRCDIR = $(CURDIR)/../..
15 # BLDDIR is for use in places where a symbolic link won't work.
16 # BUILDDIR is for places in Makefile.common that can use the 'blddir'
17 # symbolic link (but in other directories, doesn't).
22 include $(BLDDIR)/Makefile.config
26 all: libxmlrpc_util.la
28 LIBXMLRPC_UTIL_OBJS = \
36 INCLUDES = -Iblddir -I$(SRCDIR) \
37 -Isrcdir/include -Isrcdir/lib/util/include
41 LIBLDFLAGS = $(LDFLAGS_VERSINFO) -rpath $(LIBINST_DIR) $(LADD)
43 libxmlrpc_util.la: $(LIBXMLRPC_UTIL_OBJS)
44 $(LIBTOOL) --mode=link $(CCLD) -o $@ $(LIBLDFLAGS) $^
46 CFLAGS = $(CFLAGS_COMMON) $(CFLAGS_PERSONAL) $(CADD)
48 $(LIBXMLRPC_UTIL_OBJS):%.lo:%.c
49 $(LIBTOOL) --mode=compile $(CC) -c $(INCLUDES) $(CFLAGS) $<
51 LTLIBRARIES_TO_INSTALL = libxmlrpc_util.la
54 install: install-common
56 .PHONY: clean distclean
59 distclean: clean distclean-common
64 # This 'Makefile.common' dependency makes sure the symlinks get built before
65 # this make file is used for anything.
67 $(SRCDIR)/Makefile.common: srcdir blddir
69 include $(SRCDIR)/Makefile.common
71 include Makefile.depend