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
55 # If WITH_LDAP and LDAPSDK have been defined then build the util_ldap module
56 ifeq "$(WITH_LDAP)" "1"
62 # If WITH_SSL and OSSLSDK have been defined then build the mod_ssl module
63 ifeq "$(WITH_SSL)" "1"
69 # If WITH_LUA and LUASRC have been defined then build the mod_lua module
70 ifeq "$(WITH_LUA)" "1"
76 # Allow the mod_http2 module to be built if WITH_HTTP2 is defined
77 ifeq "$(WITH_HTTP2)" "1"
83 # Allow the experimental modules to be built if WITH_EXPERIMENTAL is defined
84 ifeq "$(WITH_EXPERIMENTAL)" "1"
85 SUBDIRS += experimental
88 # Allow the debugging modules to be built if WITH_DEBUGGING is defined
89 ifeq "$(WITH_DEBUGGING)" "1"
93 # Allow the test modules to be built if WITH_TEST is defined
94 ifeq "$(WITH_TEST)" "1"
98 #If the mod_edir directory exists then build the mod_edir module
99 ifeq "$(wildcard $(STDMOD)/mod_edir)" "$(STDMOD)/mod_edir"
104 # Get the 'head' of the build environment. This includes default targets and
107 include $(AP_WORK)/build/NWGNUhead.inc
110 # build this level's files
112 ifeq "$(wildcard NWGNUmakefile.mak)" "NWGNUmakefile.mak"
113 include NWGNUmakefile.mak
117 # You can use this target if all that is needed is to copy files to the
120 install :: nlms FORCE