Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. ifeq ($(SRCDIR),)
  2. updir = $(shell echo $(dir $(1)) | sed 's/.$$//')
  3. TOOLSDIR := $(call updir,$(CURDIR))
  4. SRCDIR := $(call updir,$(TOOLSDIR))
  5. BLDDIR := $(SRCDIR)
  6. endif
  7. SUBDIR := tools/xmlrpc_cpp_proxy
  8. default: all
  9. include $(BLDDIR)/config.mk
  10. PROGRAMS_TO_INSTALL = xmlrpc_cpp_proxy
  11. include $(SRCDIR)/tools/common.mk
  12. # <sstream.h> in Glibc 2.2 has a bug that results in inlining failure,
  13. # so we disable warnings for that:
  14. CFLAGS_LOCAL = -Wno-inline
  15. INCLUDES = -I$(BLDDIR) -I$(BLDDIR)/include -Isrcdir/include
  16. LDFLAGS = $(LADD)
  17. all: xmlrpc_cpp_proxy
  18. OBJECTS = \
  19. xmlrpc_cpp_proxy.o \
  20. xmlrpcMethod.o \
  21. xmlrpcType.o \
  22. proxyClass.o \
  23. systemProxy.o \
  24. LIBS = \
  25. $(LIBXMLRPC_CLIENTPP) \
  26. $(LIBXMLRPCPP) \
  27. $(LIBXMLRPC_CLIENT) \
  28. $(LIBXMLRPC) \
  29. $(LIBXMLRPC_XML) \
  30. $(LIBXMLRPC_UTIL) \
  31. LDLIBS = $(CLIENTPP_LDLIBS) $(CLIENT_LDLIBS)
  32. xmlrpc_cpp_proxy: $(OBJECTS) $(LIBS)
  33. $(CXXLD) -o $@ $(LDFLAGS) $(OBJECTS) $(LDLIBS) $(LADD)
  34. %.o:%.cpp $(BLDDIR)/include/xmlrpc-c/config.h
  35. $(CXX) -c $(CXXFLAGS_ALL) $<
  36. # This common.mk dependency makes sure the symlinks get built before
  37. # this make file is used for anything.
  38. $(SRCDIR)/tools/common.mk: srcdir blddir
  39. include depend.mk
  40. .PHONY: clean
  41. clean: clean-common
  42. rm -f xmlrpc_cpp_proxy
  43. .PHONY: distclean
  44. distclean: clean distclean-common
  45. .PHONY: dep
  46. dep: dep-common