2008-05-23 16:56:24 -04:00
|
|
|
ifeq ($(SRCDIR),)
|
|
|
|
updir = $(shell echo $(dir $(1)) | sed 's/.$$//')
|
|
|
|
SRCDIR := $(call updir,$(CURDIR))
|
|
|
|
BLDDIR := $(SRCDIR)
|
2006-12-20 22:57:49 -05:00
|
|
|
endif
|
2008-05-23 16:56:24 -04:00
|
|
|
SUBDIR := lib
|
2006-12-20 22:57:49 -05:00
|
|
|
|
2008-05-23 16:56:24 -04:00
|
|
|
include $(BLDDIR)/config.mk
|
2006-12-20 22:57:49 -05:00
|
|
|
|
2008-05-23 16:56:24 -04:00
|
|
|
# Build up SUBDIRS:
|
|
|
|
SUBDIRS =
|
|
|
|
SUBDIRS += util libutil
|
2006-12-20 22:57:49 -05:00
|
|
|
ifeq ($(ENABLE_ABYSS_SERVER),yes)
|
|
|
|
SUBDIRS += abyss
|
|
|
|
endif
|
|
|
|
ifeq ($(MUST_BUILD_WININET_CLIENT),yes)
|
|
|
|
SUBDIRS += wininet_transport
|
|
|
|
endif
|
|
|
|
ifeq ($(MUST_BUILD_CURL_CLIENT),yes)
|
|
|
|
SUBDIRS += curl_transport
|
|
|
|
endif
|
|
|
|
ifeq ($(MUST_BUILD_LIBWWW_CLIENT),yes)
|
|
|
|
SUBDIRS += libwww_transport
|
|
|
|
endif
|
2008-05-23 16:56:24 -04:00
|
|
|
ifneq ($(ENABLE_LIBXML2_BACKEND),yes)
|
2006-12-20 22:57:49 -05:00
|
|
|
SUBDIRS += expat
|
|
|
|
endif
|
|
|
|
|
|
|
|
default: all
|
|
|
|
|
2008-05-23 16:56:24 -04:00
|
|
|
.PHONY: all clean distclean tags distdir install check dep
|
|
|
|
|
2006-12-20 22:57:49 -05:00
|
|
|
all: $(SUBDIRS:%=%/all)
|
|
|
|
|
2008-05-23 16:56:24 -04:00
|
|
|
# Extra dependencies to make parallel make work in spite of all the submakes
|
|
|
|
# (See top level make file for details)
|
|
|
|
abyss/all curl_transport/all: $(BLDDIR)/version.h
|
|
|
|
|
2006-12-20 22:57:49 -05:00
|
|
|
clean: $(SUBDIRS:%=%/clean) clean-common
|
|
|
|
|
|
|
|
distclean: $(SUBDIRS:%=%/distclean) distclean-common
|
|
|
|
|
|
|
|
tags: $(SUBDIRS:%=%/tags) TAGS
|
|
|
|
|
|
|
|
DISTFILES =
|
|
|
|
|
|
|
|
distdir: distdir-common
|
|
|
|
|
|
|
|
install: $(SUBDIRS:%=%/install)
|
|
|
|
|
2008-05-23 16:56:24 -04:00
|
|
|
check:
|
|
|
|
|
2006-12-20 22:57:49 -05:00
|
|
|
dep: $(SUBDIRS:%=%/dep)
|
|
|
|
|
2008-05-23 16:56:24 -04:00
|
|
|
include $(SRCDIR)/common.mk
|
2006-12-20 22:57:49 -05:00
|
|
|
|
|
|
|
|
|
|
|
|