Makefile 734 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ifeq ($(SRCDIR),)
  2. updir = $(shell echo $(dir $(1)) | sed 's/.$$//')
  3. SRCDIR := $(call updir,$(CURDIR))
  4. BLDDIR := $(SRCDIR)
  5. endif
  6. SUBDIR := tools
  7. include $(BLDDIR)/config.mk
  8. SUBDIRS = \
  9. binmode-rpc-kit \
  10. lib \
  11. turbocharger \
  12. ifeq ($(MUST_BUILD_CLIENT),yes)
  13. SUBDIRS += xmlrpc xmlrpc_transport
  14. ifeq ($(ENABLE_CPLUSPLUS),yes)
  15. SUBDIRS += xml-rpc-api2cpp xml-rpc-api2txt xmlrpc_cpp_proxy
  16. ifeq ($(BUILD_XMLRPC_PSTREAM),yes)
  17. SUBDIRS += xmlrpc_pstream
  18. endif
  19. endif
  20. endif
  21. .PHONY: all clean distclean install check dep
  22. all: $(SUBDIRS:%=%/all)
  23. clean: $(SUBDIRS:%=%/clean)
  24. distclean: $(SUBDIRS:%=%/distclean)
  25. install: $(SUBDIRS:%=%/install)
  26. check:
  27. dep: $(SUBDIRS:%=%/dep)
  28. include $(SRCDIR)/common.mk