NWGNUproxybalancer revision 0cb770e9049c8e85ede0bbe3d47904785b15f868
10139N/A#
10139N/A# Make sure all needed macro's are defined
10139N/A#
10139N/A
10139N/A#
10139N/A# Get the 'head' of the build environment if necessary. This includes default
10139N/A# targets and paths to tools
10139N/A#
10139N/A
10139N/Aifndef EnvironmentDefined
10139N/Ainclude $(AP_WORK)\build\NWGNUhead.inc
10139N/Aendif
10139N/A
10139N/A#
10199N/A# These directories will be at the beginning of the include list, followed by
10139N/A# INCDIRS
10139N/A#
10139N/AXINCDIRS += \
10139N/A $(AP_WORK)/include \
10142N/A $(NWOS) \
10139N/A $(AP_WORK)/modules/http \
10139N/A $(AP_WORK)/modules/arch/netware \
10139N/A $(APR)/include \
10139N/A $(APRUTIL)/include \
10139N/A $(APR) \
10139N/A $(EOLIST)
10139N/A
10139N/A#
10139N/A# These flags will come after CFLAGS
10139N/A#
10139N/AXCFLAGS += \
10139N/A $(EOLIST)
10139N/A
10139N/A#
10139N/A# These defines will come after DEFINES
10139N/A#
10139N/AXDEFINES += \
10139N/A $(EOLIST)
10139N/A
10139N/A#
10139N/A# These flags will be added to the link.opt file
10139N/A#
10139N/AXLFLAGS += \
10139N/A $(EOLIST)
10139N/A
10139N/A#
10139N/A# These values will be appended to the correct variables based on the value of
10139N/A# RELEASE
10139N/A#
10139N/Aifeq "$(RELEASE)" "debug"
10139N/AXINCDIRS += \
10139N/A $(EOLIST)
10139N/A
10139N/AXCFLAGS += \
10139N/A $(EOLIST)
10139N/A
10139N/AXDEFINES += \
10139N/A $(EOLIST)
10139N/A
10139N/AXLFLAGS += \
10139N/A $(EOLIST)
10139N/Aendif
10139N/A
10139N/Aifeq "$(RELEASE)" "noopt"
10139N/AXINCDIRS += \
10139N/A $(EOLIST)
10139N/A
10139N/AXCFLAGS += \
10139N/A $(EOLIST)
10139N/A
10139N/AXDEFINES += \
10139N/A $(EOLIST)
10139N/A
10139N/AXLFLAGS += \
10139N/A $(EOLIST)
10139N/Aendif
10139N/A
10139N/Aifeq "$(RELEASE)" "release"
10139N/AXINCDIRS += \
10139N/A $(EOLIST)
10139N/A
10139N/AXCFLAGS += \
10139N/A $(EOLIST)
10139N/A
10139N/AXDEFINES += \
10139N/A $(EOLIST)
10139N/A
10139N/AXLFLAGS += \
10139N/A $(EOLIST)
10139N/Aendif
10139N/A
10139N/A#
10139N/A# These are used by the link target if an NLM is being generated
10139N/A# This is used by the link 'name' directive to name the nlm. If left blank
10139N/A# TARGET_nlm (see below) will be used.
10139N/A#
10139N/ANLM_NAME = proxybalancer
10139N/A
10139N/A#
10139N/A# This is used by the link '-desc ' directive.
10139N/A# If left blank, NLM_NAME will be used.
10139N/A#
10139N/ANLM_DESCRIPTION = Apache $(VERSION_STR) Proxy Balancer Sub-Module
10139N/A
10139N/A#
10139N/A# This is used by the '-threadname' directive. If left blank,
10139N/A# NLM_NAME Thread will be used.
10139N/A#
10139N/ANLM_THREAD_NAME = Prxy Blncr Module
10139N/A
10139N/A#
10139N/A# If this is specified, it will override VERSION value in
10139N/A# $(AP_WORK)\build\NWGNUenvironment.inc
10139N/A#
10139N/ANLM_VERSION =
10139N/A
10139N/A#
10139N/A# If this is specified, it will override the default of 64K
10139N/A#
10139N/ANLM_STACK_SIZE = 8192
10139N/A
10139N/A
10139N/A#
10139N/A# If this is specified it will be used by the link '-entry' directive
10139N/A#
10139N/ANLM_ENTRY_SYM = _LibCPrelude
10139N/A
10139N/A#
10139N/A# If this is specified it will be used by the link '-exit' directive
10139N/A#
10139N/ANLM_EXIT_SYM = _LibCPostlude
10139N/A
10139N/A#
10139N/A# If this is specified it will be used by the link '-check' directive
10139N/A#
10139N/ANLM_CHECK_SYM =
10139N/A
10139N/A#
10139N/A# If these are specified it will be used by the link '-flags' directive
10139N/A#
10139N/ANLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
10139N/A
10139N/A#
10139N/A# If this is specified it will be linked in with the XDCData option in the def
10139N/A# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
10139N/A# by setting APACHE_UNIPROC in the environment
10139N/A#
10139N/AXDCDATA =
10139N/A
10139N/A#
10139N/A# If there is an NLM target, put it here
10139N/A#
10139N/ATARGET_nlm = \
10139N/A $(OBJDIR)/proxybalancer.nlm \
10139N/A $(EOLIST)
10139N/A
10139N/A#
10139N/A# If there is an LIB target, put it here
10142N/A#
10139N/ATARGET_lib = \
10139N/A $(EOLIST)
10139N/A
10139N/A#
10139N/A# These are the OBJ files needed to create the NLM target above.
10139N/A# Paths must all use the '/' character
10139N/A#
10139N/AFILES_nlm_objs = \
10139N/A $(OBJDIR)/mod_proxy_balancer.o \
10139N/A $(OBJDIR)/proxy_util.o \
10139N/A $(OBJDIR)/libprews.o \
10139N/A $(EOLIST)
10139N/A
10139N/A#
10139N/A# These are the LIB files needed to create the NLM target above.
10139N/A# These will be added as a library command in the link.opt file.
10139N/A#
10139N/AFILES_nlm_libs = \
10139N/A libcpre.o \
10139N/A $(EOLIST)
10139N/A
10139N/A#
10139N/A# These are the modules that the above NLM target depends on to load.
10139N/A# These will be added as a module command in the link.opt file.
10139N/A#
10139N/AFILES_nlm_modules = \
10139N/A aprlib \
10139N/A libc \
10139N/A proxy \
10139N/A $(EOLIST)
10139N/A
10139N/A#
10139N/A# If the nlm has a msg file, put it's path here
10139N/A#
10139N/AFILE_nlm_msg =
10139N/A
10139N/A#
10139N/A# If the nlm has a hlp file put it's path here
10139N/A#
10139N/AFILE_nlm_hlp =
10139N/A
10139N/A#
10199N/A# If this is specified, it will override $(NWOS)\copyright.txt.
10199N/A#
10139N/AFILE_nlm_copyright =
10139N/A
10139N/A#
10139N/A# Any additional imports go here
10139N/A#
10139N/AFILES_nlm_Ximports = \
10139N/A @$(APR)/aprlib.imp \
10139N/A @$(NWOS)/httpd.imp \
10139N/A @$(OBJDIR)/mod_proxy.imp \
10139N/A @libc.imp \
10139N/A $(EOLIST)
10139N/A
10139N/A# Don't link with Winsock if standard sockets are being used
10139N/Aifndef USE_STDSOCKETS
10139N/AFILES_nlm_Ximports += @ws2nlm.imp \
10139N/A $(EOLIST)
10139N/Aendif
10139N/A
10139N/A#
10139N/A# Any symbols exported to here
10139N/A#
10139N/AFILES_nlm_exports = \
10139N/A proxy_balancer_module \
10139N/A $(EOLIST)
10139N/A
10139N/A#
10139N/A# These are the OBJ files needed to create the LIB target above.
10139N/A# Paths must all use the '/' character
10139N/A#
10139N/AFILES_lib_objs = \
10139N/A $(EOLIST)
10139N/A
10139N/A#
10139N/A# implement targets and dependancies (leave this section alone)
10139N/A#
10139N/A
10139N/Alibs :: $(OBJDIR) $(TARGET_lib)
10139N/A
10139N/Anlms :: libs $(TARGET_nlm)
10139N/A
10139N/A#
10139N/A# Updated this target to create necessary directories and copy files to the
10139N/A# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
10139N/A#
10139N/Ainstall :: nlms FORCE
10139N/A
10139N/A#
10139N/A# Any specialized rules here
10139N/A#
10139N/A
10139N/Avpath %.c ../arch/netware
10139N/A
10139N/A#
10139N/A# Include the 'tail' makefile that has targets that depend on variables defined
10139N/A# in this makefile
10139N/A#
10139N/A
10139N/Ainclude $(AP_WORK)\build\NWGNUtail.inc
10139N/A
10139N/A
10139N/A