NWGNUmakefile revision ac7985784d08a3655291f24f711812b4d8b1cbcf
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Declare the sub-directories to be built here
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Get the 'head' of the build environment. This includes default targets and
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# paths to tools
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafssoninclude $(AP_WORK)\build\NWGNUhead.inc
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# build this level's files
8eea877894ea5bcf5cdd9ca124a8601ad421d753Andreas Gustafsson# Make sure all needed macro's are defined
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# These directories will be at the beginning of the include list, followed by
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# These flags will come after CFLAGS
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# These defines will come after DEFINES
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# These flags will be added to the link.opt file
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# These values will be appended to the correct variables based on the value of
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafssonifeq "$(RELEASE)" "debug"
8eea877894ea5bcf5cdd9ca124a8601ad421d753Andreas Gustafssonifeq "$(RELEASE)" "noopt"
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafssonifeq "$(RELEASE)" "release"
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# These are used by the link target if an NLM is being generated
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# This is used by the link 'name' directive to name the nlm. If left blank
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# TARGET_nlm (see below) will be used.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# This is used by the link '-desc ' directive.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# If left blank, NLM_NAME will be used.
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonNLM_DESCRIPTION =
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# This is used by the '-threadname' directive. If left blank,
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# NLM_NAME Thread will be used.
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonNLM_THREAD_NAME =
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# If this is specified, it will override VERSION value in
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# If this is specified, it will override the default of 64K
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonNLM_STACK_SIZE =
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# If this is specified it will be used by the link '-entry' directive
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonNLM_ENTRY_SYM =
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# If this is specified it will be used by the link '-exit' directive
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# If this is specified it will be used by the link '-check' directive
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonNLM_CHECK_SYM =
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# If these are specified it will be used by the link '-flags' directive
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# If this is specified it will be linked in with the XDCData option in the def
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# by setting APACHE_UNIPROC in the environment
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# If there is an NLM target, put it here
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# If there is an LIB target, put it here
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# These are the OBJ files needed to create the NLM target above.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Paths must all use the '/' character
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonFILES_nlm_objs = \
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# These are the LIB files needed to create the NLM target above.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# These will be added as a library command in the link.opt file.
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonFILES_nlm_libs = \
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# These are the modules that the above NLM target depends on to load.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# These will be added as a module command in the link.opt file.
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonFILES_nlm_modules = \
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# If the nlm has a msg file, put it's path here
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# If the nlm has a hlp file put it's path here
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# If this is specified, it will override $(NWOS)\copyright.txt.
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonFILE_nlm_copyright =
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Any additional imports go here
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonFILES_nlm_Ximports = \
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Any symbols exported to here
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonFILES_nlm_exports = \
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# These are the OBJ files needed to create the LIB target above.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Paths must all use the '/' character
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonFILES_lib_objs = \
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# implement targets and dependancies (leave this section alone)
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafssonlibs :: $(OBJDIR) $(TARGET_lib)
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafssonnlms :: libs $(TARGET_nlm)
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Updated this target to create necessary directories and copy files to the
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafssoninstall :: nlms FORCE
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson copy $(OBJDIR)\*.nlm $(INSTALL)\$(BASEDIR)\modules\*.*
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Any specialized rules here
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Include the 'tail' makefile that has targets that depend on variables defined
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# in this makefile
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafssoninclude $(AP_WORK)\build\NWGNUtail.inc