Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. ifeq ($(SRCDIR),)
  2. updir = $(shell echo $(dir $(1)) | sed 's/.$$//')
  3. SRCDIR := $(call updir,$(CURDIR))
  4. BLDDIR := $(SRCDIR)
  5. endif
  6. SUBDIR := lib
  7. include $(BLDDIR)/config.mk
  8. # Build up SUBDIRS:
  9. SUBDIRS =
  10. SUBDIRS += util libutil
  11. ifeq ($(ENABLE_ABYSS_SERVER),yes)
  12. SUBDIRS += abyss
  13. endif
  14. ifeq ($(MUST_BUILD_WININET_CLIENT),yes)
  15. SUBDIRS += wininet_transport
  16. endif
  17. ifeq ($(MUST_BUILD_CURL_CLIENT),yes)
  18. SUBDIRS += curl_transport
  19. endif
  20. ifeq ($(MUST_BUILD_LIBWWW_CLIENT),yes)
  21. SUBDIRS += libwww_transport
  22. endif
  23. ifneq ($(ENABLE_LIBXML2_BACKEND),yes)
  24. SUBDIRS += expat
  25. endif
  26. default: all
  27. .PHONY: all clean distclean tags distdir install check dep
  28. all: $(SUBDIRS:%=%/all)
  29. # Extra dependencies to make parallel make work in spite of all the submakes
  30. # (See top level make file for details)
  31. abyss/all curl_transport/all: $(BLDDIR)/version.h
  32. clean: $(SUBDIRS:%=%/clean) clean-common
  33. distclean: $(SUBDIRS:%=%/distclean) distclean-common
  34. tags: $(SUBDIRS:%=%/tags) TAGS
  35. DISTFILES =
  36. distdir: distdir-common
  37. install: $(SUBDIRS:%=%/install)
  38. check:
  39. dep: $(SUBDIRS:%=%/dep)
  40. include $(SRCDIR)/common.mk