NWGNUmakefile revision 75fe25eba99372393d3fad0ee243300a9ecf0a08
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# To build with exerimental modules set the environment
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# variable WITH_EXPERIMENTAL=1
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# To build with the mod_ssl module set the environment
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# variable WITH_SSL=1
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# To build with the mod_lua module set the environment
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# variable WITH_LUA=1
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# Check if LDAP is enabled in APR-UTIL
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherinclude $(AP_WORK)/build/NWGNUenvironment.inc
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherifeq "$(wildcard $(APRUTIL)/include/apr_ldap.h)" "$(APRUTIL)/include/apr_ldap.h"
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen GallagherWITH_LDAP = $(shell $(AWK) '/^\#define APR_HAS_LDAP /{print $$3}' $(APRUTIL)/include/apr_ldap.h)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherelse
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherifeq "$(MAKECMDGOALS)" "clean"
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen GallagherWITH_LDAP = 1
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherelse
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen GallagherWITH_LDAP = 0
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherendif
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherendif
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# If USE_STDSOCKETS is defined we allways build mod_ssl
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherifdef USE_STDSOCKETS
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen GallagherWITH_SSL = 1
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherendif
e0404de84c31d2387bb244d018a5cac8d01f8b19Simo Sorce
e0404de84c31d2387bb244d018a5cac8d01f8b19Simo Sorce#
e0404de84c31d2387bb244d018a5cac8d01f8b19Simo Sorce# Declare the sub-directories to be built here
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen GallagherSUBDIRS = \
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher aaa \
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher apreq \
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher cache \
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher cluster \
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher dav/main \
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher dav/fs \
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher dav/lock \
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher echo \
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher examples \
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher generators \
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher loggers \
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher mappers \
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher metadata \
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher proxy \
e0404de84c31d2387bb244d018a5cac8d01f8b19Simo Sorce filters \
e0404de84c31d2387bb244d018a5cac8d01f8b19Simo Sorce database \
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher session \
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher slotmem \
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher $(EOLIST)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# If WITH_LDAP and LDAPSDK have been defined then build the util_ldap module
e0404de84c31d2387bb244d018a5cac8d01f8b19Simo Sorceifeq "$(WITH_LDAP)" "1"
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherifneq "$(LDAPSDK)" ""
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen GallagherSUBDIRS += ldap
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherendif
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherendif
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# If WITH_SSL and OSSLSDK have been defined then build the mod_ssl module
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherifeq "$(WITH_SSL)" "1"
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherifneq "$(OSSLSDK)" ""
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen GallagherSUBDIRS += ssl
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherendif
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherendif
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# If WITH_LUA and LUASRC have been defined then build the mod_lua module
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherifeq "$(WITH_LUA)" "1"
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherifneq "$(LUASRC)" ""
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen GallagherSUBDIRS += lua
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherendif
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherendif
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# Allow the experimental modules to be built if WITH_EXPERIMENTAL is defined
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherifeq "$(WITH_EXPERIMENTAL)" "1"
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen GallagherSUBDIRS += experimental
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherendif
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# Allow the debugging modules to be built if WITH_DEBUGGING is defined
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherifeq "$(WITH_DEBUGGING)" "1"
e0404de84c31d2387bb244d018a5cac8d01f8b19Simo SorceSUBDIRS += debugging
e0404de84c31d2387bb244d018a5cac8d01f8b19Simo Sorceendif
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# Allow the test modules to be built if WITH_TEST is defined
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherifeq "$(WITH_TEST)" "1"
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen GallagherSUBDIRS += test
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherendif
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#If the mod_edir directory exists then build the mod_edir module
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherifeq "$(wildcard $(STDMOD)/mod_edir)" "$(STDMOD)/mod_edir"
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen GallagherSUBDIRS += mod_edir
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherendif
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# Get the 'head' of the build environment. This includes default targets and
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# paths to tools
e0404de84c31d2387bb244d018a5cac8d01f8b19Simo Sorce#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherinclude $(AP_WORK)/build/NWGNUhead.inc
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# build this level's files
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherifeq "$(wildcard NWGNUmakefile.mak)" "NWGNUmakefile.mak"
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherinclude NWGNUmakefile.mak
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherendif
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# You can use this target if all that is needed is to copy files to the
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# installation area
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherinstall :: nlms FORCE
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher