NWGNUsession_cookie revision 1deefaad8846266c903a2622d2d5f9df9ef91ad1
499b34cea04a46823d003d4c0520c8b03e8513cbBrian Wellington# Make sure all needed macro's are defined
b87a704401ebdfccd907e30fec7e047760b0177dBrian Wellington# Get the 'head' of the build environment if necessary. This includes default
b87a704401ebdfccd907e30fec7e047760b0177dBrian Wellington# targets and paths to tools
4979d89e042f6152b8270723fc8dd40de0dd354cAndreas Gustafssonifndef EnvironmentDefined
4979d89e042f6152b8270723fc8dd40de0dd354cAndreas Gustafsson# These directories will be at the beginning of the include list, followed by
b87a704401ebdfccd907e30fec7e047760b0177dBrian Wellington $(APR)/include \
b7b9b499f4026cae13de5d2661ace9f42033c422Brian Wellington $(APRUTIL)/include \
b87a704401ebdfccd907e30fec7e047760b0177dBrian Wellington $(SRC)/include \
ad418d66f8f4c3927b62de39a24ad1408fe9bd23Brian Wellington# These flags will come after CFLAGS
364a82f7c25b62967678027043425201a5e5171aBob Halley# These defines will come after DEFINES
1f8f904ad612e372bf34d88fce28c59ac5e54574Brian Wellington# These flags will be added to the link.opt file
b87a704401ebdfccd907e30fec7e047760b0177dBrian Wellington# These values will be appended to the correct variables based on the value of
b7bf1bc9d9e822022d7c4c918851551ce3d69a1aBrian Wellingtonifeq "$(RELEASE)" "debug"
c3de05e48abc255b044e66c876809f597a7192a3Brian Wellingtonifeq "$(RELEASE)" "noopt"
c3de05e48abc255b044e66c876809f597a7192a3Brian Wellingtonifeq "$(RELEASE)" "release"
6a285c816d1c5f82afbcc92f7f5928ce8e9f9ffaBrian Wellington# These are used by the link target if an NLM is being generated
6a285c816d1c5f82afbcc92f7f5928ce8e9f9ffaBrian Wellington# This is used by the link 'name' directive to name the nlm. If left blank
b87a704401ebdfccd907e30fec7e047760b0177dBrian Wellington# TARGET_nlm (see below) will be used.
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid LawrenceNLM_NAME = session_cookie
c50936eb40263b65ebf6afe4e6556e2dc67c10e4Brian Wellington# This is used by the link '-desc ' directive.
a9bc95f22ef2dd4a12e79be99412c9f18b814a5dBrian Wellington# If left blank, NLM_NAME will be used.
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid LawrenceNLM_DESCRIPTION = Apache $(VERSION_STR) Session Cookie Module
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence# This is used by the '-threadname' directive. If left blank,
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence# NLM_NAME Thread will be used.
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid LawrenceNLM_THREAD_NAME = SessionCookie Module
ad418d66f8f4c3927b62de39a24ad1408fe9bd23Brian Wellington# If this is specified, it will override VERSION value in
acd5445e00f9c142fe22d38f36d3f60477e5dffaBrian Wellington# If this is specified, it will override the default of 64K
b7b9b499f4026cae13de5d2661ace9f42033c422Brian WellingtonNLM_STACK_SIZE = 8192
6a759e38699d133302d0df120d7afcd4af721951David Lawrence# If this is specified it will be used by the link '-entry' directive
32eeec855957c3dd38f0d6c98ca79b67a71300b6Brian WellingtonNLM_ENTRY_SYM =
1f8f904ad612e372bf34d88fce28c59ac5e54574Brian Wellington# If this is specified it will be used by the link '-exit' directive
32eeec855957c3dd38f0d6c98ca79b67a71300b6Brian WellingtonNLM_EXIT_SYM =
6a285c816d1c5f82afbcc92f7f5928ce8e9f9ffaBrian Wellington# If this is specified it will be used by the link '-check' directive
1f8f904ad612e372bf34d88fce28c59ac5e54574Brian WellingtonNLM_CHECK_SYM =
32eeec855957c3dd38f0d6c98ca79b67a71300b6Brian Wellington# If these are specified it will be used by the link '-flags' directive
d6a2af163f61cad7ab014a9dd5dc0f35920b1ed3David Lawrence# If this is specified it will be linked in with the XDCData option in the def
32eeec855957c3dd38f0d6c98ca79b67a71300b6Brian Wellington# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
6a285c816d1c5f82afbcc92f7f5928ce8e9f9ffaBrian Wellington# by setting APACHE_UNIPROC in the environment
6a285c816d1c5f82afbcc92f7f5928ce8e9f9ffaBrian Wellington# If there is an NLM target, put it here
32eeec855957c3dd38f0d6c98ca79b67a71300b6Brian WellingtonTARGET_nlm = \
1f8f904ad612e372bf34d88fce28c59ac5e54574Brian Wellington $(OBJDIR)/$(NLM_NAME).nlm \
b87a704401ebdfccd907e30fec7e047760b0177dBrian Wellington# If there is an LIB target, put it here
32eeec855957c3dd38f0d6c98ca79b67a71300b6Brian WellingtonTARGET_lib = \
b87a704401ebdfccd907e30fec7e047760b0177dBrian Wellington# These are the OBJ files needed to create the NLM target above.
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence# Paths must all use the '/' character
32eeec855957c3dd38f0d6c98ca79b67a71300b6Brian WellingtonFILES_nlm_objs = \
3f543c371fff724d1fb05eb564f732476e946b5bBrian Wellington# These are the LIB files needed to create the NLM target above.
3d3e7bce59e3552a821373862a9bf6fc961a347aBrian Wellington# These will be added as a library command in the link.opt file.
22e8a319814f3ff2b9ec8c8321e167be2344f1afBrian WellingtonFILES_nlm_libs = \
22e8a319814f3ff2b9ec8c8321e167be2344f1afBrian Wellington# These are the modules that the above NLM target depends on to load.
b87a704401ebdfccd907e30fec7e047760b0177dBrian Wellington# These will be added as a module command in the link.opt file.
b87a704401ebdfccd907e30fec7e047760b0177dBrian WellingtonFILES_nlm_modules = \
3f543c371fff724d1fb05eb564f732476e946b5bBrian Wellington# If the nlm has a msg file, put it's path here
79d91e915023ffa5fac1bb2f91f19210bb18407cBrian WellingtonFILE_nlm_msg =
79d91e915023ffa5fac1bb2f91f19210bb18407cBrian Wellington# If the nlm has a hlp file put it's path here
b1d234eb75e2804e09d89178a76df39c321db51bBrian WellingtonFILE_nlm_hlp =
6a285c816d1c5f82afbcc92f7f5928ce8e9f9ffaBrian Wellington# If this is specified, it will override $(NWOS)\copyright.txt.
6a285c816d1c5f82afbcc92f7f5928ce8e9f9ffaBrian WellingtonFILE_nlm_copyright =
6a285c816d1c5f82afbcc92f7f5928ce8e9f9ffaBrian Wellington# Any additional imports go here
32eeec855957c3dd38f0d6c98ca79b67a71300b6Brian WellingtonFILES_nlm_Ximports = \
32eeec855957c3dd38f0d6c98ca79b67a71300b6Brian Wellington ap_hook_session_load \
32eeec855957c3dd38f0d6c98ca79b67a71300b6Brian Wellington ap_hook_session_save \
32eeec855957c3dd38f0d6c98ca79b67a71300b6Brian Wellington# Any symbols exported to here
32eeec855957c3dd38f0d6c98ca79b67a71300b6Brian WellingtonFILES_nlm_exports = \
32eeec855957c3dd38f0d6c98ca79b67a71300b6Brian Wellington session_cookie_module \
ff8d15be4e6096329fe6ae8217d0adcabd08c94bOlafur Gudmundsson# These are the OBJ files needed to create the LIB target above.
32eeec855957c3dd38f0d6c98ca79b67a71300b6Brian Wellington# Paths must all use the '/' character
ff8d15be4e6096329fe6ae8217d0adcabd08c94bOlafur GudmundssonFILES_lib_objs = \
32eeec855957c3dd38f0d6c98ca79b67a71300b6Brian Wellington# implement targets and dependancies (leave this section alone)
32eeec855957c3dd38f0d6c98ca79b67a71300b6Brian Wellingtonlibs :: $(OBJDIR) $(TARGET_lib)
6a285c816d1c5f82afbcc92f7f5928ce8e9f9ffaBrian Wellingtonnlms :: libs $(TARGET_nlm)
32eeec855957c3dd38f0d6c98ca79b67a71300b6Brian Wellington# Updated this target to create necessary directories and copy files to the
ff8d15be4e6096329fe6ae8217d0adcabd08c94bOlafur Gudmundsson# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
32eeec855957c3dd38f0d6c98ca79b67a71300b6Brian Wellingtoninstall :: nlms FORCE
6a285c816d1c5f82afbcc92f7f5928ce8e9f9ffaBrian Wellington# Any specialized rules here
32eeec855957c3dd38f0d6c98ca79b67a71300b6Brian Wellington# Include the 'tail' makefile that has targets that depend on variables defined
32eeec855957c3dd38f0d6c98ca79b67a71300b6Brian Wellington# in this makefile
32eeec855957c3dd38f0d6c98ca79b67a71300b6Brian Wellingtoninclude $(APBUILD)/NWGNUtail.inc