9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# Make sure all needed macro's are defined
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# Get the 'head' of the build environment if necessary. This includes default
9b2bd54c98edb185a3985410367754ab33217362bnicholes# targets and paths to tools
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesifndef EnvironmentDefined
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(AP_WORK)/build/NWGNUhead.inc
9b2bd54c98edb185a3985410367754ab33217362bnicholesendif
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# These directories will be at the beginning of the include list, followed by
9b2bd54c98edb185a3985410367754ab33217362bnicholes# INCDIRS
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesXINCDIRS += \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(APR)/include \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(APRUTIL)/include \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(SRC)/include \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(STDMOD)/http \
16b55a35cff91315d261d1baa776138af465c4e4fuankg $(NWOS) \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# These flags will come after CFLAGS
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesXCFLAGS += \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# These defines will come after DEFINES
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesXDEFINES += \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# These flags will be added to the link.opt file
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesXLFLAGS += \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# These values will be appended to the correct variables based on the value of
9b2bd54c98edb185a3985410367754ab33217362bnicholes# RELEASE
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesifeq "$(RELEASE)" "debug"
9b2bd54c98edb185a3985410367754ab33217362bnicholesXINCDIRS += \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesXCFLAGS += \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesXDEFINES += \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesXLFLAGS += \
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholesendif
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesifeq "$(RELEASE)" "noopt"
9b2bd54c98edb185a3985410367754ab33217362bnicholesXINCDIRS += \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesXCFLAGS += \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesXDEFINES += \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesXLFLAGS += \
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholesendif
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesifeq "$(RELEASE)" "release"
9b2bd54c98edb185a3985410367754ab33217362bnicholesXINCDIRS += \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesXCFLAGS += \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesXDEFINES += \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesXLFLAGS += \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholesendif
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# These are used by the link target if an NLM is being generated
9b2bd54c98edb185a3985410367754ab33217362bnicholes# This is used by the link 'name' directive to name the nlm. If left blank
9b2bd54c98edb185a3985410367754ab33217362bnicholes# TARGET_nlm (see below) will be used.
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_NAME = proxybalancer
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# This is used by the link '-desc ' directive.
9b2bd54c98edb185a3985410367754ab33217362bnicholes# If left blank, NLM_NAME will be used.
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesNLM_DESCRIPTION = Apache $(VERSION_STR) Proxy Balancer Sub-Module
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# This is used by the '-threadname' directive. If left blank,
9b2bd54c98edb185a3985410367754ab33217362bnicholes# NLM_NAME Thread will be used.
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesNLM_THREAD_NAME = Prxy Blncr Module
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# If this is specified, it will override VERSION value in
0662ed52e814f8f08ef0e09956413a792584eddffuankg# $(AP_WORK)/build/NWGNUenvironment.inc
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_VERSION =
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# If this is specified, it will override the default of 64K
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesNLM_STACK_SIZE = 8192
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# If this is specified it will be used by the link '-entry' directive
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_ENTRY_SYM =
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# If this is specified it will be used by the link '-exit' directive
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_EXIT_SYM =
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# If this is specified it will be used by the link '-check' directive
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesNLM_CHECK_SYM =
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# If these are specified it will be used by the link '-flags' directive
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_FLAGS =
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# If this is specified it will be linked in with the XDCData option in the def
9b2bd54c98edb185a3985410367754ab33217362bnicholes# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
9b2bd54c98edb185a3985410367754ab33217362bnicholes# by setting APACHE_UNIPROC in the environment
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgXDCDATA =
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# If there is an NLM target, put it here
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesTARGET_nlm = \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(OBJDIR)/proxybalancer.nlm \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# If there is an LIB target, put it here
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesTARGET_lib = \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# These are the OBJ files needed to create the NLM target above.
9b2bd54c98edb185a3985410367754ab33217362bnicholes# Paths must all use the '/' character
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesFILES_nlm_objs = \
bf1e7c075ccc3e6597d17de7641332ff6ff92e8astriker $(OBJDIR)/mod_proxy_balancer.o \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(OBJDIR)/libprews.o \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# These are the LIB files needed to create the NLM target above.
9b2bd54c98edb185a3985410367754ab33217362bnicholes# These will be added as a library command in the link.opt file.
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesFILES_nlm_libs = \
cf7ca2f9eaa6523fefcccba4287b91637391fb51fuankg $(PRELUDE) \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# These are the modules that the above NLM target depends on to load.
9b2bd54c98edb185a3985410367754ab33217362bnicholes# These will be added as a module command in the link.opt file.
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesFILES_nlm_modules = \
9b2bd54c98edb185a3985410367754ab33217362bnicholes aprlib \
9b2bd54c98edb185a3985410367754ab33217362bnicholes libc \
9b2bd54c98edb185a3985410367754ab33217362bnicholes proxy \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# If the nlm has a msg file, put it's path here
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesFILE_nlm_msg =
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# If the nlm has a hlp file put it's path here
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesFILE_nlm_hlp =
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# If this is specified, it will override $(NWOS)\copyright.txt.
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesFILE_nlm_copyright =
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# Any additional imports go here
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesFILES_nlm_Ximports = \
8ffac2c334103c0336602aaede650cb578611151fuankg @aprlib.imp \
8ffac2c334103c0336602aaede650cb578611151fuankg @httpd.imp \
0cb770e9049c8e85ede0bbe3d47904785b15f868fuankg @$(OBJDIR)/mod_proxy.imp \
9b2bd54c98edb185a3985410367754ab33217362bnicholes @libc.imp \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg
609ef720afd62ca63391c9fdb415cd2faf29aa46bnicholes# Don't link with Winsock if standard sockets are being used
609ef720afd62ca63391c9fdb415cd2faf29aa46bnicholesifndef USE_STDSOCKETS
609ef720afd62ca63391c9fdb415cd2faf29aa46bnicholesFILES_nlm_Ximports += @ws2nlm.imp \
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg $(EOLIST)
609ef720afd62ca63391c9fdb415cd2faf29aa46bnicholesendif
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# Any symbols exported to here
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesFILES_nlm_exports = \
9b2bd54c98edb185a3985410367754ab33217362bnicholes proxy_balancer_module \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(EOLIST)
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# These are the OBJ files needed to create the LIB target above.
9b2bd54c98edb185a3985410367754ab33217362bnicholes# Paths must all use the '/' character
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesFILES_lib_objs = \
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg $(EOLIST)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# implement targets and dependancies (leave this section alone)
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholeslibs :: $(OBJDIR) $(TARGET_lib)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesnlms :: libs $(TARGET_nlm)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# Updated this target to create necessary directories and copy files to the
0662ed52e814f8f08ef0e09956413a792584eddffuankg# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesinstall :: nlms FORCE
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# Any specialized rules here
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesvpath %.c ../arch/netware
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# Include the 'tail' makefile that has targets that depend on variables defined
9b2bd54c98edb185a3985410367754ab33217362bnicholes# in this makefile
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(APBUILD)/NWGNUtail.inc
9b2bd54c98edb185a3985410367754ab33217362bnicholes
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg