NWGNUproxybalancer revision 609ef720afd62ca63391c9fdb415cd2faf29aa46
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# Make sure all needed macro's are defined
e015e2f7e7f48874495f9df8b0dd192b7ffcb5ccTimo Sirainen# Get the 'head' of the build environment if necessary. This includes default
58be9d6bcc3800f5b3d76a064ee767fbe31a5a8aTimo Sirainen# targets and paths to tools
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenifndef EnvironmentDefined
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Siraineninclude $(AP_WORK)\build\NWGNUhead.inc
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# These directories will be at the beginning of the include list, followed by
e8fd7988ec183fb6c104aed19a61f1a096c51d34Timo Sirainen $(AP_WORK)/include \
6bc0f424bcdb9119d8159874cf98adfa53eefd9aTimo Sirainen $(APR)/include \
6bc0f424bcdb9119d8159874cf98adfa53eefd9aTimo Sirainen $(APRUTIL)/include \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# These flags will come after CFLAGS
d35fee8d1e5e31614dba5e64d45ed23c7d6bfa53Timo Sirainen# These defines will come after DEFINES
19e8adccba16ff419f5675b1575358c2956dce83Timo Sirainen# These flags will be added to the link.opt file
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# These values will be appended to the correct variables based on the value of
8aacc9e7c84f8376822823ec98c2f551d4919b2eTimo Sirainenifeq "$(RELEASE)" "debug"
6e235046e1d8e9d89fc948f5c623676c20421a28Timo Sirainenifeq "$(RELEASE)" "noopt"
abe7afb8f1766fbcef1b9df513109e43d7d16e49Timo Sirainenifeq "$(RELEASE)" "release"
abe7afb8f1766fbcef1b9df513109e43d7d16e49Timo Sirainen# These are used by the link target if an NLM is being generated
abe7afb8f1766fbcef1b9df513109e43d7d16e49Timo Sirainen# This is used by the link 'name' directive to name the nlm. If left blank
69e03a846f6980144aa75bff0590c04852bffbbcTimo Sirainen# TARGET_nlm (see below) will be used.
2131ef7a3390f15ea6a958256ea54908f1096350Timo SirainenNLM_NAME = proxybalancer
69e03a846f6980144aa75bff0590c04852bffbbcTimo Sirainen# This is used by the link '-desc ' directive.
69e03a846f6980144aa75bff0590c04852bffbbcTimo Sirainen# If left blank, NLM_NAME will be used.
69e03a846f6980144aa75bff0590c04852bffbbcTimo SirainenNLM_DESCRIPTION = Apache $(VERSION_STR) Proxy Balancer Sub-Module
69e03a846f6980144aa75bff0590c04852bffbbcTimo Sirainen# This is used by the '-threadname' directive. If left blank,
69e03a846f6980144aa75bff0590c04852bffbbcTimo Sirainen# NLM_NAME Thread will be used.
69e03a846f6980144aa75bff0590c04852bffbbcTimo SirainenNLM_THREAD_NAME = Prxy Blncr Module
69e03a846f6980144aa75bff0590c04852bffbbcTimo Sirainen# If this is specified, it will override VERSION value in
69e03a846f6980144aa75bff0590c04852bffbbcTimo Sirainen# $(AP_WORK)\build\NWGNUenvironment.inc
2131ef7a3390f15ea6a958256ea54908f1096350Timo Sirainen# If this is specified, it will override the default of 64K
69e03a846f6980144aa75bff0590c04852bffbbcTimo SirainenNLM_STACK_SIZE = 8192
bc564f1d3d953cf724828322b11ae89e0f59ffc9Timo Sirainen# If this is specified it will be used by the link '-entry' directive
bc564f1d3d953cf724828322b11ae89e0f59ffc9Timo SirainenNLM_ENTRY_SYM = _LibCPrelude
66ecc94150cbce23aad3240135e0782e0a74d479Timo Sirainen# If this is specified it will be used by the link '-exit' directive
bc564f1d3d953cf724828322b11ae89e0f59ffc9Timo SirainenNLM_EXIT_SYM = _LibCPostlude
85da8c055280cd45553b6b335e9fb226d6e2801eTimo Sirainen# If this is specified it will be used by the link '-check' directive
bc564f1d3d953cf724828322b11ae89e0f59ffc9Timo SirainenNLM_CHECK_SYM =
2131ef7a3390f15ea6a958256ea54908f1096350Timo Sirainen# If these are specified it will be used by the link '-flags' directive
69e03a846f6980144aa75bff0590c04852bffbbcTimo SirainenNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# If this is specified it will be linked in with the XDCData option in the def
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen# by setting APACHE_UNIPROC in the environment
4b231ca0bbe3b536acbd350101e183441ce0247aTimo Sirainen# If there is an NLM target, put it here
fd2f5fbc1f07aa93e2214a28cdf02437fb7d06c8Timo SirainenTARGET_nlm = \
c53e8ee216904ffe6de4f6518d9f9f5107b7610eTimo Sirainen# If there is an LIB target, put it here
fd2f5fbc1f07aa93e2214a28cdf02437fb7d06c8Timo SirainenTARGET_lib = \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# These are the OBJ files needed to create the NLM target above.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# Paths must all use the '/' character
abe7afb8f1766fbcef1b9df513109e43d7d16e49Timo SirainenFILES_nlm_objs = \
e015e2f7e7f48874495f9df8b0dd192b7ffcb5ccTimo Sirainen# These are the LIB files needed to create the NLM target above.
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen# These will be added as a library command in the link.opt file.
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo SirainenFILES_nlm_libs = \
58be9d6bcc3800f5b3d76a064ee767fbe31a5a8aTimo Sirainen# These are the modules that the above NLM target depends on to load.
d5cebe7f98e63d4e2822863ef2faa4971e8b3a5dTimo Sirainen# These will be added as a module command in the link.opt file.
fd2f5fbc1f07aa93e2214a28cdf02437fb7d06c8Timo SirainenFILES_nlm_modules = \
25c22e54d1071d120641e9eecd0023e7373e65ffTimo Sirainen# If the nlm has a msg file, put it's path here
25c22e54d1071d120641e9eecd0023e7373e65ffTimo SirainenFILE_nlm_msg =
25c22e54d1071d120641e9eecd0023e7373e65ffTimo Sirainen# If the nlm has a hlp file put it's path here
25c22e54d1071d120641e9eecd0023e7373e65ffTimo SirainenFILE_nlm_hlp =
25c22e54d1071d120641e9eecd0023e7373e65ffTimo Sirainen# If this is specified, it will override $(NWOS)\copyright.txt.
25c22e54d1071d120641e9eecd0023e7373e65ffTimo SirainenFILE_nlm_copyright =
25c22e54d1071d120641e9eecd0023e7373e65ffTimo Sirainen# Any additional imports go here
25c22e54d1071d120641e9eecd0023e7373e65ffTimo SirainenFILES_nlm_Ximports = \
25c22e54d1071d120641e9eecd0023e7373e65ffTimo Sirainen proxy_module \
25c22e54d1071d120641e9eecd0023e7373e65ffTimo Sirainen proxy_hook_scheme_handler \
6ef7e31619edfaa17ed044b45861d106a86191efTimo Sirainen proxy_hook_canon_handler \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen proxy_hook_pre_request \
1098fc409a45e7603701dc94635927a673bee0c1Timo Sirainen proxy_hook_post_request \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen proxy_run_fixups \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen ap_proxy_ssl_enable \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen ap_proxy_ssl_disable \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# Don't link with Winsock if standard sockets are being used
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenifndef USE_STDSOCKETS
f501ad38c51cf1d8f4f84313922c785e6ae6e81fTimo SirainenFILES_nlm_Ximports += @ws2nlm.imp \
e192a3b1ca8ae857e7d87298ea507d32977ba570Timo Sirainen# Any symbols exported to here
6bc0f424bcdb9119d8159874cf98adfa53eefd9aTimo SirainenFILES_nlm_exports = \
e192a3b1ca8ae857e7d87298ea507d32977ba570Timo Sirainen proxy_balancer_module \
c4877db8b6559846f4b58be8e42422dc734c193fTimo Sirainen# These are the OBJ files needed to create the LIB target above.
6bc0f424bcdb9119d8159874cf98adfa53eefd9aTimo Sirainen# Paths must all use the '/' character
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenFILES_lib_objs = \
8b9342aa96b2f297e23afb261f9f7dd859800952Timo Sirainen# implement targets and dependancies (leave this section alone)
37e6cf44d61a81c6839e3ab76234b54309d8d292Timo Sirainenlibs :: $(OBJDIR) $(TARGET_lib)
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainennlms :: libs $(TARGET_nlm)
fd2f5fbc1f07aa93e2214a28cdf02437fb7d06c8Timo Sirainen# Updated this target to create necessary directories and copy files to the
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Siraineninstall :: nlms FORCE
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# Any specialized rules here
fd2f5fbc1f07aa93e2214a28cdf02437fb7d06c8Timo Sirainen# Include the 'tail' makefile that has targets that depend on variables defined
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# in this makefile
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Siraineninclude $(AP_WORK)\build\NWGNUtail.inc