NWGNUproxyajp revision 9b2bd54c98edb185a3985410367754ab33217362
70025d765b044c6d8594bb965a2247a61e991a99johnny# Make sure all needed macro's are defined
00d0963faf2e861a4aef6b1bf28f99a5b2b20755dilpreet# Get the 'head' of the build environment if necessary. This includes default
70025d765b044c6d8594bb965a2247a61e991a99johnny# targets and paths to tools
70025d765b044c6d8594bb965a2247a61e991a99johnnyifndef EnvironmentDefined
70025d765b044c6d8594bb965a2247a61e991a99johnnyinclude $(AP_WORK)\build\NWGNUhead.inc
70025d765b044c6d8594bb965a2247a61e991a99johnny# These directories will be at the beginning of the include list, followed by
70025d765b044c6d8594bb965a2247a61e991a99johnnyXINCDIRS += \
70025d765b044c6d8594bb965a2247a61e991a99johnny $(AP_WORK)/include \
cd21e7c548ae2a3b5e522244bf798f2a6b4ba02dGarrett D'Amore# These flags will come after CFLAGS
70025d765b044c6d8594bb965a2247a61e991a99johnnyXCFLAGS += \
70025d765b044c6d8594bb965a2247a61e991a99johnny# These defines will come after DEFINES
70025d765b044c6d8594bb965a2247a61e991a99johnnyXDEFINES += \
70025d765b044c6d8594bb965a2247a61e991a99johnny# These flags will be added to the link.opt file
00d0963faf2e861a4aef6b1bf28f99a5b2b20755dilpreetXLFLAGS += \
c333dd99c762d509c7eb6cce222221958e23b4c8dm# These values will be appended to the correct variables based on the value of
70025d765b044c6d8594bb965a2247a61e991a99johnnyifeq "$(RELEASE)" "debug"
70025d765b044c6d8594bb965a2247a61e991a99johnnyifeq "$(RELEASE)" "noopt"
70025d765b044c6d8594bb965a2247a61e991a99johnnyXINCDIRS += \
70025d765b044c6d8594bb965a2247a61e991a99johnnyXCFLAGS += \
00d0963faf2e861a4aef6b1bf28f99a5b2b20755dilpreetXDEFINES += \
00d0963faf2e861a4aef6b1bf28f99a5b2b20755dilpreetXLFLAGS += \
eae2e508a8e70b1ec407b10bd068c080651bbe5ckrishnaeifeq "$(RELEASE)" "release"
eae2e508a8e70b1ec407b10bd068c080651bbe5ckrishnaeXINCDIRS += \
eae2e508a8e70b1ec407b10bd068c080651bbe5ckrishnaeXCFLAGS += \
eae2e508a8e70b1ec407b10bd068c080651bbe5ckrishnaeXDEFINES += \
70025d765b044c6d8594bb965a2247a61e991a99johnnyXLFLAGS += \
cd21e7c548ae2a3b5e522244bf798f2a6b4ba02dGarrett D'Amore# These are used by the link target if an NLM is being generated
70025d765b044c6d8594bb965a2247a61e991a99johnny# This is used by the link 'name' directive to name the nlm. If left blank
70025d765b044c6d8594bb965a2247a61e991a99johnny# TARGET_nlm (see below) will be used.
70025d765b044c6d8594bb965a2247a61e991a99johnnyNLM_NAME = proxyajp
70025d765b044c6d8594bb965a2247a61e991a99johnny# This is used by the link '-desc ' directive.
70025d765b044c6d8594bb965a2247a61e991a99johnny# If left blank, NLM_NAME will be used.
269473047d747f7815af570197e4ef7322d3632cEvan YanNLM_DESCRIPTION = Apache $(VERSION_STR) Proxy AJP Sub-Module
269473047d747f7815af570197e4ef7322d3632cEvan Yan# This is used by the '-threadname' directive. If left blank,
269473047d747f7815af570197e4ef7322d3632cEvan Yan# NLM_NAME Thread will be used.
269473047d747f7815af570197e4ef7322d3632cEvan YanNLM_THREAD_NAME = Proxy AJP Module
269473047d747f7815af570197e4ef7322d3632cEvan Yan# If this is specified, it will override VERSION value in
269473047d747f7815af570197e4ef7322d3632cEvan Yan# $(AP_WORK)\build\NWGNUenvironment.inc
269473047d747f7815af570197e4ef7322d3632cEvan YanNLM_VERSION =
70025d765b044c6d8594bb965a2247a61e991a99johnny# If this is specified, it will override the default of 64K
70025d765b044c6d8594bb965a2247a61e991a99johnnyNLM_STACK_SIZE = 8192
70025d765b044c6d8594bb965a2247a61e991a99johnny# If this is specified it will be used by the link '-entry' directive
70025d765b044c6d8594bb965a2247a61e991a99johnnyNLM_ENTRY_SYM = _LibCPrelude
70025d765b044c6d8594bb965a2247a61e991a99johnny# If this is specified it will be used by the link '-exit' directive
70025d765b044c6d8594bb965a2247a61e991a99johnnyNLM_EXIT_SYM = _LibCPostlude
70025d765b044c6d8594bb965a2247a61e991a99johnny# If this is specified it will be used by the link '-check' directive
269473047d747f7815af570197e4ef7322d3632cEvan YanNLM_CHECK_SYM =
70025d765b044c6d8594bb965a2247a61e991a99johnny# If these are specified it will be used by the link '-flags' directive
70025d765b044c6d8594bb965a2247a61e991a99johnnyNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
70025d765b044c6d8594bb965a2247a61e991a99johnny# If this is specified it will be linked in with the XDCData option in the def
70025d765b044c6d8594bb965a2247a61e991a99johnny# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
70025d765b044c6d8594bb965a2247a61e991a99johnny# by setting APACHE_UNIPROC in the environment
70025d765b044c6d8594bb965a2247a61e991a99johnny# If there is an NLM target, put it here
70025d765b044c6d8594bb965a2247a61e991a99johnnyTARGET_nlm = \
70025d765b044c6d8594bb965a2247a61e991a99johnny# If there is an LIB target, put it here
70025d765b044c6d8594bb965a2247a61e991a99johnnyTARGET_lib = \
193974072f41a843678abf5f61979c748687e66bSherry Moore# These are the OBJ files needed to create the NLM target above.
70025d765b044c6d8594bb965a2247a61e991a99johnny# Paths must all use the '/' character
70025d765b044c6d8594bb965a2247a61e991a99johnnyFILES_nlm_objs = \
70025d765b044c6d8594bb965a2247a61e991a99johnny# These are the LIB files needed to create the NLM target above.
70025d765b044c6d8594bb965a2247a61e991a99johnny# These will be added as a library command in the link.opt file.
337fc9e235877b459e389f54daf9833bbc645439anishFILES_nlm_libs = \
cb7ea99db394f3bd5f4a6c6bf58c8c52df3508f0Jimmy Vetayases# These are the modules that the above NLM target depends on to load.
cb7ea99db394f3bd5f4a6c6bf58c8c52df3508f0Jimmy Vetayases# These will be added as a module command in the link.opt file.
70025d765b044c6d8594bb965a2247a61e991a99johnnyFILES_nlm_modules = \
269473047d747f7815af570197e4ef7322d3632cEvan Yan# If the nlm has a msg file, put it's path here
70025d765b044c6d8594bb965a2247a61e991a99johnnyFILE_nlm_msg =
70025d765b044c6d8594bb965a2247a61e991a99johnny# If the nlm has a hlp file put it's path here
70025d765b044c6d8594bb965a2247a61e991a99johnnyFILE_nlm_hlp =
70025d765b044c6d8594bb965a2247a61e991a99johnny# If this is specified, it will override $(NWOS)\copyright.txt.
70025d765b044c6d8594bb965a2247a61e991a99johnnyFILE_nlm_copyright =
70025d765b044c6d8594bb965a2247a61e991a99johnny# Any additional imports go here
70025d765b044c6d8594bb965a2247a61e991a99johnnyFILES_nlm_Ximports = \
70025d765b044c6d8594bb965a2247a61e991a99johnny proxy_module \
70025d765b044c6d8594bb965a2247a61e991a99johnny proxy_hook_scheme_handler \
70025d765b044c6d8594bb965a2247a61e991a99johnny proxy_hook_canon_handler \
70025d765b044c6d8594bb965a2247a61e991a99johnny proxy_run_fixups \
70025d765b044c6d8594bb965a2247a61e991a99johnny ap_proxy_ssl_enable \
70025d765b044c6d8594bb965a2247a61e991a99johnny ap_proxy_ssl_disable \
70025d765b044c6d8594bb965a2247a61e991a99johnny# Any symbols exported to here
70025d765b044c6d8594bb965a2247a61e991a99johnnyFILES_nlm_exports = \
70025d765b044c6d8594bb965a2247a61e991a99johnny proxy_ajp_module \
70025d765b044c6d8594bb965a2247a61e991a99johnny# These are the OBJ files needed to create the LIB target above.
70025d765b044c6d8594bb965a2247a61e991a99johnny# Paths must all use the '/' character
70025d765b044c6d8594bb965a2247a61e991a99johnnyFILES_lib_objs = \
70025d765b044c6d8594bb965a2247a61e991a99johnny# implement targets and dependancies (leave this section alone)
70025d765b044c6d8594bb965a2247a61e991a99johnnylibs :: $(OBJDIR) $(TARGET_lib)
70025d765b044c6d8594bb965a2247a61e991a99johnnynlms :: libs $(TARGET_nlm)
269473047d747f7815af570197e4ef7322d3632cEvan Yan# Updated this target to create necessary directories and copy files to the
269473047d747f7815af570197e4ef7322d3632cEvan Yan# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
269473047d747f7815af570197e4ef7322d3632cEvan Yaninstall :: nlms FORCE
269473047d747f7815af570197e4ef7322d3632cEvan Yan# Any specialized rules here
269473047d747f7815af570197e4ef7322d3632cEvan Yan# Include the 'tail' makefile that has targets that depend on variables defined
269473047d747f7815af570197e4ef7322d3632cEvan Yan# in this makefile
269473047d747f7815af570197e4ef7322d3632cEvan Yaninclude $(AP_WORK)\build\NWGNUtail.inc