08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# Make sure all needed macro's are defined
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# Get the 'head' of the build environment if necessary. This includes default
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# targets and paths to tools
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndifndef EnvironmentDefined
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(AP_WORK)/build/NWGNUhead.inc
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# These directories will be at the beginning of the include list, followed by
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndXINCDIRS += \
16b55a35cff91315d261d1baa776138af465c4e4fuankg $(APR)/include \
16b55a35cff91315d261d1baa776138af465c4e4fuankg $(APRUTIL)/include \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(SRC)/include \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(STDMOD)/database \
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# These flags will come after CFLAGS
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndXCFLAGS += \
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# These defines will come after DEFINES
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndXDEFINES += \
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# These flags will be added to the link.opt file
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndXLFLAGS += \
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# These values will be appended to the correct variables based on the value of
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndifeq "$(RELEASE)" "debug"
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndXINCDIRS += \
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndXCFLAGS += \
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndXDEFINES += \
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndXLFLAGS += \
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndifeq "$(RELEASE)" "noopt"
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndXINCDIRS += \
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndXCFLAGS += \
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndXDEFINES += \
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndXLFLAGS += \
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndifeq "$(RELEASE)" "release"
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndXINCDIRS += \
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndXCFLAGS += \
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndXDEFINES += \
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndXLFLAGS += \
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# These are used by the link target if an NLM is being generated
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# This is used by the link 'name' directive to name the nlm. If left blank
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# TARGET_nlm (see below) will be used.
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_NAME = authndbd
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# This is used by the link '-desc ' directive.
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# If left blank, NLM_NAME will be used.
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndNLM_DESCRIPTION = Apache $(VERSION_STR) SQL Database Authentication Module
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# This is used by the '-threadname' directive. If left blank,
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# NLM_NAME Thread will be used.
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndNLM_THREAD_NAME = AuthnDBD Module
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# If this is specified, it will override VERSION value in
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_VERSION =
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# If this is specified, it will override the default of 64K
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndNLM_STACK_SIZE = 8192
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# If this is specified it will be used by the link '-entry' directive
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_ENTRY_SYM =
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# If this is specified it will be used by the link '-exit' directive
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_EXIT_SYM =
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# If this is specified it will be used by the link '-check' directive
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndNLM_CHECK_SYM =
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# 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
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# by setting APACHE_UNIPROC in the environment
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# If there is an NLM target, put it here
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndTARGET_nlm = \
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# If there is an LIB target, put it here
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndTARGET_lib = \
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# These are the OBJ files needed to create the NLM target above.
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# Paths must all use the '/' character
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndFILES_nlm_objs = \
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# These are the LIB files needed to create the NLM target above.
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# These will be added as a library command in the link.opt file.
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndFILES_nlm_libs = \
cf7ca2f9eaa6523fefcccba4287b91637391fb51fuankg $(PRELUDE) \
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# These are the modules that the above NLM target depends on to load.
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# These will be added as a module command in the link.opt file.
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndFILES_nlm_modules = \
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# If the nlm has a msg file, put it's path here
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndFILE_nlm_msg =
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# If the nlm has a hlp file put it's path here
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndFILE_nlm_hlp =
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# If this is specified, it will override $(NWOS)\copyright.txt.
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndFILE_nlm_copyright =
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# Any additional imports go here
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndFILES_nlm_Ximports = \
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# Any symbols exported to here
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndFILES_nlm_exports = \
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd authn_dbd_module \
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# These are the OBJ files needed to create the LIB target above.
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# Paths must all use the '/' character
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndFILES_lib_objs = \
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# implement targets and dependancies (leave this section alone)
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndlibs :: $(OBJDIR) $(TARGET_lib)
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndnlms :: 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)
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndinstall :: nlms FORCE
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# Any specialized rules here
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# Include the 'tail' makefile that has targets that depend on variables defined
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# in this makefile
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(APBUILD)/NWGNUtail.inc