NWGNUmakefile revision f2f3f241c00a7a4bd597e57a19023940e072918a
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainen# Declare the sub-directories to be built here
7a7d2aa11e46195e2d92d6c337d7e78052a5ce67Timo Sirainen# Get the 'head' of the build environment. This includes default targets and
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainen# paths to tools
c4c9be10781e1a16b3b001dc6b0461c4640da101Timo Siraineninclude $(AP_WORK)\build\NWGNUhead.inc
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainen# build this level's files
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainen# Make sure all needed macro's are defined
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainen# These directories will be at the beginning of the include list, followed by
2615df45a8027948a474abe5e817b34b0499c171Timo Sirainen# These flags will come after CFLAGS
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainen# These defines will come after DEFINES
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainen# These flags will be added to the link.opt file
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainen# These values will be appended to the correct variables based on the value of
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainenifeq "$(RELEASE)" "debug"
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainenifeq "$(RELEASE)" "noopt"
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainenifeq "$(RELEASE)" "release"
2615df45a8027948a474abe5e817b34b0499c171Timo Sirainen# These are used by the link target if an NLM is being generated
2615df45a8027948a474abe5e817b34b0499c171Timo Sirainen# This is used by the link 'name' directive to name the nlm. If left blank
2615df45a8027948a474abe5e817b34b0499c171Timo Sirainen# TARGET_nlm (see below) will be used.
c4c9be10781e1a16b3b001dc6b0461c4640da101Timo Sirainen# This is used by the link '-desc ' directive.
c4c9be10781e1a16b3b001dc6b0461c4640da101Timo Sirainen# If left blank, NLM_NAME will be used.
c4c9be10781e1a16b3b001dc6b0461c4640da101Timo SirainenNLM_DESCRIPTION =
2615df45a8027948a474abe5e817b34b0499c171Timo Sirainen# This is used by the '-threadname' directive. If left blank,
67c47dbb3fde79218320fd38a45c33f61bbf3012Timo Sirainen# NLM_NAME Thread will be used.
c2ee17c9c263efdc9c0a339c4836c3d43f5cd3d9Sascha WildeNLM_THREAD_NAME =
2615df45a8027948a474abe5e817b34b0499c171Timo Sirainen# If this is specified, it will override VERSION value in
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainen# $(AP_WORK)\build\NWGNUenvironment.inc
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainen# If this is specified, it will override the default of 64K
f77ffa31038d46ca9c6d24d93e3d76c9aa8d4d0cTimo SirainenNLM_STACK_SIZE =
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainen# If this is specified it will be used by the link '-entry' directive
2615df45a8027948a474abe5e817b34b0499c171Timo SirainenNLM_ENTRY_SYM =
c4c9be10781e1a16b3b001dc6b0461c4640da101Timo Sirainen# If this is specified it will be used by the link '-exit' directive
4654f788834c9d7920a351306b89cf5d1c21772eTimo SirainenNLM_EXIT_SYM =
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainen# If this is specified it will be used by the link '-check' directive
4654f788834c9d7920a351306b89cf5d1c21772eTimo SirainenNLM_CHECK_SYM =
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainen# If these are specified it will be used by the link '-flags' directive
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainen# If this is specified it will be linked in with the XDCData option in the def
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainen# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainen# by setting APACHE_UNIPROC in the environment
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainen# If there is an NLM target, put it here
4654f788834c9d7920a351306b89cf5d1c21772eTimo SirainenTARGET_nlm = \
b1c42176a65dbe9c83a0af766e6bd8315530f3a5Timo Sirainen# If there is an LIB target, put it here
4654f788834c9d7920a351306b89cf5d1c21772eTimo SirainenTARGET_lib = \
b1c42176a65dbe9c83a0af766e6bd8315530f3a5Timo Sirainen# These are the OBJ files needed to create the NLM target above.
2615df45a8027948a474abe5e817b34b0499c171Timo Sirainen# Paths must all use the '/' character
b1c42176a65dbe9c83a0af766e6bd8315530f3a5Timo SirainenFILES_nlm_objs = \
b1c42176a65dbe9c83a0af766e6bd8315530f3a5Timo Sirainen# These are the LIB files needed to create the NLM target above.
b1c42176a65dbe9c83a0af766e6bd8315530f3a5Timo Sirainen# These will be added as a library command in the link.opt file.
b1c42176a65dbe9c83a0af766e6bd8315530f3a5Timo SirainenFILES_nlm_libs = \
0671e0ae0cfd8d5d671a0c2a75a070c8e2a39fecTimo Sirainen# These are the modules that the above NLM target depends on to load.
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainen# These will be added as a module command in the link.opt file.
4654f788834c9d7920a351306b89cf5d1c21772eTimo SirainenFILES_nlm_modules = \
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainen# If the nlm has a msg file, put it's path here
0671e0ae0cfd8d5d671a0c2a75a070c8e2a39fecTimo SirainenFILE_nlm_msg =
0671e0ae0cfd8d5d671a0c2a75a070c8e2a39fecTimo Sirainen# If the nlm has a hlp file put it's path here
0671e0ae0cfd8d5d671a0c2a75a070c8e2a39fecTimo SirainenFILE_nlm_hlp =
0671e0ae0cfd8d5d671a0c2a75a070c8e2a39fecTimo Sirainen# If this is specified, it will override $(NWOS)\copyright.txt.
0671e0ae0cfd8d5d671a0c2a75a070c8e2a39fecTimo SirainenFILE_nlm_copyright =
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainen# Any additional imports go here
2615df45a8027948a474abe5e817b34b0499c171Timo SirainenFILES_nlm_Ximports = \
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainen# Any symbols exported to here
4654f788834c9d7920a351306b89cf5d1c21772eTimo SirainenFILES_nlm_exports = \
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainen# These are the OBJ files needed to create the LIB target above.
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainen# Paths must all use the '/' character
4654f788834c9d7920a351306b89cf5d1c21772eTimo SirainenFILES_lib_objs = \
2615df45a8027948a474abe5e817b34b0499c171Timo Sirainen# implement targets and dependancies (leave this section alone)
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainenlibs :: $(OBJDIR) $(TARGET_lib)
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainennlms :: libs $(TARGET_nlm)
f77ffa31038d46ca9c6d24d93e3d76c9aa8d4d0cTimo Sirainen# Updated this target to create necessary directories and copy files to the
c4c9be10781e1a16b3b001dc6b0461c4640da101Timo Sirainen# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
c4c9be10781e1a16b3b001dc6b0461c4640da101Timo Siraineninstall :: nlms FORCE
67c47dbb3fde79218320fd38a45c33f61bbf3012Timo Sirainen copy $(OBJDIR)\*.nlm $(INSTALL)\$(BASEDIR)\modules\*.*
2615df45a8027948a474abe5e817b34b0499c171Timo Sirainen# Any specialized rules here
c4c9be10781e1a16b3b001dc6b0461c4640da101Timo Sirainen# Include the 'tail' makefile that has targets that depend on variables defined
a64adf62fa33f2463a86f990217b0c9078531a40Timo Sirainen# in this makefile
2615df45a8027948a474abe5e817b34b0499c171Timo Siraineninclude $(AP_WORK)\build\NWGNUtail.inc