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 include ../Makefile.common
16 INCLUDES = -I$(SRCDIR) -I$(SRCDIR)/include
18 CXXFLAGS = $(INCLUDES) $(CXXFLAGS_COMMON) $(CFLAGS_PERSONAL) $(CADD)
22 LDLIBS = -Lblddir/src/cpp -lxmlrpc_cpp -lxmlrpc_server $(CLIENT_LDLIBS)
26 ifeq ($(MUST_BUILD_CLIENT),yes)
27 PROGS += xml-rpc-api2cpp
47 $(CXXLD) -o $@ $(LDFLAGS) $(OBJECTS) $(LDLIBS)
50 $(CXX) -c $(CXXFLAGS) $<
52 # This Makefile.config dependency makes sure the symlinks get built before
53 # this make file is used for anything.
55 $(BLDDIR)/Makefile.config: blddir srcdir
57 include Makefile.depend
64 distclean: clean distclean-common