NWGNUmakefile revision ac7985784d08a3655291f24f711812b4d8b1cbcf
c63ebf815c8a874525cf18670ad74847f7fc7b26Christian Maeder# Declare the sub-directories to be built here
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# Get the 'head' of the build environment. This includes default targets and
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# paths to tools
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maederinclude $(AP_WORK)\build\NWGNUhead.inc
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder# build this level's files
a1ed34933c266ce85066acb0d7b20c90cb8eb213Christian Maeder# Make sure all needed macro's are defined
ad270004874ce1d0697fb30d7309f180553bb315Christian Maeder# These directories will be at the beginning of the include list, followed by
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder# These flags will come after CFLAGS
e593b89bfd4952698dc37feced21cefe869d87a2Christian Maeder# These defines will come after DEFINES
51d769d55d88dfa88bdf54bee78d8fa85a2deba8Christian Maeder# These flags will be added to the link.opt file
c3053d57f642ca507cdf79512e604437c4546cb9Christian Maeder# These values will be appended to the correct variables based on the value of
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maederifeq "$(RELEASE)" "debug"
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai Codescuifeq "$(RELEASE)" "noopt"
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maederifeq "$(RELEASE)" "release"
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# These are used by the link target if an NLM is being generated
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder# This is used by the link 'name' directive to name the nlm. If left blank
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# TARGET_nlm (see below) will be used.
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder# This is used by the link '-desc ' directive.
51d769d55d88dfa88bdf54bee78d8fa85a2deba8Christian Maeder# If left blank, NLM_NAME will be used.
a42fbfe7becf0eae2d624123eb0db73a794593f0Christian MaederNLM_DESCRIPTION =
1cd4f6541984962658add5cfaa9f28a93879881bChristian Maeder# This is used by the '-threadname' directive. If left blank,
1cd4f6541984962658add5cfaa9f28a93879881bChristian Maeder# NLM_NAME Thread will be used.
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederNLM_THREAD_NAME =
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder# If this is specified, it will override VERSION value in
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder# $(AP_WORK)\build\NWGNUenvironment.inc
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder# If this is specified, it will override the default of 64K
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederNLM_STACK_SIZE =
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder# If this is specified it will be used by the link '-entry' directive
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederNLM_ENTRY_SYM =
4017ebc0f692820736d796af3110c3b3018c108aChristian Maeder# If this is specified it will be used by the link '-exit' directive
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederNLM_EXIT_SYM =
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# If this is specified it will be used by the link '-check' directive
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederNLM_CHECK_SYM =
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder# If these are specified it will be used by the link '-flags' directive
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder# If this is specified it will be linked in with the XDCData option in the def
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# by setting APACHE_UNIPROC in the environment
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder# If there is an NLM target, put it here
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederTARGET_nlm = \
eb74267cf39e4e95f9eeb5c765f4c8dac33971b4Christian Maeder# If there is an LIB target, put it here
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederTARGET_lib = \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# These are the OBJ files needed to create the NLM target above.
6cd33d6101fb1b93baa6d86fac158af18a115108Christian Maeder# Paths must all use the '/' character
6cd33d6101fb1b93baa6d86fac158af18a115108Christian MaederFILES_nlm_objs = \
b2ac5a92cf36382e8deea5661c1964566caf72b3Christian Maeder# These are the LIB files needed to create the NLM target above.
b2ac5a92cf36382e8deea5661c1964566caf72b3Christian Maeder# These will be added as a library command in the link.opt file.
6cd33d6101fb1b93baa6d86fac158af18a115108Christian MaederFILES_nlm_libs = \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# These are the modules that the above NLM target depends on to load.
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# These will be added as a module command in the link.opt file.
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederFILES_nlm_modules = \
f1a913f880e409e7327b5deae95738b5448379a1Christian Maeder# If the nlm has a msg file, put it's path here
f1a913f880e409e7327b5deae95738b5448379a1Christian MaederFILE_nlm_msg =
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# If the nlm has a hlp file put it's path here
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian MaederFILE_nlm_hlp =
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder# If this is specified, it will override $(NWOS)\copyright.txt.
a6db617ca58eb6a0587b6366e913107dfecb71b5Heng JiangFILE_nlm_copyright =
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maeder# Any additional imports go here
5b818f10e11fc79def1fdd5c8a080d64a6438d87Christian MaederFILES_nlm_Ximports = \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# Any symbols exported to here
d6697ad2479099b816203fd2c36f593c72c73c76Christian MaederFILES_nlm_exports = \
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers# These are the OBJ files needed to create the LIB target above.
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# Paths must all use the '/' character
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederFILES_lib_objs = \
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder# implement targets and dependancies (leave this section alone)
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maederlibs :: $(OBJDIR) $(TARGET_lib)
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maedernlms :: libs $(TARGET_nlm)
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder# Updated this target to create necessary directories and copy files to the
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian Maederinstall :: nlms FORCE
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian Maeder copy $(OBJDIR)\*.nlm $(INSTALL)\$(BASEDIR)\modules\*.*
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder# Any specialized rules here
54ea981a0503c396c2923a1c06421c6235baf27fChristian Maeder# Include the 'tail' makefile that has targets that depend on variables defined
697e63e30aa3c309a1ef1f9357745111f8dfc5a9Christian Maeder# in this makefile
f9e0b18852b238ddb649d341194e05d7200d1bbeChristian Maederinclude $(AP_WORK)\build\NWGNUtail.inc