|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# To build with exerimental modules set the environment
|
|
Packit |
90a5c9 |
# variable WITH_EXPERIMENTAL=1
|
|
Packit |
90a5c9 |
# To build with the mod_ssl module set the environment
|
|
Packit |
90a5c9 |
# variable WITH_SSL=1
|
|
Packit |
90a5c9 |
# To build with the mod_lua module set the environment
|
|
Packit |
90a5c9 |
# variable WITH_LUA=1
|
|
Packit |
90a5c9 |
# To build with the mod_http2 module set the environment
|
|
Packit |
90a5c9 |
# variable WITH_HTTP2=1
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# Check if LDAP is enabled in APR-UTIL
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
include $(AP_WORK)/build/NWGNUenvironment.inc
|
|
Packit |
90a5c9 |
ifeq "$(wildcard $(APRUTIL)/include/apr_ldap.h)" "$(APRUTIL)/include/apr_ldap.h"
|
|
Packit |
90a5c9 |
WITH_LDAP = $(shell $(AWK) '/^\#define APR_HAS_LDAP /{print $$3}' $(APRUTIL)/include/apr_ldap.h)
|
|
Packit |
90a5c9 |
else
|
|
Packit |
90a5c9 |
WITH_LDAP = 1
|
|
Packit |
90a5c9 |
ifneq "$(MAKECMDGOALS)" "clean"
|
|
Packit |
90a5c9 |
ifneq "$(findstring clobber_,$(MAKECMDGOALS))" "clobber_"
|
|
Packit |
90a5c9 |
WITH_LDAP = 0
|
|
Packit |
90a5c9 |
endif
|
|
Packit |
90a5c9 |
endif
|
|
Packit |
90a5c9 |
endif
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
# If USE_STDSOCKETS is defined we always build mod_ssl
|
|
Packit |
90a5c9 |
ifdef USE_STDSOCKETS
|
|
Packit |
90a5c9 |
WITH_SSL = 1
|
|
Packit |
90a5c9 |
endif
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# Declare the sub-directories to be built here
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
SUBDIRS = \
|
|
Packit |
90a5c9 |
aaa \
|
|
Packit |
90a5c9 |
cache \
|
|
Packit |
90a5c9 |
cluster \
|
|
Packit |
90a5c9 |
core \
|
|
Packit |
90a5c9 |
dav/main \
|
|
Packit |
90a5c9 |
dav/fs \
|
|
Packit |
90a5c9 |
dav/lock \
|
|
Packit |
90a5c9 |
echo \
|
|
Packit |
90a5c9 |
examples \
|
|
Packit |
90a5c9 |
generators \
|
|
Packit |
90a5c9 |
loggers \
|
|
Packit |
90a5c9 |
mappers \
|
|
Packit |
90a5c9 |
metadata \
|
|
Packit |
90a5c9 |
proxy \
|
|
Packit |
90a5c9 |
filters \
|
|
Packit |
90a5c9 |
database \
|
|
Packit |
90a5c9 |
session \
|
|
Packit |
90a5c9 |
slotmem \
|
|
Packit |
90a5c9 |
$(EOLIST)
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
# If WITH_LDAP and LDAPSDK have been defined then build the util_ldap module
|
|
Packit |
90a5c9 |
ifeq "$(WITH_LDAP)" "1"
|
|
Packit |
90a5c9 |
ifneq "$(LDAPSDK)" ""
|
|
Packit |
90a5c9 |
SUBDIRS += ldap
|
|
Packit |
90a5c9 |
endif
|
|
Packit |
90a5c9 |
endif
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
# If WITH_SSL and OSSLSDK have been defined then build the mod_ssl module
|
|
Packit |
90a5c9 |
ifeq "$(WITH_SSL)" "1"
|
|
Packit |
90a5c9 |
ifneq "$(OSSLSDK)" ""
|
|
Packit |
90a5c9 |
SUBDIRS += ssl
|
|
Packit |
90a5c9 |
endif
|
|
Packit |
90a5c9 |
endif
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
# If WITH_LUA and LUASRC have been defined then build the mod_lua module
|
|
Packit |
90a5c9 |
ifeq "$(WITH_LUA)" "1"
|
|
Packit |
90a5c9 |
ifneq "$(LUASRC)" ""
|
|
Packit |
90a5c9 |
SUBDIRS += lua
|
|
Packit |
90a5c9 |
endif
|
|
Packit |
90a5c9 |
endif
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
# Allow the mod_http2 module to be built if WITH_HTTP2 is defined
|
|
Packit |
90a5c9 |
ifeq "$(WITH_HTTP2)" "1"
|
|
Packit |
90a5c9 |
ifneq "$(NGH2SRC)" ""
|
|
Packit |
90a5c9 |
SUBDIRS += http2
|
|
Packit |
90a5c9 |
endif
|
|
Packit |
90a5c9 |
endif
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
# Allow the experimental modules to be built if WITH_EXPERIMENTAL is defined
|
|
Packit |
90a5c9 |
ifeq "$(WITH_EXPERIMENTAL)" "1"
|
|
Packit |
90a5c9 |
SUBDIRS += experimental
|
|
Packit |
90a5c9 |
endif
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
# Allow the debugging modules to be built if WITH_DEBUGGING is defined
|
|
Packit |
90a5c9 |
ifeq "$(WITH_DEBUGGING)" "1"
|
|
Packit |
90a5c9 |
SUBDIRS += debugging
|
|
Packit |
90a5c9 |
endif
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
# Allow the test modules to be built if WITH_TEST is defined
|
|
Packit |
90a5c9 |
ifeq "$(WITH_TEST)" "1"
|
|
Packit |
90a5c9 |
SUBDIRS += test
|
|
Packit |
90a5c9 |
endif
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#If the mod_edir directory exists then build the mod_edir module
|
|
Packit |
90a5c9 |
ifeq "$(wildcard $(STDMOD)/mod_edir)" "$(STDMOD)/mod_edir"
|
|
Packit |
90a5c9 |
SUBDIRS += mod_edir
|
|
Packit |
90a5c9 |
endif
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# Get the 'head' of the build environment. This includes default targets and
|
|
Packit |
90a5c9 |
# paths to tools
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
include $(AP_WORK)/build/NWGNUhead.inc
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# build this level's files
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
ifeq "$(wildcard NWGNUmakefile.mak)" "NWGNUmakefile.mak"
|
|
Packit |
90a5c9 |
include NWGNUmakefile.mak
|
|
Packit |
90a5c9 |
endif
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
# You can use this target if all that is needed is to copy files to the
|
|
Packit |
90a5c9 |
# installation area
|
|
Packit |
90a5c9 |
#
|
|
Packit |
90a5c9 |
install :: nlms FORCE
|
|
Packit |
90a5c9 |
|