Blame modules/proxy/NWGNUproxy

Packit 90a5c9
#
Packit 90a5c9
# Make sure all needed macro's are defined
Packit 90a5c9
#
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# Get the 'head' of the build environment if necessary.  This includes default
Packit 90a5c9
# targets and paths to tools
Packit 90a5c9
#
Packit 90a5c9
Packit 90a5c9
ifndef EnvironmentDefined
Packit 90a5c9
include $(AP_WORK)/build/NWGNUhead.inc
Packit 90a5c9
endif
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# These directories will be at the beginning of the include list, followed by
Packit 90a5c9
# INCDIRS
Packit 90a5c9
#
Packit 90a5c9
XINCDIRS	+= \
Packit 90a5c9
			$(APR)/include \
Packit 90a5c9
			$(APRUTIL)/include \
Packit 90a5c9
			$(AP_WORK)/include \
Packit 90a5c9
			$(AP_WORK)/modules/http \
Packit 90a5c9
			$(AP_WORK)/modules/generators \
Packit 90a5c9
			$(AP_WORK)/modules/ssl \
Packit 90a5c9
			$(NWOS) \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# These flags will come after CFLAGS
Packit 90a5c9
#
Packit 90a5c9
XCFLAGS		+= \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# These defines will come after DEFINES
Packit 90a5c9
#
Packit 90a5c9
XDEFINES	+= \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# These flags will be added to the link.opt file
Packit 90a5c9
#
Packit 90a5c9
XLFLAGS		+= \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# These values will be appended to the correct variables based on the value of
Packit 90a5c9
# RELEASE
Packit 90a5c9
#
Packit 90a5c9
ifeq "$(RELEASE)" "debug"
Packit 90a5c9
XINCDIRS	+= \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
Packit 90a5c9
XCFLAGS		+= \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
Packit 90a5c9
XDEFINES	+= \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
Packit 90a5c9
XLFLAGS		+= \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
endif
Packit 90a5c9
Packit 90a5c9
ifeq "$(RELEASE)" "noopt"
Packit 90a5c9
XINCDIRS	+= \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
Packit 90a5c9
XCFLAGS		+= \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
Packit 90a5c9
XDEFINES	+= \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
Packit 90a5c9
XLFLAGS		+= \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
endif
Packit 90a5c9
Packit 90a5c9
ifeq "$(RELEASE)" "release"
Packit 90a5c9
XINCDIRS	+= \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
Packit 90a5c9
XCFLAGS		+= \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
Packit 90a5c9
XDEFINES	+= \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
Packit 90a5c9
XLFLAGS		+= \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
endif
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# These are used by the link target if an NLM is being generated
Packit 90a5c9
# This is used by the link 'name' directive to name the nlm.  If left blank
Packit 90a5c9
# TARGET_nlm (see below) will be used.
Packit 90a5c9
#
Packit 90a5c9
NLM_NAME	= proxy
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# This is used by the link '-desc ' directive.
Packit 90a5c9
# If left blank, NLM_NAME will be used.
Packit 90a5c9
#
Packit 90a5c9
NLM_DESCRIPTION	= Apache $(VERSION_STR) Proxy Module
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# This is used by the '-threadname' directive.  If left blank,
Packit 90a5c9
# NLM_NAME Thread will be used.
Packit 90a5c9
#
Packit 90a5c9
NLM_THREAD_NAME	= Proxy Module
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# If this is specified, it will override VERSION value in
Packit 90a5c9
# $(AP_WORK)/build/NWGNUenvironment.inc
Packit 90a5c9
#
Packit 90a5c9
NLM_VERSION	=
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# If this is specified, it will override the default of 64K
Packit 90a5c9
#
Packit 90a5c9
NLM_STACK_SIZE	= 8192
Packit 90a5c9
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# If this is specified it will be used by the link '-entry' directive
Packit 90a5c9
#
Packit 90a5c9
NLM_ENTRY_SYM	=
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# If this is specified it will be used by the link '-exit' directive
Packit 90a5c9
#
Packit 90a5c9
NLM_EXIT_SYM	=
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# If this is specified it will be used by the link '-check' directive
Packit 90a5c9
#
Packit 90a5c9
NLM_CHECK_SYM	=
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# If these are specified it will be used by the link '-flags' directive
Packit 90a5c9
#
Packit 90a5c9
NLM_FLAGS	=
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# If this is specified it will be linked in with the XDCData option in the def
Packit 90a5c9
# file instead of the default of $(NWOS)/apache.xdc.  XDCData can be disabled
Packit 90a5c9
# by setting APACHE_UNIPROC in the environment
Packit 90a5c9
#
Packit 90a5c9
XDCDATA		=
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# If there is an NLM target, put it here
Packit 90a5c9
#
Packit 90a5c9
TARGET_nlm = \
Packit 90a5c9
	$(OBJDIR)/proxy.nlm \
Packit 90a5c9
	$(EOLIST)
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# If there is an LIB target, put it here
Packit 90a5c9
#
Packit 90a5c9
TARGET_lib = \
Packit 90a5c9
	$(EOLIST)
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# These are the OBJ files needed to create the NLM target above.
Packit 90a5c9
# Paths must all use the '/' character
Packit 90a5c9
#
Packit 90a5c9
FILES_nlm_objs = \
Packit 90a5c9
	$(OBJDIR)/mod_proxy.o \
Packit 90a5c9
	$(OBJDIR)/proxy_util.o \
Packit 90a5c9
	$(OBJDIR)/libprews.o \
Packit 90a5c9
	$(EOLIST)
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# These are the LIB files needed to create the NLM target above.
Packit 90a5c9
# These will be added as a library command in the link.opt file.
Packit 90a5c9
#
Packit 90a5c9
FILES_nlm_libs = \
Packit 90a5c9
	$(PRELUDE) \
Packit 90a5c9
	$(EOLIST)
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# These are the modules that the above NLM target depends on to load.
Packit 90a5c9
# These will be added as a module command in the link.opt file.
Packit 90a5c9
#
Packit 90a5c9
FILES_nlm_modules = \
Packit 90a5c9
	aprlib \
Packit 90a5c9
	libc \
Packit 90a5c9
	$(EOLIST)
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# If the nlm has a msg file, put it's path here
Packit 90a5c9
#
Packit 90a5c9
FILE_nlm_msg =
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# If the nlm has a hlp file put it's path here
Packit 90a5c9
#
Packit 90a5c9
FILE_nlm_hlp =
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# If this is specified, it will override $(NWOS)\copyright.txt.
Packit 90a5c9
#
Packit 90a5c9
FILE_nlm_copyright =
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# Any additional imports go here
Packit 90a5c9
#
Packit 90a5c9
FILES_nlm_Ximports = \
Packit 90a5c9
	@aprlib.imp \
Packit 90a5c9
	@httpd.imp \
Packit 90a5c9
	@libc.imp \
Packit 90a5c9
	$(EOLIST)
Packit 90a5c9
Packit 90a5c9
# Don't link with Winsock if standard sockets are being used
Packit 90a5c9
ifndef USE_STDSOCKETS
Packit 90a5c9
FILES_nlm_Ximports += @ws2nlm.imp \
Packit 90a5c9
	$(EOLIST)
Packit 90a5c9
endif
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# Any symbols exported to here
Packit 90a5c9
#
Packit 90a5c9
FILES_nlm_exports = \
Packit 90a5c9
	@$(OBJDIR)/mod_proxy.imp \
Packit 90a5c9
	$(EOLIST)
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# These are the OBJ files needed to create the LIB target above.
Packit 90a5c9
# Paths must all use the '/' character
Packit 90a5c9
#
Packit 90a5c9
FILES_lib_objs = \
Packit 90a5c9
	$(EOLIST)
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# implement targets and dependancies (leave this section alone)
Packit 90a5c9
#
Packit 90a5c9
Packit 90a5c9
libs :: $(OBJDIR) $(TARGET_lib)
Packit 90a5c9
Packit 90a5c9
nlms :: libs $(OBJDIR)/mod_proxy.imp $(TARGET_nlm)
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# Updated this target to create necessary directories and copy files to the
Packit 90a5c9
# correct place.  (See $(AP_WORK)/build/NWGNUhead.inc for examples)
Packit 90a5c9
#
Packit 90a5c9
install :: nlms FORCE
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# Any specialized rules here
Packit 90a5c9
#
Packit 90a5c9
Packit 90a5c9
vpath %.c ../arch/netware
Packit 90a5c9
Packit 90a5c9
$(OBJDIR)/mod_proxy.imp: NWGNUproxy
Packit 90a5c9
	@echo $(DL)GEN  $@$(DL)
Packit 90a5c9
	@echo $(DL)# Exports of mod_proxy$(DL)> $@
Packit 90a5c9
	@echo $(DL) (AP$(VERSION_MAJMIN))$(DL)>> $@
Packit 90a5c9
	@echo $(DL) proxy_module,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) proxy_hcmethods,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) proxy_hook_canon_handler,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) proxy_hook_get_canon_handler,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) proxy_hook_get_post_request,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) proxy_hook_get_pre_request,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) proxy_hook_get_scheme_handler,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) proxy_hook_post_request,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) proxy_hook_pre_request,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) proxy_hook_scheme_handler,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) proxy_run_canon_handler,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) proxy_run_create_req,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) proxy_run_fixups,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) proxy_run_post_request,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) proxy_run_pre_request,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) proxy_run_request_status,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) proxy_run_scheme_handler,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_acquire_connection,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_backend_broke,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_buckets_lifetime_transform,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_c2hex,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_canon_netloc,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_canonenc,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_check_connection,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_checkproxyblock,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_checkproxyblock2,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_conn_is_https,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_connect_backend,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_connect_to_backend,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_connection_create,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_connection_reusable,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_cookie_reverse_map,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_create_hdrbrgd,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_define_balancer,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_define_worker,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_determine_connection,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_find_balancershm,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_find_workershm,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_get_balancer,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_get_worker,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_hashfunc,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_hex2c,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_initialize_balancer,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_initialize_worker,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_is_domainname,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_is_hostname,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_is_ipaddr,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_is_word,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_location_reverse_map,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_parse_wstatus,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_pass_brigade,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_port_of_scheme,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_post_request,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_pre_http_request,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_pre_request,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_release_connection,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_set_wstatus,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_share_balancer,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_share_worker,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_show_hcmethod,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_ssl_connection_cleanup,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_ssl_disable,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_ssl_enable,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_ssl_val,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_strncpy,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_sync_balancer,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_trans_match,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_transfer_between_connections,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_valid_balancer_name,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxy_worker_name,$(DL)>> $@
Packit 90a5c9
	@echo $(DL) ap_proxyerror$(DL)>> $@
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# Include the 'tail' makefile that has targets that depend on variables defined
Packit 90a5c9
# in this makefile
Packit 90a5c9
#
Packit 90a5c9
Packit 90a5c9
include $(APBUILD)/NWGNUtail.inc
Packit 90a5c9
Packit 90a5c9