NWGNUproxybalancer revision ac7985784d08a3655291f24f711812b4d8b1cbcf
11e9368a226272085c337e9e74b79808c16fbdbaTinderbox User# Make sure all needed macro's are defined
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Get the 'head' of the build environment if necessary. This includes default
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# targets and paths to tools
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinifndef EnvironmentDefined
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininclude $(AP_WORK)\build\NWGNUhead.inc
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These directories will be at the beginning of the include list, followed by
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinXINCDIRS += \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(AP_WORK)/include \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(APR)/include \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(APRUTIL)/include \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These flags will come after CFLAGS
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These defines will come after DEFINES
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinXDEFINES += \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# These flags will be added to the link.opt file
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# These values will be appended to the correct variables based on the value of
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntifeq "$(RELEASE)" "debug"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinXINCDIRS += \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntXDEFINES += \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntifeq "$(RELEASE)" "noopt"
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntXINCDIRS += \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntXDEFINES += \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinifeq "$(RELEASE)" "release"
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntXINCDIRS += \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntXDEFINES += \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These are used by the link target if an NLM is being generated
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# This is used by the link 'name' directive to name the nlm. If left blank
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# TARGET_nlm (see below) will be used.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntNLM_NAME = proxybalancer
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# This is used by the link '-desc ' directive.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# If left blank, NLM_NAME will be used.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntNLM_DESCRIPTION = Apache $(VERSION_STR) Proxy Balancer Sub-Module
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# This is used by the '-threadname' directive. If left blank,
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# NLM_NAME Thread will be used.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinNLM_THREAD_NAME = Prxy Blncr Module
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# If this is specified, it will override VERSION value in
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# $(AP_WORK)\build\NWGNUenvironment.inc
71c66a876ecca77923638d3f94cc0783152b2f03Mark AndrewsNLM_VERSION =
71c66a876ecca77923638d3f94cc0783152b2f03Mark Andrews# If this is specified, it will override the default of 64K
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinNLM_STACK_SIZE = 8192
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# If this is specified it will be used by the link '-entry' directive
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinNLM_ENTRY_SYM = _LibCPrelude
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If this is specified it will be used by the link '-exit' directive
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinNLM_EXIT_SYM = _LibCPostlude
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# If this is specified it will be used by the link '-check' directive
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinNLM_CHECK_SYM =
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# If these are specified it will be used by the link '-flags' directive
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If this is specified it will be linked in with the XDCData option in the def
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# by setting APACHE_UNIPROC in the environment
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If there is an NLM target, put it here
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinTARGET_nlm = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If there is an LIB target, put it here
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinTARGET_lib = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These are the OBJ files needed to create the NLM target above.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Paths must all use the '/' character
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILES_nlm_objs = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These are the LIB files needed to create the NLM target above.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# These will be added as a library command in the link.opt file.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsFILES_nlm_libs = \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# These are the modules that the above NLM target depends on to load.
b05bdb520d83f7ecaad708fe305268c3420be01dMark Andrews# These will be added as a module command in the link.opt file.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsFILES_nlm_modules = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If the nlm has a msg file, put it's path here
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILE_nlm_msg =
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If the nlm has a hlp file put it's path here
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILE_nlm_hlp =
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If this is specified, it will override $(NWOS)\copyright.txt.
afb33f777af856f8c3382604a7a8ffdfe2b512c5Automatic UpdaterFILE_nlm_copyright =
afb33f777af856f8c3382604a7a8ffdfe2b512c5Automatic Updater# Any additional imports go here
afb33f777af856f8c3382604a7a8ffdfe2b512c5Automatic UpdaterFILES_nlm_Ximports = \
afb33f777af856f8c3382604a7a8ffdfe2b512c5Automatic Updater proxy_module \
afb33f777af856f8c3382604a7a8ffdfe2b512c5Automatic Updater proxy_hook_scheme_handler \
afb33f777af856f8c3382604a7a8ffdfe2b512c5Automatic Updater proxy_hook_canon_handler \
afb33f777af856f8c3382604a7a8ffdfe2b512c5Automatic Updater proxy_hook_pre_request \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein proxy_hook_post_request \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein proxy_hook_load_lbmethods \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein proxy_run_fixups \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein ap_proxy_ssl_enable \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein ap_proxy_ssl_disable \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Don't link with Winsock if standard sockets are being used
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntifndef USE_STDSOCKETS
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntFILES_nlm_Ximports += @ws2nlm.imp \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Any symbols exported to here
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILES_nlm_exports = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein proxy_balancer_module \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These are the OBJ files needed to create the LIB target above.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Paths must all use the '/' character
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILES_lib_objs = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# implement targets and dependancies (leave this section alone)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinlibs :: $(OBJDIR) $(TARGET_lib)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinnlms :: libs $(TARGET_nlm)
ceeb18e6907a10547859faa340ecad83bedae90cMark Andrews# Updated this target to create necessary directories and copy files to the
ceeb18e6907a10547859faa340ecad83bedae90cMark Andrews# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
ceeb18e6907a10547859faa340ecad83bedae90cMark Andrewsinstall :: nlms FORCE
ceeb18e6907a10547859faa340ecad83bedae90cMark Andrews# Any specialized rules here
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Include the 'tail' makefile that has targets that depend on variables defined
ceeb18e6907a10547859faa340ecad83bedae90cMark Andrews# in this makefile
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininclude $(AP_WORK)\build\NWGNUtail.inc