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