302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# Make sure all needed macro's are defined
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# Get the 'head' of the build environment if necessary. This includes default
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# targets and paths to tools
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesifndef EnvironmentDefined
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(AP_WORK)/build/NWGNUhead.inc
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesendif
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# These directories will be at the beginning of the include list, followed by
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# INCDIRS
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesXINCDIRS += \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(APR)/include \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(APRUTIL)/include \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(SRC)/include \
16b55a35cff91315d261d1baa776138af465c4e4fuankg $(NWOS) \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes $(EOLIST)
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# These flags will come after CFLAGS
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesXCFLAGS += \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes $(EOLIST)
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# These defines will come after DEFINES
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesXDEFINES += \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes $(EOLIST)
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
9558e9fdb620dd6f42ca93beac6c3ab734086706bnicholes#
9558e9fdb620dd6f42ca93beac6c3ab734086706bnicholes#LDAP client requires the use of Winsock
9558e9fdb620dd6f42ca93beac6c3ab734086706bnicholes#
9558e9fdb620dd6f42ca93beac6c3ab734086706bnicholesifdef USE_STDSOCKETS
9558e9fdb620dd6f42ca93beac6c3ab734086706bnicholesXDEFINES += -DUSE_WINSOCK \
9558e9fdb620dd6f42ca93beac6c3ab734086706bnicholes $(EOLIST)
9558e9fdb620dd6f42ca93beac6c3ab734086706bnicholesendif
9558e9fdb620dd6f42ca93beac6c3ab734086706bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# These flags will be added to the link.opt file
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesXLFLAGS += \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes $(EOLIST)
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# These values will be appended to the correct variables based on the value of
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# RELEASE
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesifeq "$(RELEASE)" "debug"
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesXINCDIRS += \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes $(EOLIST)
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesXCFLAGS += \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes $(EOLIST)
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesXDEFINES += \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes $(EOLIST)
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesXLFLAGS += \
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg $(EOLIST)
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesendif
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesifeq "$(RELEASE)" "noopt"
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesXINCDIRS += \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes $(EOLIST)
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesXCFLAGS += \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes $(EOLIST)
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesXDEFINES += \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes $(EOLIST)
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesXLFLAGS += \
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg $(EOLIST)
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesendif
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesifeq "$(RELEASE)" "release"
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesXINCDIRS += \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes $(EOLIST)
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesXCFLAGS += \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes $(EOLIST)
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesXDEFINES += \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes $(EOLIST)
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesXLFLAGS += \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes $(EOLIST)
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesendif
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# These are used by the link target if an NLM is being generated
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# This is used by the link 'name' directive to name the nlm. If left blank
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# TARGET_nlm (see below) will be used.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_NAME = authnzldap
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# This is used by the link '-desc ' directive.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# If left blank, NLM_NAME will be used.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesNLM_DESCRIPTION = Apache $(VERSION_STR) LDAP Authentication Module
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# This is used by the '-threadname' directive. If left blank,
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# NLM_NAME Thread will be used.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesNLM_THREAD_NAME = AuthnzLDAP Module
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# If this is specified, it will override VERSION value in
0662ed52e814f8f08ef0e09956413a792584eddffuankg# $(AP_WORK)/build/NWGNUenvironment.inc
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_VERSION =
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# If this is specified, it will override the default of 64K
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesNLM_STACK_SIZE = 8192
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# If this is specified it will be used by the link '-entry' directive
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_ENTRY_SYM =
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# If this is specified it will be used by the link '-exit' directive
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_EXIT_SYM =
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# If this is specified it will be used by the link '-check' directive
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesNLM_CHECK_SYM =
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# If these are specified it will be used by the link '-flags' directive
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_FLAGS =
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# If this is specified it will be linked in with the XDCData option in the def
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# by setting APACHE_UNIPROC in the environment
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgXDCDATA =
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# If there is an NLM target, put it here
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesTARGET_nlm = \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes $(OBJDIR)/authnzldap.nlm \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes $(EOLIST)
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# If there is an LIB target, put it here
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesTARGET_lib = \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes $(EOLIST)
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# These are the OBJ files needed to create the NLM target above.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# Paths must all use the '/' character
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesFILES_nlm_objs = \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes $(OBJDIR)/mod_authnz_ldap.o \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes $(EOLIST)
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# These are the LIB files needed to create the NLM target above.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# These will be added as a library command in the link.opt file.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesFILES_nlm_libs = \
cf7ca2f9eaa6523fefcccba4287b91637391fb51fuankg $(PRELUDE) \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes $(EOLIST)
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# These are the modules that the above NLM target depends on to load.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# These will be added as a module command in the link.opt file.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesFILES_nlm_modules = \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes aprlib \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes libc \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes lldapsdk \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes $(EOLIST)
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# If the nlm has a msg file, put it's path here
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesFILE_nlm_msg =
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# If the nlm has a hlp file put it's path here
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesFILE_nlm_hlp =
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# If this is specified, it will override $(NWOS)\copyright.txt.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesFILE_nlm_copyright =
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# Any additional imports go here
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesFILES_nlm_Ximports = \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes util_ldap_connection_find \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes util_ldap_connection_close \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes util_ldap_cache_checkuserid \
c23e501e3dfa4414a310ae311073bb64649c63eebnicholes util_ldap_cache_getuserdn \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes util_ldap_cache_compare \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes util_ldap_cache_comparedn \
8ffac2c334103c0336602aaede650cb578611151fuankg @aprlib.imp \
8ffac2c334103c0336602aaede650cb578611151fuankg @httpd.imp \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes @libc.imp \
8ffac2c334103c0336602aaede650cb578611151fuankg @lldapsdk.imp \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes $(EOLIST)
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# Any symbols exported to here
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesFILES_nlm_exports = \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes authnz_ldap_module \
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes $(EOLIST)
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# These are the OBJ files needed to create the LIB target above.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# Paths must all use the '/' character
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesFILES_lib_objs = \
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg $(EOLIST)
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# implement targets and dependancies (leave this section alone)
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholeslibs :: $(OBJDIR) $(TARGET_lib)
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesnlms :: libs $(TARGET_nlm)
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# Updated this target to create necessary directories and copy files to the
0662ed52e814f8f08ef0e09956413a792584eddffuankg# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholesinstall :: nlms FORCE
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# Any specialized rules here
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# Include the 'tail' makefile that has targets that depend on variables defined
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes# in this makefile
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes#
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(APBUILD)/NWGNUtail.inc
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg