NWGNUsession_dbd revision 16b55a35cff91315d261d1baa776138af465c4e4
f10ebaa51ecdcbbd10f171d19fe8e680e5bc74aaJakub Hrozek# Make sure all needed macro's are defined
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# Get the 'head' of the build environment if necessary. This includes default
7465d6a1ef6e83825dba3a4dc4dda7271671aba0Jakub Hrozek# targets and paths to tools
f10ebaa51ecdcbbd10f171d19fe8e680e5bc74aaJakub Hrozekifndef EnvironmentDefined
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozekinclude $(AP_WORK)\build\NWGNUhead.inc
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# These directories will be at the beginning of the include list, followed by
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub HrozekXINCDIRS += \
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek $(APR)/include \
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek $(APRUTIL)/include \
b47fd11a259c50e63cd674c7cba0da3f2549cae0Jakub Hrozek $(AP_WORK)/include \
9a839b29816c8906d4a6b074cf76df790cac9209Jakub Hrozek# These flags will come after CFLAGS
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# These defines will come after DEFINES
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub HrozekXDEFINES += \
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# These flags will be added to the link.opt file
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# These values will be appended to the correct variables based on the value of
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozekifeq "$(RELEASE)" "debug"
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub HrozekXINCDIRS += \
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub HrozekXDEFINES += \
b47fd11a259c50e63cd674c7cba0da3f2549cae0Jakub Hrozekifeq "$(RELEASE)" "noopt"
b47fd11a259c50e63cd674c7cba0da3f2549cae0Jakub HrozekXINCDIRS += \
9a839b29816c8906d4a6b074cf76df790cac9209Jakub HrozekXDEFINES += \
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozekifeq "$(RELEASE)" "release"
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub HrozekXINCDIRS += \
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub HrozekXDEFINES += \
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# These are used by the link target if an NLM is being generated
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# This is used by the link 'name' directive to name the nlm. If left blank
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# TARGET_nlm (see below) will be used.
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub HrozekNLM_NAME = session_dbd
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# This is used by the link '-desc ' directive.
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# If left blank, NLM_NAME will be used.
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub HrozekNLM_DESCRIPTION = Apache $(VERSION_STR) Session Cookie Module
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# This is used by the '-threadname' directive. If left blank,
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# NLM_NAME Thread will be used.
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub HrozekNLM_THREAD_NAME = SessionDbd Module
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# If this is specified, it will override VERSION value in
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# $(AP_WORK)\build\NWGNUenvironment.inc
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub HrozekNLM_VERSION =
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# If this is specified, it will override the default of 64K
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub HrozekNLM_STACK_SIZE = 8192
f10ebaa51ecdcbbd10f171d19fe8e680e5bc74aaJakub Hrozek# If this is specified it will be used by the link '-entry' directive
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub HrozekNLM_ENTRY_SYM = _LibCPrelude
b47fd11a259c50e63cd674c7cba0da3f2549cae0Jakub Hrozek# If this is specified it will be used by the link '-exit' directive
9a839b29816c8906d4a6b074cf76df790cac9209Jakub HrozekNLM_EXIT_SYM = _LibCPostlude
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# If this is specified it will be used by the link '-check' directive
b47fd11a259c50e63cd674c7cba0da3f2549cae0Jakub HrozekNLM_CHECK_SYM =
9a839b29816c8906d4a6b074cf76df790cac9209Jakub Hrozek# If these are specified it will be used by the link '-flags' directive
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub HrozekNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# If this is specified it will be linked in with the XDCData option in the def
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# by setting APACHE_UNIPROC in the environment
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# If there is an NLM target, put it here
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub HrozekTARGET_nlm = \
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek $(OBJDIR)/$(NLM_NAME).nlm \
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# If there is an LIB target, put it here
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub HrozekTARGET_lib = \
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# These are the OBJ files needed to create the NLM target above.
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# Paths must all use the '/' character
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub HrozekFILES_nlm_objs = \
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# These are the LIB files needed to create the NLM target above.
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# These will be added as a library command in the link.opt file.
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub HrozekFILES_nlm_libs = \
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# These are the modules that the above NLM target depends on to load.
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# These will be added as a module command in the link.opt file.
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub HrozekFILES_nlm_modules = \
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# If the nlm has a msg file, put it's path here
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub HrozekFILE_nlm_msg =
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# If the nlm has a hlp file put it's path here
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub HrozekFILE_nlm_hlp =
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# If this is specified, it will override $(NWOS)\copyright.txt.
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub HrozekFILE_nlm_copyright =
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek# Any additional imports go here
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub HrozekFILES_nlm_Ximports = \
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek ap_hook_session_load \
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek ap_hook_session_save \
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek# Any symbols exported to here
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub HrozekFILES_nlm_exports = \
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek session_dbd_module \
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek# These are the OBJ files needed to create the LIB target above.
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek# Paths must all use the '/' character
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub HrozekFILES_lib_objs = \
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek# implement targets and dependancies (leave this section alone)
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozeklibs :: $(OBJDIR) $(TARGET_lib)
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozeknlms :: libs $(TARGET_nlm)
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek# Updated this target to create necessary directories and copy files to the
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozekinstall :: nlms FORCE
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek# Any specialized rules here
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek# Include the 'tail' makefile that has targets that depend on variables defined
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek# in this makefile
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozekinclude $(AP_WORK)\build\NWGNUtail.inc