NWGNUproxylbm_traf revision 44f575c8cb19a7a5cd61664a7848be6bc197df02
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Make sure all needed macro's are defined
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Get the 'head' of the build environment if necessary. This includes default
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# targets and paths to tools
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonifndef EnvironmentDefined
09ab886382ad9e7149d9b72b4cf9a03ae4a1cddfDavid Lawrence# These directories will be at the beginning of the include list, followed by
09ab886382ad9e7149d9b72b4cf9a03ae4a1cddfDavid Lawrence $(APR)/include \
a7038d1a0513c8e804937ebc95fc9cb3a46c04f5Mark Andrews $(APRUTIL)/include \
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington $(SRC)/include \
09ab886382ad9e7149d9b72b4cf9a03ae4a1cddfDavid Lawrence $(STDMOD)/http \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(STDMOD)/proxy \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# These flags will come after CFLAGS
e4757e3dafe50ae59f693eec828f68c42c197a70Andreas Gustafsson# These defines will come after DEFINES
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# These flags will be added to the link.opt file
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# These values will be appended to the correct variables based on the value of
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonifeq "$(RELEASE)" "debug"
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellingtonifeq "$(RELEASE)" "noopt"
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonifeq "$(RELEASE)" "release"
a7038d1a0513c8e804937ebc95fc9cb3a46c04f5Mark Andrews# These are used by the link target if an NLM is being generated
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# This is used by the link 'name' directive to name the nlm. If left blank
17453368fa0136f6287c56d6600bee58809334bcAndreas Gustafsson# TARGET_nlm (see below) will be used.
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian WellingtonNLM_NAME = proxylbm_traf
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# This is used by the link '-desc ' directive.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# If left blank, NLM_NAME will be used.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonNLM_DESCRIPTION = Apache $(VERSION_STR) Proxy LoadBalance by Traffic Sub-Module
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# This is used by the '-threadname' directive. If left blank,
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# NLM_NAME Thread will be used.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonNLM_THREAD_NAME = LBM Traf Module
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# If this is specified, it will override VERSION value in
a7038d1a0513c8e804937ebc95fc9cb3a46c04f5Mark Andrews# If this is specified, it will override the default of 64K
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonNLM_STACK_SIZE = 8192
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# If this is specified it will be used by the link '-entry' directive
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonNLM_ENTRY_SYM =
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# If this is specified it will be used by the link '-exit' directive
a7038d1a0513c8e804937ebc95fc9cb3a46c04f5Mark AndrewsNLM_EXIT_SYM =
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# If this is specified it will be used by the link '-check' directive
622df0afb82c1b711b5f3c272db4c4b83d09bc4aBob HalleyNLM_CHECK_SYM =
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# If these are specified it will be used by the link '-flags' directive
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# If this is specified it will be linked in with the XDCData option in the def
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# by setting APACHE_UNIPROC in the environment
4e6b8a18ff7dd22797970208060cca9f99f54dafAndreas Gustafsson# If there is an NLM target, put it here
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonTARGET_nlm = $(OBJDIR)/$(NLM_NAME).nlm
4e6b8a18ff7dd22797970208060cca9f99f54dafAndreas Gustafsson# If there is an LIB target, put it here
09ab886382ad9e7149d9b72b4cf9a03ae4a1cddfDavid Lawrence# These are the OBJ files needed to create the NLM target above.
a7038d1a0513c8e804937ebc95fc9cb3a46c04f5Mark Andrews# Paths must all use the '/' character
09ab886382ad9e7149d9b72b4cf9a03ae4a1cddfDavid LawrenceFILES_nlm_objs = \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# These are the LIB files needed to create the NLM target above.
e076d0c88be69de7c190ab924d095e69d2e11f7aAndreas Gustafsson# These will be added as a library command in the link.opt file.
b71fc1e8f2cc331ab00ba2d4b5f142dd58e26449David LawrenceFILES_nlm_libs = \
a7038d1a0513c8e804937ebc95fc9cb3a46c04f5Mark Andrews $(PRELUDE) \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# These are the modules that the above NLM target depends on to load.
09ab886382ad9e7149d9b72b4cf9a03ae4a1cddfDavid Lawrence# These will be added as a module command in the link.opt file.
09ab886382ad9e7149d9b72b4cf9a03ae4a1cddfDavid LawrenceFILES_nlm_modules = \
b71fc1e8f2cc331ab00ba2d4b5f142dd58e26449David Lawrence# If the nlm has a msg file, put it's path here
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# If the nlm has a hlp file put it's path here
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# If this is specified, it will override $(NWOS)\copyright.txt.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonFILE_nlm_copyright =
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Any additional imports go here
a7038d1a0513c8e804937ebc95fc9cb3a46c04f5Mark AndrewsFILES_nlm_Ximports = \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Any symbols exported to here
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonFILES_nlm_exports = \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington lbmethod_bytraffic_module \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# These are the OBJ files needed to create the LIB target above.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Paths must all use the '/' character
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonFILES_lib_objs = \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# implement targets and dependancies (leave this section alone)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonlibs :: $(OBJDIR) $(TARGET_lib)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonnlms :: libs $(TARGET_nlm)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Updated this target to create necessary directories and copy files to the
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtoninstall :: nlms FORCE
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Any specialized rules here
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonvpath %.c balancers
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Include the 'tail' makefile that has targets that depend on variables defined
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# in this makefile
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtoninclude $(APBUILD)/NWGNUtail.inc