2 SRCDIR = $(CURDIR)/../..
4 # BLDDIR is for use in places where a symbolic link won't work.
5 # BUILDDIR is for places in Makefile.common that can use the 'blddir'
6 # symbolic link (but in other directories, doesn't).
12 include $(BLDDIR)/Makefile.config
14 PROGRAMS_TO_INSTALL = xmlrpc_transport
16 include ../Makefile.common
18 INCLUDES = -I$(SRCDIR) -I$(SRCDIR)/include -I$(SRCDIR)/lib/util/include
20 CFLAGS = $(CFLAGS_COMMON) $(INCLUDES) $(CFLAGS_PERSONAL) $(CADD)
26 UTIL_OBJS = cmdline_parser.o getoptx.o casprintf.o
27 UTILS = $(UTIL_OBJS:%=$(UTIL_DIR)/%)
29 # These are the Libtool .la files. We use them only for make dependencies.
30 # We'd like to use these in the link rule, by using libtool --link, but
31 # Libtool adds -l options to the link to cover the dependencies that are
32 # recorded inside the shared libraries. And it doesn't add the necessary
33 # -L options (it can't), so we end up with a messy mixture of the two
34 # forms of specifying libraries.
36 LIBS = $(LIBXMLRPC_CLIENT) $(LIBXMLRPC) $(LIBXMLRPC_XML) $(LIBXMLRPC_UTIL)
38 xmlrpc_transport:%:%.o $(LIBS) $(UTILS)
39 $(CCLD) -o $@ $(LDFLAGS) $< $(CLIENT_LDLIBS) $(UTILS)
47 $(LN_S) $(BLDDIR)/xmlrpc_config.h $@
49 # This Makefile.config dependency makes sure the symlinks get built before
50 # this make file is used for anything.
52 $(BLDDIR)/Makefile.config: blddir srcdir
54 include Makefile.depend
61 rm -f xmlrpc_transport config.h
64 distclean: clean distclean-common