NWGNUproxy revision 0cb770e9049c8e85ede0bbe3d47904785b15f868
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# Make sure all needed macro's are defined
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# Get the 'head' of the build environment if necessary. This includes default
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# targets and paths to tools
14ea4bb737263733ad80a36b4f73f681c30a6b45sdifndef EnvironmentDefined
14ea4bb737263733ad80a36b4f73f681c30a6b45sdinclude $(AP_WORK)\build\NWGNUhead.inc
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# These directories will be at the beginning of the include list, followed by
14ea4bb737263733ad80a36b4f73f681c30a6b45sdXINCDIRS += \
14ea4bb737263733ad80a36b4f73f681c30a6b45sd $(AP_WORK)/include \
14ea4bb737263733ad80a36b4f73f681c30a6b45sd $(APR)/include \
14ea4bb737263733ad80a36b4f73f681c30a6b45sd $(APRUTIL)/include \
dd566498928f08e7c9a79797a40db893c6a4b9fbvn# These flags will come after CFLAGS
14ea4bb737263733ad80a36b4f73f681c30a6b45sdXCFLAGS += \
dd566498928f08e7c9a79797a40db893c6a4b9fbvn# These defines will come after DEFINES
25c6ff4b77fcddf4097ce78a8277275ca603b46cstephhXDEFINES += \
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# These flags will be added to the link.opt file
14ea4bb737263733ad80a36b4f73f681c30a6b45sdXLFLAGS += \
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# These values will be appended to the correct variables based on the value of
dd566498928f08e7c9a79797a40db893c6a4b9fbvnifeq "$(RELEASE)" "debug"
dd566498928f08e7c9a79797a40db893c6a4b9fbvnXINCDIRS += \
dd566498928f08e7c9a79797a40db893c6a4b9fbvnXCFLAGS += \
dd566498928f08e7c9a79797a40db893c6a4b9fbvnXDEFINES += \
14ea4bb737263733ad80a36b4f73f681c30a6b45sdXLFLAGS += \
14ea4bb737263733ad80a36b4f73f681c30a6b45sdifeq "$(RELEASE)" "noopt"
dd566498928f08e7c9a79797a40db893c6a4b9fbvnXINCDIRS += \
25c6ff4b77fcddf4097ce78a8277275ca603b46cstephhXCFLAGS += \
dd566498928f08e7c9a79797a40db893c6a4b9fbvnXDEFINES += \
dd566498928f08e7c9a79797a40db893c6a4b9fbvnXLFLAGS += \
14ea4bb737263733ad80a36b4f73f681c30a6b45sdifeq "$(RELEASE)" "release"
14ea4bb737263733ad80a36b4f73f681c30a6b45sdXINCDIRS += \
14ea4bb737263733ad80a36b4f73f681c30a6b45sdXCFLAGS += \
14ea4bb737263733ad80a36b4f73f681c30a6b45sdXDEFINES += \
14ea4bb737263733ad80a36b4f73f681c30a6b45sdXLFLAGS += \
6876da76f91687fee15a706830b990a2c0d55157Trang Do# These are used by the link target if an NLM is being generated
6876da76f91687fee15a706830b990a2c0d55157Trang Do# This is used by the link 'name' directive to name the nlm. If left blank
6876da76f91687fee15a706830b990a2c0d55157Trang Do# TARGET_nlm (see below) will be used.
6876da76f91687fee15a706830b990a2c0d55157Trang DoNLM_NAME = proxy
6876da76f91687fee15a706830b990a2c0d55157Trang Do# This is used by the link '-desc ' directive.
6876da76f91687fee15a706830b990a2c0d55157Trang Do# If left blank, NLM_NAME will be used.
6876da76f91687fee15a706830b990a2c0d55157Trang DoNLM_DESCRIPTION = Apache $(VERSION_STR) Proxy Module
6876da76f91687fee15a706830b990a2c0d55157Trang Do# This is used by the '-threadname' directive. If left blank,
6876da76f91687fee15a706830b990a2c0d55157Trang Do# NLM_NAME Thread will be used.
6876da76f91687fee15a706830b990a2c0d55157Trang DoNLM_THREAD_NAME = Proxy Module
6876da76f91687fee15a706830b990a2c0d55157Trang Do# If this is specified, it will override VERSION value in
6876da76f91687fee15a706830b990a2c0d55157Trang Do# $(AP_WORK)\build\NWGNUenvironment.inc
6876da76f91687fee15a706830b990a2c0d55157Trang DoNLM_VERSION =
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# If this is specified, it will override the default of 64K
14ea4bb737263733ad80a36b4f73f681c30a6b45sdNLM_STACK_SIZE = 8192
1557e65f9d0c6fde875d807c12fc03ea20f50280vn# If this is specified it will be used by the link '-entry' directive
dd566498928f08e7c9a79797a40db893c6a4b9fbvnNLM_ENTRY_SYM = _LibCPrelude
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# If this is specified it will be used by the link '-exit' directive
dd566498928f08e7c9a79797a40db893c6a4b9fbvnNLM_EXIT_SYM = _LibCPostlude
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# If this is specified it will be used by the link '-check' directive
dd566498928f08e7c9a79797a40db893c6a4b9fbvnNLM_CHECK_SYM =
1557e65f9d0c6fde875d807c12fc03ea20f50280vn# If these are specified it will be used by the link '-flags' directive
dd566498928f08e7c9a79797a40db893c6a4b9fbvnNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# If this is specified it will be linked in with the XDCData option in the def
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# by setting APACHE_UNIPROC in the environment
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# If there is an NLM target, put it here
dd566498928f08e7c9a79797a40db893c6a4b9fbvnTARGET_nlm = \
14ea4bb737263733ad80a36b4f73f681c30a6b45sd $(OBJDIR)/proxy.nlm \
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# If there is an LIB target, put it here
14ea4bb737263733ad80a36b4f73f681c30a6b45sdTARGET_lib = \
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# These are the OBJ files needed to create the NLM target above.
dd566498928f08e7c9a79797a40db893c6a4b9fbvn# Paths must all use the '/' character
dd566498928f08e7c9a79797a40db893c6a4b9fbvnFILES_nlm_objs = \
dd566498928f08e7c9a79797a40db893c6a4b9fbvn $(OBJDIR)/libprews.o \
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# These are the LIB files needed to create the NLM target above.
dd566498928f08e7c9a79797a40db893c6a4b9fbvn# These will be added as a library command in the link.opt file.
dd566498928f08e7c9a79797a40db893c6a4b9fbvnFILES_nlm_libs = \
1557e65f9d0c6fde875d807c12fc03ea20f50280vn# These are the modules that the above NLM target depends on to load.
dd566498928f08e7c9a79797a40db893c6a4b9fbvn# These will be added as a module command in the link.opt file.
535ec645ca371f1ce298eaf76bf8feb73494f923dduvallFILES_nlm_modules = \
1557e65f9d0c6fde875d807c12fc03ea20f50280vn# If the nlm has a msg file, put it's path here
6876da76f91687fee15a706830b990a2c0d55157Trang DoFILE_nlm_msg =
1557e65f9d0c6fde875d807c12fc03ea20f50280vn# If the nlm has a hlp file put it's path here
ef8846857fcf954444cdc77e72249afef48377d2rbFILE_nlm_hlp =
dd566498928f08e7c9a79797a40db893c6a4b9fbvn# If this is specified, it will override $(NWOS)\copyright.txt.
dd566498928f08e7c9a79797a40db893c6a4b9fbvnFILE_nlm_copyright =
535ec645ca371f1ce298eaf76bf8feb73494f923dduvall# Any additional imports go here
ef8846857fcf954444cdc77e72249afef48377d2rbFILES_nlm_Ximports = \
25c6ff4b77fcddf4097ce78a8277275ca603b46cstephh# Don't link with Winsock if standard sockets are being used
25c6ff4b77fcddf4097ce78a8277275ca603b46cstephhifndef USE_STDSOCKETS
25c6ff4b77fcddf4097ce78a8277275ca603b46cstephhFILES_nlm_Ximports += @ws2nlm.imp \
25c6ff4b77fcddf4097ce78a8277275ca603b46cstephh# Any symbols exported to here
25c6ff4b77fcddf4097ce78a8277275ca603b46cstephhFILES_nlm_exports = \
25c6ff4b77fcddf4097ce78a8277275ca603b46cstephh# These are the OBJ files needed to create the LIB target above.
25c6ff4b77fcddf4097ce78a8277275ca603b46cstephh# Paths must all use the '/' character
25c6ff4b77fcddf4097ce78a8277275ca603b46cstephhFILES_lib_objs = \
25c6ff4b77fcddf4097ce78a8277275ca603b46cstephh# implement targets and dependancies (leave this section alone)
6876da76f91687fee15a706830b990a2c0d55157Trang Dolibs :: $(OBJDIR) $(TARGET_lib)
25c6ff4b77fcddf4097ce78a8277275ca603b46cstephhnlms :: libs $(OBJDIR)/mod_proxy.imp $(TARGET_nlm)
25c6ff4b77fcddf4097ce78a8277275ca603b46cstephh# Updated this target to create necessary directories and copy files to the
25c6ff4b77fcddf4097ce78a8277275ca603b46cstephh# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
25c6ff4b77fcddf4097ce78a8277275ca603b46cstephhinstall :: nlms FORCE
25c6ff4b77fcddf4097ce78a8277275ca603b46cstephh# Any specialized rules here
25c6ff4b77fcddf4097ce78a8277275ca603b46cstephh @echo Creating $@
25c6ff4b77fcddf4097ce78a8277275ca603b46cstephh @echo # Exports of mod_proxy > $@
dd566498928f08e7c9a79797a40db893c6a4b9fbvn @echo proxy_module, >> $@
ef8846857fcf954444cdc77e72249afef48377d2rb @echo proxy_hook_canon_handler, >> $@
dd566498928f08e7c9a79797a40db893c6a4b9fbvn @echo proxy_hook_post_request, >> $@
dd566498928f08e7c9a79797a40db893c6a4b9fbvn @echo proxy_hook_pre_request, >> $@
ef8846857fcf954444cdc77e72249afef48377d2rb @echo proxy_hook_scheme_handler, >> $@
dd566498928f08e7c9a79797a40db893c6a4b9fbvn @echo proxy_run_fixups, >> $@
dd566498928f08e7c9a79797a40db893c6a4b9fbvn @echo ap_proxy_conn_is_https, >> $@
dd566498928f08e7c9a79797a40db893c6a4b9fbvn @echo ap_proxy_ssl_enable, >> $@
dd566498928f08e7c9a79797a40db893c6a4b9fbvn @echo ap_proxy_ssl_disable, >> $@
13faa91230bde46da937bf33010b9accc5bdeb59sd @echo ap_proxy_ssl_val >> $@
dd566498928f08e7c9a79797a40db893c6a4b9fbvn# Include the 'tail' makefile that has targets that depend on variables defined
dd566498928f08e7c9a79797a40db893c6a4b9fbvn# in this makefile
dd566498928f08e7c9a79797a40db893c6a4b9fbvninclude $(AP_WORK)\build\NWGNUtail.inc