cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Make sure all needed macro's are defined
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Get the 'head' of the build environment if necessary. This includes default
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# targets and paths to tools
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesifndef EnvironmentDefined
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(AP_WORK)/build/NWGNUhead.inc
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# These directories will be at the beginning of the include list, followed by
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesXINCDIRS += \
16b55a35cff91315d261d1baa776138af465c4e4fuankg $(APR)/include \
16b55a35cff91315d261d1baa776138af465c4e4fuankg $(APRUTIL)/include \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(SRC)/include \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(STDMOD)/http \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(STDMOD)/generators \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(STDMOD)/ssl \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# These flags will come after CFLAGS
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# These defines will come after DEFINES
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesXDEFINES += \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# These flags will be added to the link.opt file
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# These values will be appended to the correct variables based on the value of
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesifeq "$(RELEASE)" "debug"
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesXINCDIRS += \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesXDEFINES += \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesifeq "$(RELEASE)" "noopt"
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesXINCDIRS += \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesXDEFINES += \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesifeq "$(RELEASE)" "release"
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesXINCDIRS += \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesXDEFINES += \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# These are used by the link target if an NLM is being generated
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# This is used by the link 'name' directive to name the nlm. If left blank
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# TARGET_nlm (see below) will be used.
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_NAME = proxy
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# This is used by the link '-desc ' directive.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# If left blank, NLM_NAME will be used.
0a39e7683f6611d66c55712f50bb240428d832a1bnicholesNLM_DESCRIPTION = Apache $(VERSION_STR) Proxy Module
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# This is used by the '-threadname' directive. If left blank,
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# NLM_NAME Thread will be used.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesNLM_THREAD_NAME = Proxy Module
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# If this is specified, it will override VERSION value in
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_VERSION =
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# If this is specified, it will override the default of 64K
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesNLM_STACK_SIZE = 8192
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# If this is specified it will be used by the link '-entry' directive
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_ENTRY_SYM =
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# If this is specified it will be used by the link '-exit' directive
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_EXIT_SYM =
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# If this is specified it will be used by the link '-check' directive
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesNLM_CHECK_SYM =
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# 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
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# by setting APACHE_UNIPROC in the environment
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# If there is an NLM target, put it here
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesTARGET_nlm = \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# If there is an LIB target, put it here
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesTARGET_lib = \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# These are the OBJ files needed to create the NLM target above.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Paths must all use the '/' character
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesFILES_nlm_objs = \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# These are the LIB files needed to create the NLM target above.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# These will be added as a library command in the link.opt file.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesFILES_nlm_libs = \
cf7ca2f9eaa6523fefcccba4287b91637391fb51fuankg $(PRELUDE) \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# These are the modules that the above NLM target depends on to load.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# These will be added as a module command in the link.opt file.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesFILES_nlm_modules = \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# If the nlm has a msg file, put it's path here
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesFILE_nlm_msg =
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# If the nlm has a hlp file put it's path here
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesFILE_nlm_hlp =
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# If this is specified, it will override $(NWOS)\copyright.txt.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesFILE_nlm_copyright =
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Any additional imports go here
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesFILES_nlm_Ximports = \
609ef720afd62ca63391c9fdb415cd2faf29aa46bnicholes# Don't link with Winsock if standard sockets are being used
609ef720afd62ca63391c9fdb415cd2faf29aa46bnicholesifndef USE_STDSOCKETS
609ef720afd62ca63391c9fdb415cd2faf29aa46bnicholesFILES_nlm_Ximports += @ws2nlm.imp \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Any symbols exported to here
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesFILES_nlm_exports = \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# These are the OBJ files needed to create the LIB target above.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Paths must all use the '/' character
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesFILES_lib_objs = \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# implement targets and dependancies (leave this section alone)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholeslibs :: $(OBJDIR) $(TARGET_lib)
0cb770e9049c8e85ede0bbe3d47904785b15f868fuankgnlms :: libs $(OBJDIR)/mod_proxy.imp $(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)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesinstall :: nlms FORCE
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Any specialized rules here
369fbd745ddc427545c332ac85600a0212d8ef49fuankg$(OBJDIR)/mod_proxy.imp: NWGNUproxy
2a3d4464b68bcf6173f675479b4ec681a83f4bd9fuankg @echo $(DL)GEN $@$(DL)
2a3d4464b68bcf6173f675479b4ec681a83f4bd9fuankg @echo $(DL)# Exports of mod_proxy$(DL)> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) (AP$(VERSION_MAJMIN))$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) proxy_module,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) proxy_hook_canon_handler,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) proxy_hook_get_canon_handler,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) proxy_hook_get_post_request,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) proxy_hook_get_pre_request,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) proxy_hook_get_scheme_handler,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) proxy_hook_post_request,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) proxy_hook_pre_request,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) proxy_hook_scheme_handler,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) proxy_run_canon_handler,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) proxy_run_create_req,$(DL)>> $@
c014b8db6f1c6d347ce76b52ac20e5976494258bfuankg @echo $(DL) proxy_run_detach_backend,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) proxy_run_fixups,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) proxy_run_post_request,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) proxy_run_pre_request,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) proxy_run_request_status,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) proxy_run_scheme_handler,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_acquire_connection,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_backend_broke,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_c2hex,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_canon_netloc,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_canonenc,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_checkproxyblock,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_conn_is_https,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_connect_backend,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_connect_to_backend,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_connection_create,$(DL)>> $@
29a6dad4e7fdadf2a424b9cd93a4188c81e247a4fuankg @echo $(DL) ap_proxy_connection_reusable,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_cookie_reverse_map,$(DL)>> $@
22113c8c3df7711e429a945aa7f45f2c8e227162fuankg @echo $(DL) ap_proxy_create_hdrbrgd,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_define_balancer,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_define_worker,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_determine_connection,$(DL)>> $@
8a344e6aa7a94eeaade8b642eb5b85d4a2a7ae55fuankg @echo $(DL) ap_proxy_find_balancershm,$(DL)>> $@
8a344e6aa7a94eeaade8b642eb5b85d4a2a7ae55fuankg @echo $(DL) ap_proxy_find_workershm,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_get_balancer,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_get_worker,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_hashfunc,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_hex2c,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_initialize_balancer,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_initialize_worker,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_is_domainname,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_is_hostname,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_is_ipaddr,$(DL)>> $@
369fbd745ddc427545c332ac85600a0212d8ef49fuankg @echo $(DL) ap_proxy_is_socket_connected,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_is_word,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_location_reverse_map,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_parse_wstatus,$(DL)>> $@
22113c8c3df7711e429a945aa7f45f2c8e227162fuankg @echo $(DL) ap_proxy_pass_brigade,$(DL)>> $@
29a6dad4e7fdadf2a424b9cd93a4188c81e247a4fuankg @echo $(DL) ap_proxy_port_of_scheme,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_post_request,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_pre_http_request,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_pre_request,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_release_connection,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_set_wstatus,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_share_balancer,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_share_worker,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_ssl_connection_cleanup,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_ssl_disable,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_ssl_enable,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_ssl_val,$(DL)>> $@
ee36a67cfa9a78d14c985d61a01974d4fd82890cfuankg @echo $(DL) ap_proxy_strncpy,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_sync_balancer,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_trans_match,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxy_valid_balancer_name,$(DL)>> $@
29a6dad4e7fdadf2a424b9cd93a4188c81e247a4fuankg @echo $(DL) ap_proxy_worker_name,$(DL)>> $@
6000ee2042efb541f1ca9996f464d8528f103a35fuankg @echo $(DL) ap_proxyerror$(DL)>> $@
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Include the 'tail' makefile that has targets that depend on variables defined
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# in this makefile
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(APBUILD)/NWGNUtail.inc