NWGNUproxy revision 8ffac2c334103c0336602aaede650cb578611151
cd21e7c548ae2a3b5e522244bf798f2a6b4ba02dGarrett D'Amore# Make sure all needed macro's are defined
cd21e7c548ae2a3b5e522244bf798f2a6b4ba02dGarrett D'Amore# Get the 'head' of the build environment if necessary. This includes default
cd21e7c548ae2a3b5e522244bf798f2a6b4ba02dGarrett D'Amore# targets and paths to tools
cd21e7c548ae2a3b5e522244bf798f2a6b4ba02dGarrett D'Amoreifndef EnvironmentDefined
b89e420ae1290e425c29db875ec0c0546006eec7Garrett D'Amore# These directories will be at the beginning of the include list, followed by
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweXINCDIRS += \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov $(APR)/include \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(APRUTIL)/include \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov $(AP_WORK)/include \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# These flags will come after CFLAGS
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# These defines will come after DEFINES
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweXDEFINES += \
fa9922c2be34868be01989cef133828185b5c0bcRobert Mustacchi# These flags will be added to the link.opt file
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# These values will be appended to the correct variables based on the value of
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweifeq "$(RELEASE)" "debug"
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweXINCDIRS += \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweXDEFINES += \
ebf4a993df0df43f7a5f7a6e512d1df78b9875c0Garrett D'Amoreifeq "$(RELEASE)" "noopt"
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweXINCDIRS += \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweXDEFINES += \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweifeq "$(RELEASE)" "release"
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweXINCDIRS += \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweXDEFINES += \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# These are used by the link target if an NLM is being generated
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# This is used by the link 'name' directive to name the nlm. If left blank
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# TARGET_nlm (see below) will be used.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweNLM_NAME = proxy
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# This is used by the link '-desc ' directive.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# If left blank, NLM_NAME will be used.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweNLM_DESCRIPTION = Apache $(VERSION_STR) Proxy Module
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# This is used by the '-threadname' directive. If left blank,
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# NLM_NAME Thread will be used.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweNLM_THREAD_NAME = Proxy Module
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# If this is specified, it will override VERSION value in
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweNLM_VERSION =
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# If this is specified, it will override the default of 64K
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweNLM_STACK_SIZE = 8192
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# If this is specified it will be used by the link '-entry' directive
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweNLM_ENTRY_SYM =
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# If this is specified it will be used by the link '-exit' directive
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweNLM_EXIT_SYM =
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# If this is specified it will be used by the link '-check' directive
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweNLM_CHECK_SYM =
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# If these are specified it will be used by the link '-flags' directive
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# If this is specified it will be linked in with the XDCData option in the def
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# by setting APACHE_UNIPROC in the environment
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# If there is an NLM target, put it here
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweTARGET_nlm = \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# If there is an LIB target, put it here
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweTARGET_lib = \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# These are the OBJ files needed to create the NLM target above.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Paths must all use the '/' character
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFILES_nlm_objs = \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# These are the LIB files needed to create the NLM target above.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# These will be added as a library command in the link.opt file.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFILES_nlm_libs = \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# These are the modules that the above NLM target depends on to load.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# These will be added as a module command in the link.opt file.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFILES_nlm_modules = \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# If the nlm has a msg file, put it's path here
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFILE_nlm_msg =
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# If the nlm has a hlp file put it's path here
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFILE_nlm_hlp =
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# If this is specified, it will override $(NWOS)\copyright.txt.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFILE_nlm_copyright =
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Any additional imports go here
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFILES_nlm_Ximports = \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Don't link with Winsock if standard sockets are being used
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweifndef USE_STDSOCKETS
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFILES_nlm_Ximports += @ws2nlm.imp \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Any symbols exported to here
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFILES_nlm_exports = \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# These are the OBJ files needed to create the LIB target above.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Paths must all use the '/' character
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFILES_lib_objs = \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# implement targets and dependancies (leave this section alone)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowelibs :: $(OBJDIR) $(TARGET_lib)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowenlms :: libs $(OBJDIR)/mod_proxy.imp $(TARGET_nlm)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Updated this target to create necessary directories and copy files to the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinstall :: nlms FORCE
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Any specialized rules here
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe @echo Creating $@
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe @echo # Exports of mod_proxy > $@
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe @echo (AP$(VERSION_MAJMIN)) >> $@
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe @echo proxy_module, >> $@
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe @echo proxy_hook_canon_handler, >> $@
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe @echo proxy_hook_post_request, >> $@
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe @echo proxy_hook_pre_request, >> $@
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe @echo proxy_hook_scheme_handler, >> $@
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe @echo proxy_run_fixups, >> $@
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe @echo ap_proxy_conn_is_https, >> $@
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe @echo ap_proxy_ssl_enable, >> $@
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe @echo ap_proxy_ssl_disable, >> $@
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe @echo ap_proxy_ssl_val >> $@
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Include the 'tail' makefile that has targets that depend on variables defined
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# in this makefile
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinclude $(APBUILD)/NWGNUtail.inc