1ifeq ($(SRCDIR),) 2 updir = $(shell echo $(dir $(1)) | sed 's/.$$//') 3 SRCDIR := $(call updir,$(CURDIR)) 4 BLDDIR := $(SRCDIR) 5endif 6SUBDIR := lib 7 8include $(BLDDIR)/config.mk 9 10# Build up SUBDIRS: 11SUBDIRS = 12SUBDIRS += util libutil 13ifeq ($(ENABLE_CPLUSPLUS),yes) 14 SUBDIRS += libutil++ 15endif 16ifeq ($(ENABLE_ABYSS_SERVER),yes) 17 SUBDIRS += abyss 18 ifeq ($(ENABLE_CPLUSPLUS),yes) 19 SUBDIRS += abyss++ 20 endif 21endif 22ifeq ($(MUST_BUILD_WININET_CLIENT),yes) 23 SUBDIRS += wininet_transport 24endif 25ifeq ($(MUST_BUILD_CURL_CLIENT),yes) 26 SUBDIRS += curl_transport 27endif 28ifeq ($(MUST_BUILD_LIBWWW_CLIENT),yes) 29 SUBDIRS += libwww_transport 30endif 31ifneq ($(ENABLE_LIBXML2_BACKEND),yes) 32 SUBDIRS += expat 33endif 34 35ifeq ($(HAVE_OPENSSL),Y) 36 SUBDIRS += openssl 37endif 38 39default: all 40 41.PHONY: all clean distclean tags distdir install check dep 42 43all: $(SUBDIRS:%=%/all) 44 45# Extra dependencies to make parallel make work in spite of all the submakes 46# (See top level make file for details) 47abyss/all curl_transport/all: $(BLDDIR)/version.h 48abyss++/all: abyss/all 49abyss/all expat/all libutil++/all: libutil/all 50 51clean: $(SUBDIRS:%=%/clean) clean-common 52 53distclean: $(SUBDIRS:%=%/distclean) distclean-common 54 55tags: $(SUBDIRS:%=%/tags) TAGS 56 57DISTFILES = 58 59distdir: distdir-common 60 61install: $(SUBDIRS:%=%/install) 62 63uninstall: $(SUBDIRS:%=%/uninstall) 64 65check: 66 67dep: $(SUBDIRS:%=%/dep) 68 69include $(SRCDIR)/common.mk 70 71 72 73