2 SRCDIR = $(CURDIR)/../../..
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).
12 include $(BLDDIR)/Makefile.config
20 XMLRPC_C_CONFIG = $(BUILDDIR)/xmlrpc-c-config.test
22 CXXFLAGS = $(CXXFLAGS_COMMON) $(CFLAGS_PERSONAL) $(CADD)
24 LDFLAGS += $(shell $(XMLRPC_C_CONFIG) client --ldadd)
26 ifeq ($(MUST_BUILD_CURL_CLIENT),yes)
27 LDFLAGS += $(shell curl-config --libs)
29 ifeq ($(MUST_BUILD_LIBWWW_CLIENT),yes)
30 LDFLAGS += $(shell libwww-config --libs)
33 LDFLAGS += "-lpthread"
37 INCLUDES = -Isrcdir/include -Iblddir -Isrcdir -Isrcdir/lib/util/include
39 # This 'Makefile' dependency makes sure the symlinks get built before
40 # this make file is used for anything.
42 Makefile: blddir srcdir
44 include $(SRCDIR)/Makefile.common
47 TEST_OBJS = test.o server_abyss.o tools.o
49 ifeq ($(MUST_BUILD_CLIENT),yes)
50 TEST_OBJS += testclient.o
51 CLIENT_LIBS = $(LIBXMLRPC_CLIENT++) $(LIBXMLRPC_CLIENT_A)
53 TEST_OBJS += testclient_dummy.o
58 test:$(TEST_OBJS) $(LIBXMLRPC_SERVER_ABYSS++) $(LIBXMLRPC_SERVER++) \
59 $(CLIENT_LIBS) $(LIBXMLRPC++) $(LIBXMLRPC_CPP) \
60 $(LIBXMLRPC_SERVER_ABYSS_A) $(LIBXMLRPC_SERVER_A) \
61 $(LIBXMLRPC_A) $(LIBXMLRPC_ABYSS_A) $(LIBXMLRPC_XML) $(LIBXMLRPC_UTIL_A)
62 $(LIBTOOL) --mode=link $(CXXLD) -o $@ $(LDFLAGS) $^
65 $(CXX) -c $(INCLUDES) $(CXXFLAGS) $<
67 # Note the difference between 'check' and 'runtests'. 'check' means to check
68 # our own correctness. 'runtests' means to run the tests that check our
69 # parent's correctness
81 .PHONY: clean clean-local distclean
82 clean: clean-common clean-local
86 distclean: clean distclean-common
91 include Makefile.depend