b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# Make sure all needed macro's are defined
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# Get the 'head' of the build environment if necessary. This includes default
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# targets and paths to tools
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgifndef EnvironmentDefined
b40d4afa431b31f3ac966f1b539e589c79a06512fuankginclude $(AP_WORK)/build/NWGNUhead.inc
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# These directories will be at the beginning of the include list, followed by
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgXINCDIRS += \
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg $(APR)/include \
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg $(APRUTIL)/include \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(SRC)/include \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(STDMOD)/http \
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# These flags will come after CFLAGS
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgXCFLAGS += \
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# These defines will come after DEFINES
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgXDEFINES += \
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# These flags will be added to the link.opt file
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgXLFLAGS += \
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# These values will be appended to the correct variables based on the value of
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgifeq "$(RELEASE)" "debug"
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgXINCDIRS += \
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgXCFLAGS += \
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgXDEFINES += \
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgXLFLAGS += \
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgifeq "$(RELEASE)" "noopt"
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgXINCDIRS += \
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgXCFLAGS += \
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgXDEFINES += \
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgXLFLAGS += \
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgifeq "$(RELEASE)" "release"
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgXINCDIRS += \
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgXCFLAGS += \
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgXDEFINES += \
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgXLFLAGS += \
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# These are used by the link target if an NLM is being generated
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# This is used by the link 'name' directive to name the nlm. If left blank
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# TARGET_nlm (see below) will be used.
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgNLM_NAME = proxyexpress
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# This is used by the link '-desc ' directive.
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# If left blank, NLM_NAME will be used.
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgNLM_DESCRIPTION = Apache $(VERSION_STR) Proxy Express Module
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# This is used by the '-threadname' directive. If left blank,
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# NLM_NAME Thread will be used.
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgNLM_THREAD_NAME = Prxy Xpress Module
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# If this is specified, it will override VERSION value in
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgNLM_VERSION =
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# If this is specified, it will override the default of 64K
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgNLM_STACK_SIZE = 8192
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# If this is specified it will be used by the link '-entry' directive
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgNLM_ENTRY_SYM =
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# If this is specified it will be used by the link '-exit' directive
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgNLM_EXIT_SYM =
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# If this is specified it will be used by the link '-check' directive
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgNLM_CHECK_SYM =
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# If these are specified it will be used by the link '-flags' directive
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# If this is specified it will be linked in with the XDCData option in the def
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# by setting APACHE_UNIPROC in the environment
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# If there is an NLM target, put it here
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgTARGET_nlm = $(OBJDIR)/$(NLM_NAME).nlm
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# If there is an LIB target, put it here
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgTARGET_lib =
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# These are the OBJ files needed to create the NLM target above.
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# Paths must all use the '/' character
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgFILES_nlm_objs = \
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# These are the LIB files needed to create the NLM target above.
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# These will be added as a library command in the link.opt file.
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgFILES_nlm_libs = \
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg $(PRELUDE) \
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# These are the modules that the above NLM target depends on to load.
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# These will be added as a module command in the link.opt file.
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgFILES_nlm_modules = \
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# If the nlm has a msg file, put it's path here
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgFILE_nlm_msg =
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# If the nlm has a hlp file put it's path here
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgFILE_nlm_hlp =
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# If this is specified, it will override $(NWOS)\copyright.txt.
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgFILE_nlm_copyright =
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# Any additional imports go here
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgFILES_nlm_Ximports = \
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# Don't link with Winsock if standard sockets are being used
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgifndef USE_STDSOCKETS
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgFILES_nlm_Ximports += @ws2nlm.imp \
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# Any symbols exported to here
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgFILES_nlm_exports = \
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg proxy_express_module \
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# These are the OBJ files needed to create the LIB target above.
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# Paths must all use the '/' character
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgFILES_lib_objs = \
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# implement targets and dependancies (leave this section alone)
b40d4afa431b31f3ac966f1b539e589c79a06512fuankglibs :: $(OBJDIR) $(TARGET_lib)
b40d4afa431b31f3ac966f1b539e589c79a06512fuankgnlms :: libs $(TARGET_nlm)
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# Updated this target to create necessary directories and copy files to the
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
b40d4afa431b31f3ac966f1b539e589c79a06512fuankginstall :: nlms FORCE
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# Any specialized rules here
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# Include the 'tail' makefile that has targets that depend on variables defined
b40d4afa431b31f3ac966f1b539e589c79a06512fuankg# in this makefile
b40d4afa431b31f3ac966f1b539e589c79a06512fuankginclude $(APBUILD)/NWGNUtail.inc