9ecf04e1256ba153c86e74edb77cfd705c55a042nd# Make sure all needed macro's are defined
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# Get the 'head' of the build environment if necessary. This includes default
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# targets and paths to tools
96ad5d81ee4a2cc66a4ae19893efc8aa6d06fae7jailletcifndef EnvironmentDefined
9ecf04e1256ba153c86e74edb77cfd705c55a042ndinclude $(AP_WORK)/build/NWGNUhead.inc
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# These directories will be at the beginning of the include list, followed by
9ecf04e1256ba153c86e74edb77cfd705c55a042ndXINCDIRS += \
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen $(APR)/include \
3f08db06526d6901aa08c110b5bc7dde6bc39905nd $(APRUTIL)/include \
9ecf04e1256ba153c86e74edb77cfd705c55a042nd $(SRC)/include \
9ecf04e1256ba153c86e74edb77cfd705c55a042nd $(STDMOD)/http \
c04f76acce77126cf88b09350e56ea8c6b4a064enilgun# These flags will come after CFLAGS
9ecf04e1256ba153c86e74edb77cfd705c55a042ndXCFLAGS += \
4b575a6b6704b516f22d65a3ad35696d7b9ba372rpluem# These defines will come after DEFINES
9ecf04e1256ba153c86e74edb77cfd705c55a042ndXDEFINES += \
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# These flags will be added to the link.opt file
9ecf04e1256ba153c86e74edb77cfd705c55a042ndXLFLAGS += \
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# These values will be appended to the correct variables based on the value of
9ecf04e1256ba153c86e74edb77cfd705c55a042ndifeq "$(RELEASE)" "debug"
9ecf04e1256ba153c86e74edb77cfd705c55a042ndXINCDIRS += \
9ecf04e1256ba153c86e74edb77cfd705c55a042ndXCFLAGS += \
9ecf04e1256ba153c86e74edb77cfd705c55a042ndXDEFINES += \
9ecf04e1256ba153c86e74edb77cfd705c55a042ndXLFLAGS += \
9ecf04e1256ba153c86e74edb77cfd705c55a042ndifeq "$(RELEASE)" "noopt"
9ecf04e1256ba153c86e74edb77cfd705c55a042ndXINCDIRS += \
9ecf04e1256ba153c86e74edb77cfd705c55a042ndXCFLAGS += \
9ecf04e1256ba153c86e74edb77cfd705c55a042ndXDEFINES += \
9ecf04e1256ba153c86e74edb77cfd705c55a042ndXLFLAGS += \
9ecf04e1256ba153c86e74edb77cfd705c55a042ndifeq "$(RELEASE)" "release"
9ecf04e1256ba153c86e74edb77cfd705c55a042ndXINCDIRS += \
9ecf04e1256ba153c86e74edb77cfd705c55a042ndXCFLAGS += \
9ecf04e1256ba153c86e74edb77cfd705c55a042ndXDEFINES += \
9ecf04e1256ba153c86e74edb77cfd705c55a042ndXLFLAGS += \
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# These are used by the link target if an NLM is being generated
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# This is used by the link 'name' directive to name the nlm. If left blank
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# TARGET_nlm (see below) will be used.
9ecf04e1256ba153c86e74edb77cfd705c55a042ndNLM_NAME = proxyexpress
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# This is used by the link '-desc ' directive.
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# If left blank, NLM_NAME will be used.
9ecf04e1256ba153c86e74edb77cfd705c55a042ndNLM_DESCRIPTION = Apache $(VERSION_STR) Proxy Express Module
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# This is used by the '-threadname' directive. If left blank,
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# NLM_NAME Thread will be used.
9ecf04e1256ba153c86e74edb77cfd705c55a042ndNLM_THREAD_NAME = Prxy Xpress Module
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# If this is specified, it will override VERSION value in
9ecf04e1256ba153c86e74edb77cfd705c55a042ndNLM_VERSION =
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# If this is specified, it will override the default of 64K
9ecf04e1256ba153c86e74edb77cfd705c55a042ndNLM_STACK_SIZE = 8192
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# If this is specified it will be used by the link '-entry' directive
9ecf04e1256ba153c86e74edb77cfd705c55a042ndNLM_ENTRY_SYM =
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# If this is specified it will be used by the link '-exit' directive
9ecf04e1256ba153c86e74edb77cfd705c55a042ndNLM_EXIT_SYM =
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# If this is specified it will be used by the link '-check' directive
9ecf04e1256ba153c86e74edb77cfd705c55a042ndNLM_CHECK_SYM =
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# If these are specified it will be used by the link '-flags' directive
9ecf04e1256ba153c86e74edb77cfd705c55a042ndNLM_FLAGS =
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# If this is specified it will be linked in with the XDCData option in the def
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# by setting APACHE_UNIPROC in the environment
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# If there is an NLM target, put it here
9ecf04e1256ba153c86e74edb77cfd705c55a042ndTARGET_nlm = $(OBJDIR)/$(NLM_NAME).nlm
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# If there is an LIB target, put it here
9ecf04e1256ba153c86e74edb77cfd705c55a042ndTARGET_lib =
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# These are the OBJ files needed to create the NLM target above.
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# Paths must all use the '/' character
9ecf04e1256ba153c86e74edb77cfd705c55a042ndFILES_nlm_objs = \
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# These are the LIB files needed to create the NLM target above.
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# These will be added as a library command in the link.opt file.
9ecf04e1256ba153c86e74edb77cfd705c55a042ndFILES_nlm_libs = \
9ecf04e1256ba153c86e74edb77cfd705c55a042nd $(PRELUDE) \
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# These are the modules that the above NLM target depends on to load.
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# These will be added as a module command in the link.opt file.
9ecf04e1256ba153c86e74edb77cfd705c55a042ndFILES_nlm_modules = \
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# If the nlm has a msg file, put it's path here
9ecf04e1256ba153c86e74edb77cfd705c55a042ndFILE_nlm_msg =
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# If the nlm has a hlp file put it's path here
9ecf04e1256ba153c86e74edb77cfd705c55a042ndFILE_nlm_hlp =
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# If this is specified, it will override $(NWOS)\copyright.txt.
9ecf04e1256ba153c86e74edb77cfd705c55a042ndFILE_nlm_copyright =
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# Any additional imports go here
9ecf04e1256ba153c86e74edb77cfd705c55a042ndFILES_nlm_Ximports = \
9ecf04e1256ba153c86e74edb77cfd705c55a042nd @$(OBJDIR)/mod_proxy.imp \
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# Don't link with Winsock if standard sockets are being used
9ecf04e1256ba153c86e74edb77cfd705c55a042ndifndef USE_STDSOCKETS
9ecf04e1256ba153c86e74edb77cfd705c55a042ndFILES_nlm_Ximports += @ws2nlm.imp \
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# Any symbols exported to here
9ecf04e1256ba153c86e74edb77cfd705c55a042ndFILES_nlm_exports = \
9ecf04e1256ba153c86e74edb77cfd705c55a042nd proxy_express_module \
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# These are the OBJ files needed to create the LIB target above.
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# Paths must all use the '/' character
9ecf04e1256ba153c86e74edb77cfd705c55a042ndFILES_lib_objs = \
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# implement targets and dependancies (leave this section alone)
9ecf04e1256ba153c86e74edb77cfd705c55a042ndlibs :: $(OBJDIR) $(TARGET_lib)
9ecf04e1256ba153c86e74edb77cfd705c55a042ndnlms :: libs $(TARGET_nlm)
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# Updated this target to create necessary directories and copy files to the
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
9ecf04e1256ba153c86e74edb77cfd705c55a042ndinstall :: nlms FORCE
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# Any specialized rules here
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# Include the 'tail' makefile that has targets that depend on variables defined
9ecf04e1256ba153c86e74edb77cfd705c55a042nd# in this makefile
9ecf04e1256ba153c86e74edb77cfd705c55a042ndinclude $(APBUILD)/NWGNUtail.inc