NWGNUmakefile revision 50c2f778bebf022681c80f04b08a07240672a489
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsync# To build with exerimental modules set the environment
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsync# variable WITH_EXPERIMENTAL=1
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsync# To build with the mod_ssl module set the environment
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsync# variable WITH_SSL=1
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsync# To build with the mod_lua module set the environment
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsync# variable WITH_LUA=1
ad6416604f921c978764761778bfdcd1f4984b5avboxsync# Check if LDAP is enabled in APR-UTIL
ad6416604f921c978764761778bfdcd1f4984b5avboxsyncifeq "$(wildcard $(APRUTIL)/include/apr_ldap.h)" "$(APRUTIL)/include/apr_ldap.h"
ad6416604f921c978764761778bfdcd1f4984b5avboxsyncWITH_LDAP = $(shell $(AWK) '/^\#define APR_HAS_LDAP /{print $$3}' $(APRUTIL)/include/apr_ldap.h)
ad6416604f921c978764761778bfdcd1f4984b5avboxsyncWITH_LDAP = 1
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsyncifneq "$(MAKECMDGOALS)" "clean"
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsyncifneq "$(findstring clobber_,$(MAKECMDGOALS))" "clobber_"
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsyncWITH_LDAP = 0
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsync# If USE_STDSOCKETS is defined we allways build mod_ssl
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsyncifdef USE_STDSOCKETS
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsyncWITH_SSL = 1
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsync# Declare the sub-directories to be built here
d1cee674b4c5856cd9cdf7b6dfc596b3f11580cevboxsync generators \
9c311bd1c2e6024ec33fc61f9aeafe1dff56c631vboxsync# If WITH_LDAP and LDAPSDK have been defined then build the util_ldap module
9c311bd1c2e6024ec33fc61f9aeafe1dff56c631vboxsyncifeq "$(WITH_LDAP)" "1"
9c311bd1c2e6024ec33fc61f9aeafe1dff56c631vboxsyncifneq "$(LDAPSDK)" ""
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsyncSUBDIRS += ldap
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsync# If WITH_SSL and OSSLSDK have been defined then build the mod_ssl module
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsyncifeq "$(WITH_SSL)" "1"
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsyncifneq "$(OSSLSDK)" ""
d1cee674b4c5856cd9cdf7b6dfc596b3f11580cevboxsyncSUBDIRS += ssl
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsync# If WITH_LUA and LUASRC have been defined then build the mod_lua module
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsyncifeq "$(WITH_LUA)" "1"
d1cee674b4c5856cd9cdf7b6dfc596b3f11580cevboxsyncifneq "$(LUASRC)" ""
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsyncSUBDIRS += lua
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsync# Allow the experimental modules to be built if WITH_EXPERIMENTAL is defined
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsyncifeq "$(WITH_EXPERIMENTAL)" "1"
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsyncSUBDIRS += experimental
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsync# Allow the debugging modules to be built if WITH_DEBUGGING is defined
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsyncifeq "$(WITH_DEBUGGING)" "1"
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsyncSUBDIRS += debugging
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsync# Allow the test modules to be built if WITH_TEST is defined
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsyncifeq "$(WITH_TEST)" "1"
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsyncSUBDIRS += test
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsync#If the mod_edir directory exists then build the mod_edir module
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsyncifeq "$(wildcard $(STDMOD)/mod_edir)" "$(STDMOD)/mod_edir"
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsyncSUBDIRS += mod_edir
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsync# Get the 'head' of the build environment. This includes default targets and
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsync# paths to tools
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsyncinclude $(AP_WORK)/build/NWGNUhead.inc
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsync# build this level's files
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsyncifeq "$(wildcard NWGNUmakefile.mak)" "NWGNUmakefile.mak"
9c311bd1c2e6024ec33fc61f9aeafe1dff56c631vboxsync# You can use this target if all that is needed is to copy files to the
c0d22c23d3289cef0332f4d61ab15df48ed34979vboxsync# installation area
681bb0bf6e9ab5a590d8afcdf37634e2fc29f595vboxsyncinstall :: nlms FORCE