NWGNUsubstitute revision 44f575c8cb19a7a5cd61664a7848be6bc197df02
ec79b29695b183f794264bbb578c51e93d1f9b1emartin# Declare the sub-directories to be built here
7aa189407cc993c97b31167201319a9ab2e1715ewrowe# Get the 'head' of the build environment. This includes default targets and
7aa189407cc993c97b31167201319a9ab2e1715ewrowe# paths to tools
7e5a8c14bf68438e4098f74999e154d157e33eb7wroweinclude $(AP_WORK)/build/NWGNUhead.inc
79d4b708d021714647aab8b138ae671ed24765cewrowe# build this level's files
79d4b708d021714647aab8b138ae671ed24765cewrowe# Make sure all needed macro's are defined
6666167d402bfbfe002ab2626b788f5822e831e6niq# These directories will be at the beginning of the include list, followed by
88d0e50f16b21d4d0af0a48da7ad28fb5991834crpluemXINCDIRS += \
88d0e50f16b21d4d0af0a48da7ad28fb5991834crpluem $(APR)/include \
15264721069299ec26493e21d56bf8ff7faf6f0drpluem $(APRUTIL)/include \
15264721069299ec26493e21d56bf8ff7faf6f0drpluem $(SRC)/include \
11e1b16b907afb7de0678e28fe4849d9029e2df8rpluem# These flags will come after CFLAGS
a085f5ab771cff650b27e7a761b7f19adf884686rpluemXCFLAGS += \
25a81ea1bca1c89cda713c4d23660e487b1488a0rpluem# These defines will come after DEFINES
de0d0b50c96fae59c28e09fed61b0d15cfa4147bchrisdXDEFINES += \
48fa058fe468025347930610ac2473094fa0f4e4chrisd# These flags will be added to the link.opt file
48fa058fe468025347930610ac2473094fa0f4e4chrisdXLFLAGS += \
3ec4328f079d8867cc323155e59678ad9437914frooneg# These values will be appended to the correct variables based on the value of
de0d0b50c96fae59c28e09fed61b0d15cfa4147bchrisdifeq "$(RELEASE)" "debug"
de0d0b50c96fae59c28e09fed61b0d15cfa4147bchrisdXINCDIRS += \
de0d0b50c96fae59c28e09fed61b0d15cfa4147bchrisdXCFLAGS += \
cd59ac5e8f739afbdcd523c649550f7dce1709ceniqXDEFINES += \
60262a02cfeba50d60d990b56d0e0c1d1fafb672sctemmeXLFLAGS += \
60262a02cfeba50d60d990b56d0e0c1d1fafb672sctemmeifeq "$(RELEASE)" "noopt"
60262a02cfeba50d60d990b56d0e0c1d1fafb672sctemmeXINCDIRS += \
3ddec0f3e161d5a5afab12c522d92c44e4d7d8fcgregamesXCFLAGS += \
db78659055df54243bca678c35bd2ce7e31a9237roonegXDEFINES += \
95817edd05387a5276f51fcd5db79fc21b89b55broonegXLFLAGS += \
63689d77e084e36b8194fb6df5adfc0344965e01trawickifeq "$(RELEASE)" "release"
63689d77e084e36b8194fb6df5adfc0344965e01trawickXINCDIRS += \
5714cdd83e23557d801437daa5e3ab8ba78ae595jortonXCFLAGS += \
69c36bbae91de0e99a682aaae9d6fa61fceb2771bnicholesXDEFINES += \
a1a615ca49b162d71d88089210395c9a9cfeb539rpluemXLFLAGS += \
a1a615ca49b162d71d88089210395c9a9cfeb539rpluem# These are used by the link target if an NLM is being generated
69c36bbae91de0e99a682aaae9d6fa61fceb2771bnicholes# This is used by the link 'name' directive to name the nlm. If left blank
69c36bbae91de0e99a682aaae9d6fa61fceb2771bnicholes# TARGET_nlm (see below) will be used.
69c36bbae91de0e99a682aaae9d6fa61fceb2771bnicholesNLM_NAME = substitute
69c36bbae91de0e99a682aaae9d6fa61fceb2771bnicholes# This is used by the link '-desc ' directive.
69c36bbae91de0e99a682aaae9d6fa61fceb2771bnicholes# If left blank, NLM_NAME will be used.
69c36bbae91de0e99a682aaae9d6fa61fceb2771bnicholesNLM_DESCRIPTION = Apache $(VERSION_STR) Substitute Module
69c36bbae91de0e99a682aaae9d6fa61fceb2771bnicholes# This is used by the '-threadname' directive. If left blank,
69c36bbae91de0e99a682aaae9d6fa61fceb2771bnicholes# NLM_NAME Thread will be used.
69c36bbae91de0e99a682aaae9d6fa61fceb2771bnicholesNLM_THREAD_NAME = Substitute Module
a1a615ca49b162d71d88089210395c9a9cfeb539rpluem# If this is specified, it will override VERSION value in
1b0dce86d7fc8a5aa4c89b05255be26e508c615crpluemNLM_VERSION =
edc5389f50ce4153e6192740f3c7a188c8cf8d67niq# If this is specified, it will override the default of 64K
6c05afd314b4ddd545d63b4ff5de822cc30eec79trawickNLM_STACK_SIZE = 8192
a623efbff95aab78da9e030524b0fa69b054f6d0brianp# If this is specified it will be used by the link '-entry' directive
a623efbff95aab78da9e030524b0fa69b054f6d0brianpNLM_ENTRY_SYM =
a623efbff95aab78da9e030524b0fa69b054f6d0brianp# If this is specified it will be used by the link '-exit' directive
0b4b04d8621478ba59f0a6ba2950ddc02ab92b58colmNLM_EXIT_SYM =
2f1bb5376c5c4022383bb729679ca751dd75a2eabrianp# If this is specified it will be used by the link '-check' directive
ad862ab5716726a2d72a292ba1dfb29566c86153brianpNLM_CHECK_SYM =
17d53ea32c4968e47733f1c2c063ae07d280efd6jerenkrantz# If these are specified it will be used by the link '-flags' directive
b38565306421ff53e9f7499bc728d6df5cec294dpquerna# If this is specified it will be linked in with the XDCData option in the def
b38565306421ff53e9f7499bc728d6df5cec294dpquerna# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
0c5a6a11ce72ad41b14c755f4a2254e0c7b70245rpluem# by setting APACHE_UNIPROC in the environment
a9e9e4d9b1e6bb081282f75bf450b7d7d5a1f581rpluem# If there is an NLM target, put it here
a9e9e4d9b1e6bb081282f75bf450b7d7d5a1f581rpluemTARGET_nlm = \
a9e9e4d9b1e6bb081282f75bf450b7d7d5a1f581rpluem# If there is an LIB target, put it here
200fd0ce73d992a43b500ddfe94487a840bd56darpluemTARGET_lib = \
0c5a6a11ce72ad41b14c755f4a2254e0c7b70245rpluem# These are the OBJ files needed to create the NLM target above.
0c5a6a11ce72ad41b14c755f4a2254e0c7b70245rpluem# Paths must all use the '/' character
0c5a6a11ce72ad41b14c755f4a2254e0c7b70245rpluemFILES_nlm_objs = \
0c5a6a11ce72ad41b14c755f4a2254e0c7b70245rpluem# These are the LIB files needed to create the NLM target above.
0c5a6a11ce72ad41b14c755f4a2254e0c7b70245rpluem# These will be added as a library command in the link.opt file.
0c5a6a11ce72ad41b14c755f4a2254e0c7b70245rpluemFILES_nlm_libs = \
0c5a6a11ce72ad41b14c755f4a2254e0c7b70245rpluem $(PRELUDE) \
0c5a6a11ce72ad41b14c755f4a2254e0c7b70245rpluem# These are the modules that the above NLM target depends on to load.
0c5a6a11ce72ad41b14c755f4a2254e0c7b70245rpluem# These will be added as a module command in the link.opt file.
0c5a6a11ce72ad41b14c755f4a2254e0c7b70245rpluemFILES_nlm_modules = \
200fd0ce73d992a43b500ddfe94487a840bd56darpluem# If the nlm has a msg file, put it's path here
200fd0ce73d992a43b500ddfe94487a840bd56darpluemFILE_nlm_msg =
200fd0ce73d992a43b500ddfe94487a840bd56darpluem# If the nlm has a hlp file put it's path here
200fd0ce73d992a43b500ddfe94487a840bd56darpluemFILE_nlm_hlp =
cbb903af5066589fe0e73f3ecf06abdc71e38effrpluem# If this is specified, it will override $(NWOS)\copyright.txt.
0919d062982a9c9d2f4a8933ef54ccba2dd2b8f8rpluemFILE_nlm_copyright =
0919d062982a9c9d2f4a8933ef54ccba2dd2b8f8rpluem# Any additional imports go here
60262a02cfeba50d60d990b56d0e0c1d1fafb672sctemmeFILES_nlm_Ximports = \
0919d062982a9c9d2f4a8933ef54ccba2dd2b8f8rpluem# Any symbols exported to here
c9ce3d3ead2ba4ea6f5bb176745172f3538aed60rpluemFILES_nlm_exports = \
c9ce3d3ead2ba4ea6f5bb176745172f3538aed60rpluem substitute_module \
c9ce3d3ead2ba4ea6f5bb176745172f3538aed60rpluem# These are the OBJ files needed to create the LIB target above.
c9ce3d3ead2ba4ea6f5bb176745172f3538aed60rpluem# Paths must all use the '/' character
c9ce3d3ead2ba4ea6f5bb176745172f3538aed60rpluemFILES_lib_objs = \
0deb1a75b17945f30e56e81b851a2a2ab08af50drpluem# implement targets and dependancies (leave this section alone)
0deb1a75b17945f30e56e81b851a2a2ab08af50drpluemlibs :: $(OBJDIR) $(TARGET_lib)
0deb1a75b17945f30e56e81b851a2a2ab08af50drpluemnlms :: libs $(TARGET_nlm)
0deb1a75b17945f30e56e81b851a2a2ab08af50drpluem# Updated this target to create necessary directories and copy files to the
0deb1a75b17945f30e56e81b851a2a2ab08af50drpluem# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
0919d062982a9c9d2f4a8933ef54ccba2dd2b8f8rplueminstall :: nlms FORCE
8e72243380282ce619a2c6bce8f8359b8d95306fjim# Any specialized rules here
8e72243380282ce619a2c6bce8f8359b8d95306fjim# Include the 'tail' makefile that has targets that depend on variables defined
98179b7bdc84db9364cb774bf2fc9c511622c3ffjim# in this makefile
317b1987e48bbdbfe8b1dcccdcf5cd6c10a26436jiminclude $(APBUILD)/NWGNUtail.inc