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
6 # To build with the mod_lua module set the environment
8 # To build with the mod_http2 module set the environment
9 # variable WITH_HTTP2=1
11 # Check if LDAP is enabled in APR-UTIL
13 include $(AP_WORK)/build/NWGNUenvironment.inc
14 ifeq "$(wildcard $(APRUTIL)/include/apr_ldap.h)" "$(APRUTIL)/include/apr_ldap.h"
15 WITH_LDAP = $(shell $(AWK) '/^\#define APR_HAS_LDAP /{print $$3}' $(APRUTIL)/include/apr_ldap.h)
18 ifneq "$(MAKECMDGOALS)" "clean"
19 ifneq "$(findstring clobber_,$(MAKECMDGOALS))" "clobber_"
25 # If USE_STDSOCKETS is defined we always build mod_ssl
31 # Declare the sub-directories to be built here
56 # If WITH_LDAP and LDAPSDK have been defined then build the util_ldap module
57 ifeq "$(WITH_LDAP)" "1"
63 # If WITH_SSL and OSSLSDK have been defined then build the mod_ssl module
64 ifeq "$(WITH_SSL)" "1"
70 # If WITH_LUA and LUASRC have been defined then build the mod_lua module
71 ifeq "$(WITH_LUA)" "1"
77 # Allow the mod_http2 module to be built if WITH_HTTP2 is defined
78 ifeq "$(WITH_HTTP2)" "1"
84 # Allow the experimental modules to be built if WITH_EXPERIMENTAL is defined
85 ifeq "$(WITH_EXPERIMENTAL)" "1"
86 SUBDIRS += experimental
89 # Allow the debugging modules to be built if WITH_DEBUGGING is defined
90 ifeq "$(WITH_DEBUGGING)" "1"
94 # Allow the test modules to be built if WITH_TEST is defined
95 ifeq "$(WITH_TEST)" "1"
99 #If the mod_edir directory exists then build the mod_edir module
100 ifeq "$(wildcard $(STDMOD)/mod_edir)" "$(STDMOD)/mod_edir"
105 # Get the 'head' of the build environment. This includes default targets and
108 include $(AP_WORK)/build/NWGNUhead.inc
111 # build this level's files
113 ifeq "$(wildcard NWGNUmakefile.mak)" "NWGNUmakefile.mak"
114 include NWGNUmakefile.mak
118 # You can use this target if all that is needed is to copy files to the
121 install :: nlms FORCE