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
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(AP_WORK)/build/NWGNUhead.inc
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# These directories will be at the beginning of the include list, followed by
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesXINCDIRS += \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(APR)/include \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(APRUTIL)/include \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(SRC)/include \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes $(LDAPSDK)/inc \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# These flags will come after CFLAGS
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# These defines will come after DEFINES
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesXDEFINES += \
9558e9fdb620dd6f42ca93beac6c3ab734086706bnicholes#LDAP client requires the use of Winsock
9558e9fdb620dd6f42ca93beac6c3ab734086706bnicholesifdef USE_STDSOCKETS
9558e9fdb620dd6f42ca93beac6c3ab734086706bnicholesXDEFINES += -DUSE_WINSOCK \
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.
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_NAME = utilldap
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# 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
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# If this is specified, it will override VERSION value in
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_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
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_ENTRY_SYM =
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# If this is specified it will be used by the link '-exit' directive
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_EXIT_SYM =
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
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# 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 = \
cf7ca2f9eaa6523fefcccba4287b91637391fb51fuankg $(PRELUDE) \
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# 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)
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# Updated this target to create necessary directories and copy files to the
0662ed52e814f8f08ef0e09956413a792584eddffuankg# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesinstall :: nlms FORCE
00d1c0c914426a97022d8205a875c48b211001c2fuankg $(call COPY,$(OBJDIR)/*.nlm, $(INSTALLBASE)/modules/)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# Any specialized rules here
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# Include the 'tail' makefile that has targets that depend on variables defined
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# in this makefile
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(APBUILD)/NWGNUtail.inc