1# 2# To build with exerimental modules set the environment 3# variable WITH_EXPERIMENTAL=1 4# To build with the mod_ssl module set the environment 5# variable WITH_SSL=1 6# To build with the mod_lua module set the environment 7# variable WITH_LUA=1 8 9# 10# Check if LDAP is enabled in APR-UTIL 11# 12include $(AP_WORK)/build/NWGNUenvironment.inc 13ifeq "$(wildcard $(APRUTIL)/include/apr_ldap.h)" "$(APRUTIL)/include/apr_ldap.h" 14WITH_LDAP = $(shell $(AWK) '/^\#define APR_HAS_LDAP /{print $$3}' $(APRUTIL)/include/apr_ldap.h) 15else 16WITH_LDAP = 1 17ifneq "$(MAKECMDGOALS)" "clean" 18ifneq "$(findstring clobber_,$(MAKECMDGOALS))" "clobber_" 19WITH_LDAP = 0 20endif 21endif 22endif 23 24# If USE_STDSOCKETS is defined we allways build mod_ssl 25ifdef USE_STDSOCKETS 26WITH_SSL = 1 27endif 28 29# 30# Declare the sub-directories to be built here 31# 32 33SUBDIRS = \ 34 aaa \ 35 cache \ 36 cluster \ 37 core \ 38 dav/main \ 39 dav/fs \ 40 dav/lock \ 41 echo \ 42 examples \ 43 generators \ 44 loggers \ 45 mappers \ 46 metadata \ 47 proxy \ 48 filters \ 49 database \ 50 session \ 51 slotmem \ 52 $(EOLIST) 53 54# If WITH_LDAP and LDAPSDK have been defined then build the util_ldap module 55ifeq "$(WITH_LDAP)" "1" 56ifneq "$(LDAPSDK)" "" 57SUBDIRS += ldap 58endif 59endif 60 61# If WITH_SSL and OSSLSDK have been defined then build the mod_ssl module 62ifeq "$(WITH_SSL)" "1" 63ifneq "$(OSSLSDK)" "" 64SUBDIRS += ssl 65endif 66endif 67 68# If WITH_LUA and LUASRC have been defined then build the mod_lua module 69ifeq "$(WITH_LUA)" "1" 70ifneq "$(LUASRC)" "" 71SUBDIRS += lua 72endif 73endif 74 75# Allow the experimental modules to be built if WITH_EXPERIMENTAL is defined 76ifeq "$(WITH_EXPERIMENTAL)" "1" 77SUBDIRS += experimental 78endif 79 80# Allow the debugging modules to be built if WITH_DEBUGGING is defined 81ifeq "$(WITH_DEBUGGING)" "1" 82SUBDIRS += debugging 83endif 84 85# Allow the test modules to be built if WITH_TEST is defined 86ifeq "$(WITH_TEST)" "1" 87SUBDIRS += test 88endif 89 90#If the mod_edir directory exists then build the mod_edir module 91ifeq "$(wildcard $(STDMOD)/mod_edir)" "$(STDMOD)/mod_edir" 92SUBDIRS += mod_edir 93endif 94 95# 96# Get the 'head' of the build environment. This includes default targets and 97# paths to tools 98# 99include $(AP_WORK)/build/NWGNUhead.inc 100 101# 102# build this level's files 103 104ifeq "$(wildcard NWGNUmakefile.mak)" "NWGNUmakefile.mak" 105include NWGNUmakefile.mak 106endif 107 108# 109# You can use this target if all that is needed is to copy files to the 110# installation area 111# 112install :: nlms FORCE 113 114