bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
cf6ce969525bc8478dee20737ef3b884dc46c43afuankg# To build with exerimental modules set the environment
99e93b940fa004264fbf50595399b5fbfbd91537fuankg# variable WITH_EXPERIMENTAL=1
cf6ce969525bc8478dee20737ef3b884dc46c43afuankg# To build with the mod_ssl module set the environment
99e93b940fa004264fbf50595399b5fbfbd91537fuankg# variable WITH_SSL=1
99e93b940fa004264fbf50595399b5fbfbd91537fuankg# To build with the mod_lua module set the environment
99e93b940fa004264fbf50595399b5fbfbd91537fuankg# variable WITH_LUA=1
99e93b940fa004264fbf50595399b5fbfbd91537fuankg
99e93b940fa004264fbf50595399b5fbfbd91537fuankg#
99e93b940fa004264fbf50595399b5fbfbd91537fuankg# Check if LDAP is enabled in APR-UTIL
99e93b940fa004264fbf50595399b5fbfbd91537fuankg#
99e93b940fa004264fbf50595399b5fbfbd91537fuankginclude $(AP_WORK)/build/NWGNUenvironment.inc
99e93b940fa004264fbf50595399b5fbfbd91537fuankgifeq "$(wildcard $(APRUTIL)/include/apr_ldap.h)" "$(APRUTIL)/include/apr_ldap.h"
99e93b940fa004264fbf50595399b5fbfbd91537fuankgWITH_LDAP = $(shell $(AWK) '/^\#define APR_HAS_LDAP /{print $$3}' $(APRUTIL)/include/apr_ldap.h)
99e93b940fa004264fbf50595399b5fbfbd91537fuankgelse
75fe25eba99372393d3fad0ee243300a9ecf0a08fuankgWITH_LDAP = 1
50c2f778bebf022681c80f04b08a07240672a489fuankgifneq "$(MAKECMDGOALS)" "clean"
50c2f778bebf022681c80f04b08a07240672a489fuankgifneq "$(findstring clobber_,$(MAKECMDGOALS))" "clobber_"
99e93b940fa004264fbf50595399b5fbfbd91537fuankgWITH_LDAP = 0
99e93b940fa004264fbf50595399b5fbfbd91537fuankgendif
75fe25eba99372393d3fad0ee243300a9ecf0a08fuankgendif
50c2f778bebf022681c80f04b08a07240672a489fuankgendif
cf6ce969525bc8478dee20737ef3b884dc46c43afuankg
cf6ce969525bc8478dee20737ef3b884dc46c43afuankg# If USE_STDSOCKETS is defined we allways build mod_ssl
cf6ce969525bc8478dee20737ef3b884dc46c43afuankgifdef USE_STDSOCKETS
99e93b940fa004264fbf50595399b5fbfbd91537fuankgWITH_SSL = 1
cf6ce969525bc8478dee20737ef3b884dc46c43afuankgendif
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
99e93b940fa004264fbf50595399b5fbfbd91537fuankg#
99e93b940fa004264fbf50595399b5fbfbd91537fuankg# Declare the sub-directories to be built here
99e93b940fa004264fbf50595399b5fbfbd91537fuankg#
99e93b940fa004264fbf50595399b5fbfbd91537fuankg
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesSUBDIRS = \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes aaa \
d5ef50bb5810983012435957be0680bde34d1e44fuankg apreq \
8b96b30e820f9bf092944b15cf1d696a6c0d7f1abnicholes cache \
3b93c1730672ca38057df4177b8384875ab5973fbnicholes cluster \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg core \
5d1d3e66e568daceb3277ca49475a4f469baf426fuankg dav/main \
5d1d3e66e568daceb3277ca49475a4f469baf426fuankg dav/fs \
5d1d3e66e568daceb3277ca49475a4f469baf426fuankg dav/lock \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes echo \
bbfffb4303e53b4700351e33848d86ac808fdccbbnicholes examples \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes generators \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes loggers \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes mappers \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes metadata \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes proxy \
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes filters \
574a3e83dacc1e5bd4390203a7f7df038bccf65dbnicholes database \
89f81be0fc69c0db7e6afa2b69477ae4fcb4e631fuankg session \
789323e78ca589d6e00e8f264bf2504922aa9f29fuankg slotmem \
cf6ce969525bc8478dee20737ef3b884dc46c43afuankg $(EOLIST)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
99e93b940fa004264fbf50595399b5fbfbd91537fuankg# If WITH_LDAP and LDAPSDK have been defined then build the util_ldap module
99e93b940fa004264fbf50595399b5fbfbd91537fuankgifeq "$(WITH_LDAP)" "1"
b0827492bc89f04870db952fa9b940e76c975489bnicholesifneq "$(LDAPSDK)" ""
99e93b940fa004264fbf50595399b5fbfbd91537fuankgSUBDIRS += ldap
99e93b940fa004264fbf50595399b5fbfbd91537fuankgendif
b0827492bc89f04870db952fa9b940e76c975489bnicholesendif
b0827492bc89f04870db952fa9b940e76c975489bnicholes
99e93b940fa004264fbf50595399b5fbfbd91537fuankg# If WITH_SSL and OSSLSDK have been defined then build the mod_ssl module
99e93b940fa004264fbf50595399b5fbfbd91537fuankgifeq "$(WITH_SSL)" "1"
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesifneq "$(OSSLSDK)" ""
99e93b940fa004264fbf50595399b5fbfbd91537fuankgSUBDIRS += ssl
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesendif
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesendif
b0827492bc89f04870db952fa9b940e76c975489bnicholes
99e93b940fa004264fbf50595399b5fbfbd91537fuankg# If WITH_LUA and LUASRC have been defined then build the mod_lua module
99e93b940fa004264fbf50595399b5fbfbd91537fuankgifeq "$(WITH_LUA)" "1"
e0513b8c4b6594e7d63f386b7889e9c3cae43dd6fuankgifneq "$(LUASRC)" ""
99e93b940fa004264fbf50595399b5fbfbd91537fuankgSUBDIRS += lua
e0513b8c4b6594e7d63f386b7889e9c3cae43dd6fuankgendif
e0513b8c4b6594e7d63f386b7889e9c3cae43dd6fuankgendif
e0513b8c4b6594e7d63f386b7889e9c3cae43dd6fuankg
99e93b940fa004264fbf50595399b5fbfbd91537fuankg# Allow the experimental modules to be built if WITH_EXPERIMENTAL is defined
99e93b940fa004264fbf50595399b5fbfbd91537fuankgifeq "$(WITH_EXPERIMENTAL)" "1"
99e93b940fa004264fbf50595399b5fbfbd91537fuankgSUBDIRS += experimental
58608d1d2acd188b5f04e256618a341416e086cdbnicholesendif
58608d1d2acd188b5f04e256618a341416e086cdbnicholes
99e93b940fa004264fbf50595399b5fbfbd91537fuankg# Allow the debugging modules to be built if WITH_DEBUGGING is defined
99e93b940fa004264fbf50595399b5fbfbd91537fuankgifeq "$(WITH_DEBUGGING)" "1"
99e93b940fa004264fbf50595399b5fbfbd91537fuankgSUBDIRS += debugging
28870faaa28b18fbd520eae339925a0334521d5fbnicholesendif
28870faaa28b18fbd520eae339925a0334521d5fbnicholes
99e93b940fa004264fbf50595399b5fbfbd91537fuankg# Allow the test modules to be built if WITH_TEST is defined
99e93b940fa004264fbf50595399b5fbfbd91537fuankgifeq "$(WITH_TEST)" "1"
99e93b940fa004264fbf50595399b5fbfbd91537fuankgSUBDIRS += test
1e9b595f5397e65851da9dd31f654428492db015fuankgendif
1e9b595f5397e65851da9dd31f654428492db015fuankg
5d1d3e66e568daceb3277ca49475a4f469baf426fuankg#If the mod_edir directory exists then build the mod_edir module
e097a47d2f32eaf74a6130e6fadfa3e24b8cb2effuankgifeq "$(wildcard $(STDMOD)/mod_edir)" "$(STDMOD)/mod_edir"
99e93b940fa004264fbf50595399b5fbfbd91537fuankgSUBDIRS += mod_edir
5d1d3e66e568daceb3277ca49475a4f469baf426fuankgendif
5d1d3e66e568daceb3277ca49475a4f469baf426fuankg
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Get the 'head' of the build environment. This includes default targets and
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# paths to tools
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(AP_WORK)/build/NWGNUhead.inc
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# build this level's files
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
cf6ce969525bc8478dee20737ef3b884dc46c43afuankgifeq "$(wildcard NWGNUmakefile.mak)" "NWGNUmakefile.mak"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude NWGNUmakefile.mak
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesendif
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# You can use this target if all that is needed is to copy files to the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# installation area
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinstall :: nlms FORCE
cf6ce969525bc8478dee20737ef3b884dc46c43afuankg