NWGNUmakefile revision 33108395770e5cfbd8f9fc56886980a2dc27de58
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# Check if LDAP is enabled in APR-UTIL
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)
75fe25eba99372393d3fad0ee243300a9ecf0a08fuankgifeq "$(MAKECMDGOALS)" "clean"
75fe25eba99372393d3fad0ee243300a9ecf0a08fuankgWITH_LDAP = 1
99e93b940fa004264fbf50595399b5fbfbd91537fuankgWITH_LDAP = 0
cf6ce969525bc8478dee20737ef3b884dc46c43afuankg# If USE_STDSOCKETS is defined we allways build mod_ssl
cf6ce969525bc8478dee20737ef3b884dc46c43afuankgifdef USE_STDSOCKETS
99e93b940fa004264fbf50595399b5fbfbd91537fuankgWITH_SSL = 1
99e93b940fa004264fbf50595399b5fbfbd91537fuankg# Declare the sub-directories to be built here
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes generators \
99e93b940fa004264fbf50595399b5fbfbd91537fuankg# If WITH_LDAP and LDAPSDK have been defined then build the util_ldap module
99e93b940fa004264fbf50595399b5fbfbd91537fuankgifeq "$(WITH_LDAP)" "1"
b0827492bc89f04870db952fa9b940e76c975489bnicholesifneq "$(LDAPSDK)" ""
99e93b940fa004264fbf50595399b5fbfbd91537fuankgSUBDIRS += ldap
99e93b940fa004264fbf50595399b5fbfbd91537fuankg# If WITH_SSL and OSSLSDK have been defined then build the mod_ssl module
99e93b940fa004264fbf50595399b5fbfbd91537fuankgifeq "$(WITH_SSL)" "1"
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesifneq "$(OSSLSDK)" ""
99e93b940fa004264fbf50595399b5fbfbd91537fuankgSUBDIRS += ssl
99e93b940fa004264fbf50595399b5fbfbd91537fuankg# If WITH_LUA and LUASRC have been defined then build the mod_lua module
99e93b940fa004264fbf50595399b5fbfbd91537fuankgifeq "$(WITH_LUA)" "1"
e0513b8c4b6594e7d63f386b7889e9c3cae43dd6fuankgifneq "$(LUASRC)" ""
99e93b940fa004264fbf50595399b5fbfbd91537fuankgSUBDIRS += lua
99e93b940fa004264fbf50595399b5fbfbd91537fuankg# Allow the experimental modules to be built if WITH_EXPERIMENTAL is defined
99e93b940fa004264fbf50595399b5fbfbd91537fuankgifeq "$(WITH_EXPERIMENTAL)" "1"
99e93b940fa004264fbf50595399b5fbfbd91537fuankgSUBDIRS += experimental
99e93b940fa004264fbf50595399b5fbfbd91537fuankg# Allow the debugging modules to be built if WITH_DEBUGGING is defined
99e93b940fa004264fbf50595399b5fbfbd91537fuankgifeq "$(WITH_DEBUGGING)" "1"
99e93b940fa004264fbf50595399b5fbfbd91537fuankgSUBDIRS += debugging
99e93b940fa004264fbf50595399b5fbfbd91537fuankg# Allow the test modules to be built if WITH_TEST is defined
99e93b940fa004264fbf50595399b5fbfbd91537fuankgifeq "$(WITH_TEST)" "1"
99e93b940fa004264fbf50595399b5fbfbd91537fuankgSUBDIRS += test
5d1d3e66e568daceb3277ca49475a4f469baf426fuankg#If the mod_edir directory exists then build the mod_edir module
e097a47d2f32eaf74a6130e6fadfa3e24b8cb2effuankgifeq "$(wildcard $(STDMOD)/mod_edir)" "$(STDMOD)/mod_edir"
99e93b940fa004264fbf50595399b5fbfbd91537fuankgSUBDIRS += mod_edir
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Get the 'head' of the build environment. This includes default targets and
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# paths to tools
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(AP_WORK)/build/NWGNUhead.inc
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# build this level's files
cf6ce969525bc8478dee20737ef3b884dc46c43afuankgifeq "$(wildcard NWGNUmakefile.mak)" "NWGNUmakefile.mak"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# You can use this target if all that is needed is to copy files to the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# installation area
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinstall :: nlms FORCE