NWGNUproxybalancer revision 8ffac2c334103c0336602aaede650cb578611151
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# Make sure all needed macro's are defined
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# Get the 'head' of the build environment if necessary. This includes default
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# targets and paths to tools
15a44745412679c30a6d022733925af70a38b715David Lawrenceifndef EnvironmentDefined
15a44745412679c30a6d022733925af70a38b715David Lawrence# These directories will be at the beginning of the include list, followed by
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence $(APR)/include \
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence $(APRUTIL)/include \
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence $(AP_WORK)/include \
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# These flags will come after CFLAGS
f96b41064bcd427d8125a096fd646c1f068d8ed7David Lawrence# These defines will come after DEFINES
3db78e0855a8dfc162180880cd70d9c1a03d9301David Lawrence# These flags will be added to the link.opt file
87983da955bf63128de85d180359bdc418516c3cDavid Lawrence# These values will be appended to the correct variables based on the value of
30a4d5b0c23eb7a73d9635a98250560437a42d59David Lawrenceifeq "$(RELEASE)" "debug"
30a4d5b0c23eb7a73d9635a98250560437a42d59David Lawrenceifeq "$(RELEASE)" "noopt"
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrenceifeq "$(RELEASE)" "release"
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# These are used by the link target if an NLM is being generated
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# This is used by the link 'name' directive to name the nlm. If left blank
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# TARGET_nlm (see below) will be used.
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David LawrenceNLM_NAME = proxybalancer
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# This is used by the link '-desc ' directive.
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# If left blank, NLM_NAME will be used.
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David LawrenceNLM_DESCRIPTION = Apache $(VERSION_STR) Proxy Balancer Sub-Module
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# This is used by the '-threadname' directive. If left blank,
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# NLM_NAME Thread will be used.
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David LawrenceNLM_THREAD_NAME = Prxy Blncr Module
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# If this is specified, it will override VERSION value in
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# If this is specified, it will override the default of 64K
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David LawrenceNLM_STACK_SIZE = 8192
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# If this is specified it will be used by the link '-entry' directive
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David LawrenceNLM_ENTRY_SYM =
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# If this is specified it will be used by the link '-exit' directive
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David LawrenceNLM_EXIT_SYM =
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# If this is specified it will be used by the link '-check' directive
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David LawrenceNLM_CHECK_SYM =
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# If these are specified it will be used by the link '-flags' directive
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# If this is specified it will be linked in with the XDCData option in the def
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# by setting APACHE_UNIPROC in the environment
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# If there is an NLM target, put it here
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David LawrenceTARGET_nlm = \
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# If there is an LIB target, put it here
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David LawrenceTARGET_lib = \
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# These are the OBJ files needed to create the NLM target above.
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# Paths must all use the '/' character
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David LawrenceFILES_nlm_objs = \
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# These are the LIB files needed to create the NLM target above.
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# These will be added as a library command in the link.opt file.
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David LawrenceFILES_nlm_libs = \
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# These are the modules that the above NLM target depends on to load.
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# These will be added as a module command in the link.opt file.
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David LawrenceFILES_nlm_modules = \
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# If the nlm has a msg file, put it's path here
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David LawrenceFILE_nlm_msg =
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# If the nlm has a hlp file put it's path here
6e033f89d4f1fcf266e07d91fcabf474af4939a1David LawrenceFILE_nlm_hlp =
6e033f89d4f1fcf266e07d91fcabf474af4939a1David Lawrence# If this is specified, it will override $(NWOS)\copyright.txt.
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David LawrenceFILE_nlm_copyright =
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# Any additional imports go here
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David LawrenceFILES_nlm_Ximports = \
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# Don't link with Winsock if standard sockets are being used
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrenceifndef USE_STDSOCKETS
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David LawrenceFILES_nlm_Ximports += @ws2nlm.imp \
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# Any symbols exported to here
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David LawrenceFILES_nlm_exports = \
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence proxy_balancer_module \
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# These are the OBJ files needed to create the LIB target above.
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# Paths must all use the '/' character
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David LawrenceFILES_lib_objs = \
30a4d5b0c23eb7a73d9635a98250560437a42d59David Lawrence# implement targets and dependancies (leave this section alone)
94b166ffa58ef0ff263563c0550d0b30eb9f7772David Lawrencelibs :: $(OBJDIR) $(TARGET_lib)
94b166ffa58ef0ff263563c0550d0b30eb9f7772David Lawrencenlms :: libs $(TARGET_nlm)
94b166ffa58ef0ff263563c0550d0b30eb9f7772David Lawrence# Updated this target to create necessary directories and copy files to the
94b166ffa58ef0ff263563c0550d0b30eb9f7772David Lawrence# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
94b166ffa58ef0ff263563c0550d0b30eb9f7772David Lawrenceinstall :: nlms FORCE
87983da955bf63128de85d180359bdc418516c3cDavid Lawrence# Any specialized rules here
30a4d5b0c23eb7a73d9635a98250560437a42d59David Lawrence# Include the 'tail' makefile that has targets that depend on variables defined
30a4d5b0c23eb7a73d9635a98250560437a42d59David Lawrence# in this makefile
30a4d5b0c23eb7a73d9635a98250560437a42d59David Lawrenceinclude $(APBUILD)/NWGNUtail.inc