NWGNUproxybalancer revision 44f575c8cb19a7a5cd61664a7848be6bc197df02
205c10066a0acfeac52d1a135671f41d207b8557Automatic Updater# Make sure all needed macro's are defined
46da3117812814a29432a8d9a9ccf8acdbfdadceAutomatic Updater# Get the 'head' of the build environment if necessary. This includes default
2bb3422dc683c013db7042f5736240de6b86f182Automatic Updater# targets and paths to tools
ea854b585041ad19f70f7af15e08144ef2c2bd1bMark Andrewsifndef EnvironmentDefined
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# These directories will be at the beginning of the include list, followed by
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic Updater $(APR)/include \
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater $(APRUTIL)/include \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(SRC)/include \
58be84825d7f5de30e50eb7206b37227ecd8055bAutomatic Updater $(STDMOD)/http \
831f79c4310a7d38fc3475ccfff531b2b2535641Automatic Updater# These flags will come after CFLAGS
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# These defines will come after DEFINES
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# These flags will be added to the link.opt file
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# These values will be appended to the correct variables based on the value of
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic Updaterifeq "$(RELEASE)" "debug"
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntXINCDIRS += \
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrewsifeq "$(RELEASE)" "noopt"
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsXINCDIRS += \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsXDEFINES += \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsifeq "$(RELEASE)" "release"
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater# These are used by the link target if an NLM is being generated
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater# This is used by the link 'name' directive to name the nlm. If left blank
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews# TARGET_nlm (see below) will be used.
9174e44c14b1cb91a651fa1dc29470438c246ab9Automatic UpdaterNLM_NAME = proxybalancer
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# This is used by the link '-desc ' directive.
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# If left blank, NLM_NAME will be used.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsNLM_DESCRIPTION = Apache $(VERSION_STR) Proxy Balancer Sub-Module
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# This is used by the '-threadname' directive. If left blank,
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews# NLM_NAME Thread will be used.
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic UpdaterNLM_THREAD_NAME = Prxy Blncr Module
b29e5c56eb74a6de1a84c29879afc90ffc6b1436Automatic Updater# If this is specified, it will override VERSION value in
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsNLM_VERSION =
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# If this is specified, it will override the default of 64K
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic UpdaterNLM_STACK_SIZE = 8192
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater# If this is specified it will be used by the link '-entry' directive
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterNLM_ENTRY_SYM =
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# If this is specified it will be used by the link '-exit' directive
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater# If this is specified it will be used by the link '-check' directive
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic UpdaterNLM_CHECK_SYM =
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater# If these are specified it will be used by the link '-flags' directive
27794bebe2634b5ac374e78972649c79300b876aAutomatic Updater# If this is specified it will be linked in with the XDCData option in the def
27794bebe2634b5ac374e78972649c79300b876aAutomatic Updater# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
0ce87e5749aabb8eef1e0a37e4bd6e6ffa1d7196Automatic Updater# by setting APACHE_UNIPROC in the environment
c453a50776145e9c1c3fc9c846cfa11f42505081Automatic Updater# If there is an NLM target, put it here
c243d779731a410f8dc2d2feeed20c15f299b6e3Automatic Updater# If there is an LIB target, put it here
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# These are the OBJ files needed to create the NLM target above.
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# Paths must all use the '/' character
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterFILES_nlm_objs = \
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# These are the LIB files needed to create the NLM target above.
19b3dc94bce93fa76bd7e066f9298630dbc9dcb4Automatic Updater# These will be added as a library command in the link.opt file.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterFILES_nlm_libs = \
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# These are the modules that the above NLM target depends on to load.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# These will be added as a module command in the link.opt file.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterFILES_nlm_modules = \
4cda4fd158d6ded5586bacea8c388445d99611eaAutomatic Updater# If the nlm has a msg file, put it's path here
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# If the nlm has a hlp file put it's path here
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsFILE_nlm_hlp =
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# If this is specified, it will override $(NWOS)\copyright.txt.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsFILE_nlm_copyright =
b109432c3a939bff66a463be86c371bd88efe3aaAutomatic Updater# Any additional imports go here
995eaa289ba9709c64ef89b3776e53c36adc0010Automatic UpdaterFILES_nlm_Ximports = \
bf9b61c7904437745aeeb0f7d5036b35dad2a8a5Automatic Updater# Don't link with Winsock if standard sockets are being used
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updaterifndef USE_STDSOCKETS
cf7e98f59148b559946a7f1ca728471374f1eef3Automatic UpdaterFILES_nlm_Ximports += @ws2nlm.imp \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Any symbols exported to here
0ce87e5749aabb8eef1e0a37e4bd6e6ffa1d7196Automatic UpdaterFILES_nlm_exports = \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington proxy_balancer_module \
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater# These are the OBJ files needed to create the LIB target above.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Paths must all use the '/' character
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonFILES_lib_objs = \
8292deab031e7599cd7622aa7675fbe139ca6095Mark Andrews# implement targets and dependancies (leave this section alone)
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updaterlibs :: $(OBJDIR) $(TARGET_lib)
ca35524ce2b57e6f1b261d23565d1288a355d12fAutomatic Updaternlms :: libs $(TARGET_nlm)
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater# Updated this target to create necessary directories and copy files to the
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
3351ccbd5c1961404044f8273d54dad405f53960Mark Andrewsinstall :: nlms FORCE
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews# Any specialized rules here
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater# Include the 'tail' makefile that has targets that depend on variables defined
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater# in this makefile
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updaterinclude $(APBUILD)/NWGNUtail.inc