2 SRCDIR = $(CURDIR)/../../..
4 SUBDIR = lib/expat/xmlparse
5 # BLDDIR is for use in places where a symbolic link won't work.
6 # BUILDDIR is for places in Makefile.common that can use the 'blddir'
7 # symbolic link (but in other directories, doesn't).
13 UTILDIR = $(SRCDIR)/lib/util
15 include $(BLDDIR)/Makefile.config
19 all: libxmlrpc_xmlparse.la
21 LIBXMLRPC_XMLPARSE_OBJS = xmlparse.lo
23 INCLUDES = -Iblddir -I$(SRCDIR) -I$(UTILDIR)/include -I$(XMLTOKDIR)
27 LIBLDFLAGS = $(LDFLAGS_VERSINFO) -rpath $(LIBINST_DIR) $(LADD)
29 libxmlrpc_xmlparse.la: $(LIBXMLRPC_XMLPARSE_OBJS)
30 $(LIBTOOL) --mode=link $(CCLD) -o $@ $(LIBLDFLAGS) $^
32 CFLAGS = $(CFLAGS_COMMON) $(CFLAGS_PERSONAL) $(CADD)
34 $(LIBXMLRPC_XMLPARSE_OBJS):%.lo:%.c
35 $(LIBTOOL) --mode=compile $(CC) -c $(INCLUDES) $(CFLAGS) $<
37 LTLIBRARIES_TO_INSTALL = libxmlrpc_xmlparse.la
40 install: install-common
42 .PHONY: clean distclean
45 distclean: clean distclean-common
50 # This 'Makefile.common' dependency makes sure the symlinks get built before
51 # this make file is used for anything.
53 $(SRCDIR)/Makefile.common: srcdir blddir
55 include $(SRCDIR)/Makefile.common
57 include Makefile.depend