NWGNUmakefile revision d5b12fe8ae917e654a33247fd4e59dc9e75170ae
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# Make sure all needed macro's are defined
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# Get the 'head' of the build environment if necessary. This includes default
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# targets and paths to tools
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesifndef EnvironmentDefined
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesinclude $(AP_WORK)\build\NWGNUhead.inc
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# These directories will be at the beginning of the include list, followed by
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesXINCDIRS += \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes $(AP_WORK)/include \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes $(LDAPSDK)/inc \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# These flags will come after CFLAGS
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# These defines will come after DEFINES
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesXDEFINES += \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# These flags will be added to the link.opt file
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# These values will be appended to the correct variables based on the value of
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesifeq "$(RELEASE)" "debug"
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesXINCDIRS += \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesXDEFINES += \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesifeq "$(RELEASE)" "noopt"
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesXINCDIRS += \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesXDEFINES += \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesifeq "$(RELEASE)" "release"
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesXINCDIRS += \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesXDEFINES += \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# These are used by the link target if an NLM is being generated
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# This is used by the link 'name' directive to name the nlm. If left blank
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# TARGET_nlm (see below) will be used.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesNLM_NAME = utilldap
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# This is used by the link '-desc ' directive.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# If left blank, NLM_NAME will be used.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesNLM_DESCRIPTION = Apache $(VERSION_STR) LDAP Authentication Module
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# This is used by the '-threadname' directive. If left blank,
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# NLM_NAME Thread will be used.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesNLM_THREAD_NAME = UtilLDAP Module
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# If this is specified, it will override VERSION value in
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# $(AP_WORK)\build\NWGNUenvironment.inc
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesNLM_VERSION =
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# If this is specified, it will override the default of 64K
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesNLM_STACK_SIZE = 8192
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# If this is specified it will be used by the link '-entry' directive
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesNLM_ENTRY_SYM = _LibCPrelude
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# If this is specified it will be used by the link '-exit' directive
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesNLM_EXIT_SYM = _LibCPostlude
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# If this is specified it will be used by the link '-check' directive
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesNLM_CHECK_SYM =
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# If these are specified it will be used by the link '-flags' directive
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# If this is specified it will be linked in with the XDCData option in the def
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# by setting APACHE_UNIPROC in the environment
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# If there is an NLM target, put it here
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesTARGET_nlm = \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# If there is an LIB target, put it here
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesTARGET_lib = \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# These are the OBJ files needed to create the NLM target above.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# Paths must all use the '/' character
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesFILES_nlm_objs = \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# These are the LIB files needed to create the NLM target above.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# These will be added as a library command in the link.opt file.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesFILES_nlm_libs = \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# These are the modules that the above NLM target depends on to load.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# These will be added as a module command in the link.opt file.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesFILES_nlm_modules = \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# If the nlm has a msg file, put it's path here
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesFILE_nlm_msg =
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# If the nlm has a hlp file put it's path here
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesFILE_nlm_hlp =
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# If this is specified, it will override $(NWOS)\copyright.txt.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesFILE_nlm_copyright =
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# Any additional imports go here
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesFILES_nlm_Ximports = \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# Any symbols exported to here
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesFILES_nlm_exports = \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ldap_module \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes util_ldap_connection_find \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes util_ldap_connection_close \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes util_ldap_connection_unbind \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes util_ldap_connection_cleanup \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes util_ldap_cache_checkuserid \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes util_ldap_cache_compare \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes util_ldap_cache_comparedn \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes util_ldap_ssl_supported \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# These are the OBJ files needed to create the LIB target above.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# Paths must all use the '/' character
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesFILES_lib_objs = \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# implement targets and dependancies (leave this section alone)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholeslibs :: $(OBJDIR) $(TARGET_lib)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesnlms :: libs $(TARGET_nlm)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# Updated this target to create necessary directories and copy files to the
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesinstall :: nlms FORCE
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes copy $(OBJDIR)\*.nlm $(INSTALL)\Apache2\modules\*.*
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# Any specialized rules here
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# Include the 'tail' makefile that has targets that depend on variables defined
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# in this makefile
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesinclude $(AP_WORK)\build\NWGNUtail.inc