NWGNUproxy revision 44f575c8cb19a7a5cd61664a7848be6bc197df02
80833bb9a1bf25dcf19e814438a4b311d2e1f4cffuankg# Make sure all needed macro's are defined
1337c7673efc1f80f634139fbad7cbb98a0dc657ylavic# Get the 'head' of the build environment if necessary. This includes default
1337c7673efc1f80f634139fbad7cbb98a0dc657ylavic# targets and paths to tools
4da61833a1cbbca94094f9653fd970582b97a72etrawickifndef EnvironmentDefined
4da61833a1cbbca94094f9653fd970582b97a72etrawickinclude $(AP_WORK)/build/NWGNUhead.inc
4789804be088bcd86ae637a29cdb7fda25169521jailletc# These directories will be at the beginning of the include list, followed by
e50c3026198fd496f183cda4c32a202925476778covenerXINCDIRS += \
e50c3026198fd496f183cda4c32a202925476778covener $(APR)/include \
5b88c8507d5ef6d0c4cfbc78230294968175b638minfrin $(APRUTIL)/include \
5b88c8507d5ef6d0c4cfbc78230294968175b638minfrin $(SRC)/include \
6c3b9cebb551140fbb25d58bae08b539b3802133ylavic $(STDMOD)/http \
6c3b9cebb551140fbb25d58bae08b539b3802133ylavic $(STDMOD)/generators \
6c3b9cebb551140fbb25d58bae08b539b3802133ylavic $(STDMOD)/ssl \
0a0df13b7f1f4f1a74fe295253d89ca3911b301aylavic# These flags will come after CFLAGS
69301145375a889e7e37caf7cc7321ac0f91801erpluemXCFLAGS += \
506bfe33206b2fece40ef25f695af39dd4130facjkaluza# These defines will come after DEFINES
506bfe33206b2fece40ef25f695af39dd4130facjkaluzaXDEFINES += \
2e6f4d654c96c98b761fb012fd25c5d5b1558c44sf# These flags will be added to the link.opt file
2e6f4d654c96c98b761fb012fd25c5d5b1558c44sfXLFLAGS += \
17e6c95f3b22d18acdf8380fb26a8d0e10c80767ylavic# These values will be appended to the correct variables based on the value of
e8bd80a4bb88199d2f9a24a50345688e52d9c116ylavicifeq "$(RELEASE)" "debug"
e8bd80a4bb88199d2f9a24a50345688e52d9c116ylavicXINCDIRS += \
330e16bea8fe9cace4de90c349750c03dfb1fe64ylavicXCFLAGS += \
330e16bea8fe9cace4de90c349750c03dfb1fe64ylavicXDEFINES += \
d7205b1a86c51c27b71a2c458dc453fd53a261c1covenerXLFLAGS += \
44ff304057225e944e220e981d434a046d14cf06covenerifeq "$(RELEASE)" "noopt"
44ff304057225e944e220e981d434a046d14cf06covenerXINCDIRS += \
5d1ba75b8794925e67591c209085a49279791de9covenerXCFLAGS += \
032982212dbcc7c3cce95bf89c503bb56e185ac7kbrandXDEFINES += \
032982212dbcc7c3cce95bf89c503bb56e185ac7kbrandXLFLAGS += \
caad2986f81ab263f7af41467dd622dc9add17f3ylavicifeq "$(RELEASE)" "release"
45a10d38e6051fd7bdf9d742aaae633d97ff02abjailletcXINCDIRS += \
2165214331e4afafca4048f66f303d0253d7b001covenerXCFLAGS += \
1e2d421a36999d292042a5539971070d54aa6c63ylavicXDEFINES += \
0b67eb8568cd58bb77082703951679b42cf098actrawick# These are used by the link target if an NLM is being generated
0b67eb8568cd58bb77082703951679b42cf098actrawick# This is used by the link 'name' directive to name the nlm. If left blank
5ef3c61605a3a021ff71f488983cb0065f8e1a79covener# TARGET_nlm (see below) will be used.
09c87c777bed1655621bb20e1c46cb6b1a63279dcovenerNLM_NAME = proxy
3060ce7f798fbda7999cd4ddf89b525d2b294185covener# This is used by the link '-desc ' directive.
c1a63b8fad09c419c1a64f75993feb8a343a6801ylavic# If left blank, NLM_NAME will be used.
c1a63b8fad09c419c1a64f75993feb8a343a6801ylavicNLM_DESCRIPTION = Apache $(VERSION_STR) Proxy Module
e466c40e1801982602ee0200c9e8b61cc148742djailletc# This is used by the '-threadname' directive. If left blank,
e466c40e1801982602ee0200c9e8b61cc148742djailletc# NLM_NAME Thread will be used.
457468b82e59d01eba00dd9d0817309c8f5e414ejimNLM_THREAD_NAME = Proxy Module
04983e3bd1754764eec7d6bb772fe3b0bf391771jorton# If this is specified, it will override VERSION value in
15660979a30d251681463de2e0584853890082accovenerNLM_VERSION =
cfd9415521847b2f9394fad04fb701cfb955f503rjung# If this is specified, it will override the default of 64K
cfd9415521847b2f9394fad04fb701cfb955f503rjungNLM_STACK_SIZE = 8192
28c31fb73c1264bd1d0ff932573677030b024c7dwrowe# If this is specified it will be used by the link '-entry' directive
8491e0600f69b0405e156ea8a419653c065c645bcovenerNLM_ENTRY_SYM =
63b9f1f5880391261705f696d7d65507bbe9ace3covener# If this is specified it will be used by the link '-exit' directive
49dacedb6c387b786b7911082ff35121a45f414bcovenerNLM_EXIT_SYM =
3c990331fc6702119e4f5b8ba9eae3021aea5265jim# If this is specified it will be used by the link '-check' directive
3c990331fc6702119e4f5b8ba9eae3021aea5265jimNLM_CHECK_SYM =
fc42512879dd0504532f52fe5d0d0383dda96a1eniq# If these are specified it will be used by the link '-flags' directive
0451df5dc50fa5d8b3e07d92ee6a92e36a1181a5niqNLM_FLAGS =
da0442c0440caef34706e2c2f3af05cb65921cc0jailletc# If this is specified it will be linked in with the XDCData option in the def
983528026996668ea295be95aedb9c7a346af470ylavic# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
da0442c0440caef34706e2c2f3af05cb65921cc0jailletc# by setting APACHE_UNIPROC in the environment
15890c9306ba98f6fc243e15a3c4778ddc7d773erpluem# If there is an NLM target, put it here
259878293a997ff49f5ddfc53d3739cbdc25444ecovenerTARGET_nlm = \
b54b024c06a19926832d77d40ba35ad8c41e4d3dminfrin# If there is an LIB target, put it here
65967d05f839dbf27cf91d91fa79585eeae19660minfrinTARGET_lib = \
8152945ae46857b170cb227e79bb799f4fc7710dminfrin# These are the OBJ files needed to create the NLM target above.
8152945ae46857b170cb227e79bb799f4fc7710dminfrin# Paths must all use the '/' character
8152945ae46857b170cb227e79bb799f4fc7710dminfrinFILES_nlm_objs = \
5716f9c6daa92dde5f2f9d11ed63f7c9549c223atrawick# These are the LIB files needed to create the NLM target above.
5716f9c6daa92dde5f2f9d11ed63f7c9549c223atrawick# These will be added as a library command in the link.opt file.
5716f9c6daa92dde5f2f9d11ed63f7c9549c223atrawickFILES_nlm_libs = \
54d750a84a175d8e338880514d440773eb986b50covener $(PRELUDE) \
54d750a84a175d8e338880514d440773eb986b50covener# These are the modules that the above NLM target depends on to load.
54d750a84a175d8e338880514d440773eb986b50covener# These will be added as a module command in the link.opt file.
54d750a84a175d8e338880514d440773eb986b50covenerFILES_nlm_modules = \
83b50288fa7d306324bba68832011ea08f5c7832covener# If the nlm has a msg file, put it's path here
5f066f496cd9f20a2a701255bc67d44e7cb46daetrawickFILE_nlm_msg =
2e15620d724fb8e3a5be183b917359a2fd6e9468covener# If the nlm has a hlp file put it's path here
2e15620d724fb8e3a5be183b917359a2fd6e9468covenerFILE_nlm_hlp =
1b988c41ee505962781d110a3e4c2c90f1ea0aa4covener# If this is specified, it will override $(NWOS)\copyright.txt.
b8efdc95bec9cf089aa1be0bfd07d46aa1137a7acovenerFILE_nlm_copyright =
f06e7c4b1bce6b6491e5de0b7998d3f5696b293dchrisd# Any additional imports go here
f06e7c4b1bce6b6491e5de0b7998d3f5696b293dchrisdFILES_nlm_Ximports = \
fce4949fb0b309a5744afcd503c6ed2d35621ee2covener# Don't link with Winsock if standard sockets are being used
fce4949fb0b309a5744afcd503c6ed2d35621ee2covenerifndef USE_STDSOCKETS
fce4949fb0b309a5744afcd503c6ed2d35621ee2covenerFILES_nlm_Ximports += @ws2nlm.imp \
ccc20788c1e5fc973f36df634399c89acb70deaejerenkrantz# Any symbols exported to here
273e512f20f262e5e2aa8e0e83371d1929fb76adjkaluzaFILES_nlm_exports = \
fe83f60b41477b14a37edcfcd1f7f5c5a1ebfe44minfrin# These are the OBJ files needed to create the LIB target above.
fe83f60b41477b14a37edcfcd1f7f5c5a1ebfe44minfrin# Paths must all use the '/' character
993d1261a278d7322bccef219101220b7b4fb8c5jkaluzaFILES_lib_objs = \
ba050a6f942b9fa0e81ed73437588005c569655ccovener# implement targets and dependancies (leave this section alone)
135ddda3a989215d2bedbcf1529bfb269c3eda23niqlibs :: $(OBJDIR) $(TARGET_lib)
001a44c352f89c9ec332ffd3e0a6927dcd19432chumbedoohnlms :: libs $(OBJDIR)/mod_proxy.imp $(TARGET_nlm)
efe780dcf13b2b95effabf897d694d8f23feac74trawick# Updated this target to create necessary directories and copy files to the
793214f67dede32edfd9ee96c664ead04d175cbbjfclere# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
9b0076ddd1103e5fa9c1f9bafde4b06ce244fbaecovenerinstall :: nlms FORCE
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza# Any specialized rules here
56589be3d7a3e9343370df240010c6928cc78b39jkaluza @echo $(DL)GEN $@$(DL)
77ca16c5676da23155311e13cee61e7eaba9fa3ejailletc @echo $(DL)# Exports of mod_proxy$(DL)> $@
77ca16c5676da23155311e13cee61e7eaba9fa3ejailletc @echo $(DL) (AP$(VERSION_MAJMIN))$(DL)>> $@
77ca16c5676da23155311e13cee61e7eaba9fa3ejailletc @echo $(DL) proxy_module,$(DL)>> $@
77ca16c5676da23155311e13cee61e7eaba9fa3ejailletc @echo $(DL) proxy_hook_canon_handler,$(DL)>> $@
f87299dab99bc04b51a6b8cad51b6795db862c0atrawick @echo $(DL) proxy_hook_get_canon_handler,$(DL)>> $@
f87299dab99bc04b51a6b8cad51b6795db862c0atrawick @echo $(DL) proxy_hook_get_post_request,$(DL)>> $@
f87299dab99bc04b51a6b8cad51b6795db862c0atrawick @echo $(DL) proxy_hook_get_pre_request,$(DL)>> $@
4d12805e6c18253040223ea637acd6b3b3c18f60jorton @echo $(DL) proxy_hook_get_scheme_handler,$(DL)>> $@
4d12805e6c18253040223ea637acd6b3b3c18f60jorton @echo $(DL) proxy_hook_post_request,$(DL)>> $@
4d12805e6c18253040223ea637acd6b3b3c18f60jorton @echo $(DL) proxy_hook_pre_request,$(DL)>> $@
85eacfc96a04547ef25aabbc06440039715084c2jorton @echo $(DL) proxy_hook_scheme_handler,$(DL)>> $@
85eacfc96a04547ef25aabbc06440039715084c2jorton @echo $(DL) proxy_run_canon_handler,$(DL)>> $@
e5d909f2b06bd880fb3675cd49363df981caa631trawick @echo $(DL) proxy_run_create_req,$(DL)>> $@
a4df2cd1e1391575a327c2a90ba4315f805a0a78covener @echo $(DL) proxy_run_fixups,$(DL)>> $@
a4df2cd1e1391575a327c2a90ba4315f805a0a78covener @echo $(DL) proxy_run_post_request,$(DL)>> $@
a4df2cd1e1391575a327c2a90ba4315f805a0a78covener @echo $(DL) proxy_run_pre_request,$(DL)>> $@
cb666b29f81df1d11d65002250153353568021fccovener @echo $(DL) proxy_run_request_status,$(DL)>> $@
cb666b29f81df1d11d65002250153353568021fccovener @echo $(DL) proxy_run_scheme_handler,$(DL)>> $@
cb666b29f81df1d11d65002250153353568021fccovener @echo $(DL) ap_proxy_acquire_connection,$(DL)>> $@
6a80c3c6f4b8ea7ba5e89402b8b779b09ce020e0covener @echo $(DL) ap_proxy_backend_broke,$(DL)>> $@
1c2cab00d988fc48cbe59032cf76cc0bab20d6f7covener @echo $(DL) ap_proxy_c2hex,$(DL)>> $@
6a80c3c6f4b8ea7ba5e89402b8b779b09ce020e0covener @echo $(DL) ap_proxy_canon_netloc,$(DL)>> $@
75a230a728338d84dcfe81edd375352f34de22d0covener @echo $(DL) ap_proxy_canonenc,$(DL)>> $@
75a230a728338d84dcfe81edd375352f34de22d0covener @echo $(DL) ap_proxy_checkproxyblock,$(DL)>> $@
75a230a728338d84dcfe81edd375352f34de22d0covener @echo $(DL) ap_proxy_conn_is_https,$(DL)>> $@
1f50dc34ae069adeed20b2986e5ffdefa5c410e0covener @echo $(DL) ap_proxy_connect_backend,$(DL)>> $@
1f50dc34ae069adeed20b2986e5ffdefa5c410e0covener @echo $(DL) ap_proxy_connect_to_backend,$(DL)>> $@
1f50dc34ae069adeed20b2986e5ffdefa5c410e0covener @echo $(DL) ap_proxy_connection_create,$(DL)>> $@
63a5ea80bddcc84a462e40f402b4f330e0e05411covener @echo $(DL) ap_proxy_cookie_reverse_map,$(DL)>> $@
63a5ea80bddcc84a462e40f402b4f330e0e05411covener @echo $(DL) ap_proxy_define_balancer,$(DL)>> $@
63a5ea80bddcc84a462e40f402b4f330e0e05411covener @echo $(DL) ap_proxy_define_worker,$(DL)>> $@
63a5ea80bddcc84a462e40f402b4f330e0e05411covener @echo $(DL) ap_proxy_determine_connection,$(DL)>> $@
65a4e663b82f8bce28ac22ab2edfd7502de36998sf @echo $(DL) ap_proxy_get_balancer,$(DL)>> $@
65a4e663b82f8bce28ac22ab2edfd7502de36998sf @echo $(DL) ap_proxy_get_worker,$(DL)>> $@
65a4e663b82f8bce28ac22ab2edfd7502de36998sf @echo $(DL) ap_proxy_hashfunc,$(DL)>> $@
65a4e663b82f8bce28ac22ab2edfd7502de36998sf @echo $(DL) ap_proxy_hex2c,$(DL)>> $@
c7de1955eb0eaeabf7042902476397692672d549sf @echo $(DL) ap_proxy_initialize_balancer,$(DL)>> $@
74e7f6c55fd67b10cb400b3f6d1dc718a303d944minfrin @echo $(DL) ap_proxy_initialize_worker,$(DL)>> $@
74e7f6c55fd67b10cb400b3f6d1dc718a303d944minfrin @echo $(DL) ap_proxy_is_domainname,$(DL)>> $@
74e7f6c55fd67b10cb400b3f6d1dc718a303d944minfrin @echo $(DL) ap_proxy_is_hostname,$(DL)>> $@
74e7f6c55fd67b10cb400b3f6d1dc718a303d944minfrin @echo $(DL) ap_proxy_is_ipaddr,$(DL)>> $@
a511a29faf2ff7ead3b67680154a624effb31aafminfrin @echo $(DL) ap_proxy_is_word,$(DL)>> $@
a511a29faf2ff7ead3b67680154a624effb31aafminfrin @echo $(DL) ap_proxy_location_reverse_map,$(DL)>> $@
a511a29faf2ff7ead3b67680154a624effb31aafminfrin @echo $(DL) ap_proxy_parse_wstatus,$(DL)>> $@
a511a29faf2ff7ead3b67680154a624effb31aafminfrin @echo $(DL) ap_proxy_post_request,$(DL)>> $@
a511a29faf2ff7ead3b67680154a624effb31aafminfrin @echo $(DL) ap_proxy_pre_http_request,$(DL)>> $@
63921358ef93fcb41bc71d9894221ba3d7fbb87bminfrin @echo $(DL) ap_proxy_pre_request,$(DL)>> $@
63921358ef93fcb41bc71d9894221ba3d7fbb87bminfrin @echo $(DL) ap_proxy_release_connection,$(DL)>> $@
63921358ef93fcb41bc71d9894221ba3d7fbb87bminfrin @echo $(DL) ap_proxy_set_wstatus,$(DL)>> $@
deec48c67d4786bc77112ffbf3a4e70b931097edminfrin @echo $(DL) ap_proxy_share_balancer,$(DL)>> $@
6d601599d3d65df0410eae6e573e75b2dbfb1fb4minfrin @echo $(DL) ap_proxy_share_worker,$(DL)>> $@
6d601599d3d65df0410eae6e573e75b2dbfb1fb4minfrin @echo $(DL) ap_proxy_ssl_connection_cleanup,$(DL)>> $@
6d601599d3d65df0410eae6e573e75b2dbfb1fb4minfrin @echo $(DL) ap_proxy_ssl_disable,$(DL)>> $@
6d601599d3d65df0410eae6e573e75b2dbfb1fb4minfrin @echo $(DL) ap_proxy_ssl_enable,$(DL)>> $@
684e0cfc200f66287a93bbd1708d1dd8a92a7eefcovener @echo $(DL) ap_proxy_ssl_val,$(DL)>> $@
684e0cfc200f66287a93bbd1708d1dd8a92a7eefcovener @echo $(DL) ap_proxy_strncpy,$(DL)>> $@
5c43d2fb853f84497b5ece2d414ef9484aa87e5fsf @echo $(DL) ap_proxy_sync_balancer,$(DL)>> $@
05a5a9c3e16f21566e1b61f4bd68025ce1b741ccjoes @echo $(DL) ap_proxy_trans_match,$(DL)>> $@
05a5a9c3e16f21566e1b61f4bd68025ce1b741ccjoes @echo $(DL) ap_proxy_valid_balancer_name,$(DL)>> $@
ef82e8fa164e0a1f8b813f7deb6b7ead96018c94niq @echo $(DL) ap_proxyerror$(DL)>> $@
ef82e8fa164e0a1f8b813f7deb6b7ead96018c94niq# Include the 'tail' makefile that has targets that depend on variables defined
ef82e8fa164e0a1f8b813f7deb6b7ead96018c94niq# in this makefile
ef82e8fa164e0a1f8b813f7deb6b7ead96018c94niqinclude $(APBUILD)/NWGNUtail.inc