NWGNUproxyajp revision 9b2bd54c98edb185a3985410367754ab33217362
5cd4555ad444fd391002ae32450572054369fd42Rob Austein# Make sure all needed macro's are defined
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Get the 'head' of the build environment if necessary. This includes default
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# targets and paths to tools
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellingtonifndef EnvironmentDefined
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellingtoninclude $(AP_WORK)\build\NWGNUhead.inc
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# These directories will be at the beginning of the include list, followed by
dafcb997e390efa4423883dafd100c975c4095d6Mark AndrewsXINCDIRS += \
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington $(AP_WORK)/include \
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# These flags will come after CFLAGS
141132c272ebc41da4c55d69c49810fafadbbc11Mark Andrews# These defines will come after DEFINES
5c6b95ba1b2e35f8dd6b0a7f25aacba91fff3aa2Tinderbox User# These flags will be added to the link.opt file
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# These values will be appended to the correct variables based on the value of
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinifeq "$(RELEASE)" "debug"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinXINCDIRS += \
bca7f81db58d4803fb6d8d352132445cf61eb1acMark Andrewsifeq "$(RELEASE)" "noopt"
c5223c9cb7c22620d5ee6611228673e95b48a270Mark AndrewsXDEFINES += \
4025076ca2822fc420830c97eb6597294a5a1faaFrancis Dupontifeq "$(RELEASE)" "release"
3d17a3ba61a303d5c4d9867068d0fbe9f24d2988Mark AndrewsXINCDIRS += \
a903095bf4512dae561c7f6fc7854a51bebf334aMark AndrewsXDEFINES += \
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews# These are used by the link target if an NLM is being generated
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews# This is used by the link 'name' directive to name the nlm. If left blank
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews# TARGET_nlm (see below) will be used.
dc6da18ccbb808d21f123cc6bda399b44ad11445Mark AndrewsNLM_NAME = proxyajp
578e3196076b409c509c6c0a0873e7bfe54f4d61Evan Hunt# This is used by the link '-desc ' directive.
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews# If left blank, NLM_NAME will be used.
a903095bf4512dae561c7f6fc7854a51bebf334aMark AndrewsNLM_DESCRIPTION = Apache $(VERSION_STR) Proxy AJP Sub-Module
f30785f506a522ed6a5e394af2bb13b6f883927eEvan Hunt# This is used by the '-threadname' directive. If left blank,
3d17a3ba61a303d5c4d9867068d0fbe9f24d2988Mark Andrews# NLM_NAME Thread will be used.
43efd9fa56b03e3e285fb58859efc9348c7f4a9fMark AndrewsNLM_THREAD_NAME = Proxy AJP Module
d0aebc5a55b6145297d94f8aee939852357c59fcMark Andrews# If this is specified, it will override VERSION value in
508f61f8d699c46f962b682f388e54b446a7194dMark Andrews# $(AP_WORK)\build\NWGNUenvironment.inc
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# If this is specified, it will override the default of 64K
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonNLM_STACK_SIZE = 8192
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If this is specified it will be used by the link '-entry' directive
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinNLM_ENTRY_SYM = _LibCPrelude
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews# If this is specified it will be used by the link '-exit' directive
a903095bf4512dae561c7f6fc7854a51bebf334aMark AndrewsNLM_EXIT_SYM = _LibCPostlude
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews# If this is specified it will be used by the link '-check' directive
a903095bf4512dae561c7f6fc7854a51bebf334aMark AndrewsNLM_CHECK_SYM =
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# If these are specified it will be used by the link '-flags' directive
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# If this is specified it will be linked in with the XDCData option in the def
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# by setting APACHE_UNIPROC in the environment
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If there is an NLM target, put it here
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonTARGET_nlm = \
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews# If there is an LIB target, put it here
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark AndrewsTARGET_lib = \
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# These are the OBJ files needed to create the NLM target above.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Paths must all use the '/' character
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinFILES_nlm_objs = \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# These are the LIB files needed to create the NLM target above.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# These will be added as a library command in the link.opt file.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinFILES_nlm_libs = \
7791dd06ea69d0fb2494788ad4c24d568f40bcdfMark Andrews# These are the modules that the above NLM target depends on to load.
e9359db5e958bf05f9b9c5fe3c27d533f0f05550Mark Andrews# These will be added as a module command in the link.opt file.
7791dd06ea69d0fb2494788ad4c24d568f40bcdfMark AndrewsFILES_nlm_modules = \
578e3196076b409c509c6c0a0873e7bfe54f4d61Evan Hunt# If the nlm has a msg file, put it's path here
578e3196076b409c509c6c0a0873e7bfe54f4d61Evan HuntFILE_nlm_msg =
578e3196076b409c509c6c0a0873e7bfe54f4d61Evan Hunt# If the nlm has a hlp file put it's path here
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinFILE_nlm_hlp =
7791dd06ea69d0fb2494788ad4c24d568f40bcdfMark Andrews# If this is specified, it will override $(NWOS)\copyright.txt.
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonFILE_nlm_copyright =
f9f11eb54be19b7deedf3978496f71d81432a5eeJeremy Reed# Any additional imports go here
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinFILES_nlm_Ximports = \
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews proxy_module \
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews proxy_hook_scheme_handler \
561a29af8c54a216e7d30b5b4f6e0d21661654ecMark Andrews proxy_hook_canon_handler \
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews proxy_run_fixups \
2c15fcdeac4c2402258867fbac24d7475ef98259Mark Andrews ap_proxy_ssl_enable \
2c15fcdeac4c2402258867fbac24d7475ef98259Mark Andrews ap_proxy_ssl_disable \
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews# Any symbols exported to here
c5223c9cb7c22620d5ee6611228673e95b48a270Mark AndrewsFILES_nlm_exports = \
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews proxy_ajp_module \
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews# These are the OBJ files needed to create the LIB target above.
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews# Paths must all use the '/' character
c5223c9cb7c22620d5ee6611228673e95b48a270Mark AndrewsFILES_lib_objs = \
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews# implement targets and dependancies (leave this section alone)
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrewslibs :: $(OBJDIR) $(TARGET_lib)
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrewsnlms :: libs $(TARGET_nlm)
2c15fcdeac4c2402258867fbac24d7475ef98259Mark Andrews# Updated this target to create necessary directories and copy files to the
2c15fcdeac4c2402258867fbac24d7475ef98259Mark Andrews# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
2c15fcdeac4c2402258867fbac24d7475ef98259Mark Andrewsinstall :: nlms FORCE
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews# Any specialized rules here
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews# Include the 'tail' makefile that has targets that depend on variables defined
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews# in this makefile
6844e3f010440a9f3eb200b3c2123a19e58a64dcEvan Huntinclude $(AP_WORK)\build\NWGNUtail.inc