NWGNUproxyftp revision 8410c53aaf5e0372a19d5f4d2bc696b9c609ce3c
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# Make sure all needed macro's are defined
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# Get the 'head' of the build environment if necessary. This includes default
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# targets and paths to tools
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalinifndef EnvironmentDefined
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalininclude $(AP_WORK)\build\NWGNUhead.inc
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# These directories will be at the beginning of the include list, followed by
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin $(AP_WORK)/include \
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# These flags will come after CFLAGS
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# These defines will come after DEFINES
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# These flags will be added to the link.opt file
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# These values will be appended to the correct variables based on the value of
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalinifeq "$(RELEASE)" "debug"
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalinifeq "$(RELEASE)" "noopt"
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalinifeq "$(RELEASE)" "release"
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# These are used by the link target if an NLM is being generated
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# This is used by the link 'name' directive to name the nlm. If left blank
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# TARGET_nlm (see below) will be used.
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey ShabalinNLM_NAME = proxyftp
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# This is used by the link '-desc ' directive.
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# If left blank, NLM_NAME will be used.
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey ShabalinNLM_DESCRIPTION = Apache $(VERSION_STR) Proxy FTP Sub-Module
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# This is used by the '-threadname' directive. If left blank,
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# NLM_NAME Thread will be used.
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey ShabalinNLM_THREAD_NAME = Proxy FTP Module
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# If this is specified, it will override VERSION value in
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# $(AP_WORK)\build\NWGNUenvironment.inc
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# If this is specified, it will override the default of 64K
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey ShabalinNLM_STACK_SIZE = 8192
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# If this is specified it will be used by the link '-entry' directive
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey ShabalinNLM_ENTRY_SYM = _LibCPrelude
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# If this is specified it will be used by the link '-exit' directive
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey ShabalinNLM_EXIT_SYM = _LibCPostlude
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# If this is specified it will be used by the link '-check' directive
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey ShabalinNLM_CHECK_SYM =
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# If these are specified it will be used by the link '-flags' directive
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey ShabalinNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# If this is specified it will be linked in with the XDCData option in the def
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# by setting APACHE_UNIPROC in the environment
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# If there is an NLM target, put it here
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey ShabalinTARGET_nlm = \
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# If there is an LIB target, put it here
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey ShabalinTARGET_lib = \
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# These are the OBJ files needed to create the NLM target above.
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# Paths must all use the '/' character
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey ShabalinFILES_nlm_objs = \
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# These are the LIB files needed to create the NLM target above.
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# These will be added as a library command in the link.opt file.
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey ShabalinFILES_nlm_libs = \
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# These are the modules that the above NLM target depends on to load.
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# These will be added as a module command in the link.opt file.
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey ShabalinFILES_nlm_modules = \
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# If the nlm has a msg file, put it's path here
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey ShabalinFILE_nlm_msg =
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# If the nlm has a hlp file put it's path here
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey ShabalinFILE_nlm_hlp =
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# If this is specified, it will override $(NWOS)\copyright.txt.
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey ShabalinFILE_nlm_copyright =
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# Any additional imports go here
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey ShabalinFILES_nlm_Ximports = \
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin proxy_module \
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin proxy_hook_scheme_handler \
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin proxy_hook_canon_handler \
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# Any symbols exported to here
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey ShabalinFILES_nlm_exports = \
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin proxy_ftp_module \
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# These are the OBJ files needed to create the LIB target above.
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# Paths must all use the '/' character
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey ShabalinFILES_lib_objs = \
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# implement targets and dependancies (leave this section alone)
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalinlibs :: $(OBJDIR) $(TARGET_lib)
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalinnlms :: libs $(TARGET_nlm)
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# Updated this target to create necessary directories and copy files to the
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalininstall :: nlms FORCE
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# Any specialized rules here
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# Include the 'tail' makefile that has targets that depend on variables defined
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin# in this makefile
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalininclude $(AP_WORK)\build\NWGNUtail.inc