NWGNUmakefile revision fa8ed9702ac1820f539365853f0671f3125b2d73
c63ebf815c8a874525cf18670ad74847f7fc7b26Christian Maeder# Declare the sub-directories to be built here
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# Get the 'head' of the build environment. This includes default targets and
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# paths to tools
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maederinclude $(AP_WORK)\build\NWGNUhead.inc
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# build this level's files
a53841f6d6e86ac751c12a33dc8aadf53f59d977Klaus Luettich# Make sure all needed macro's are defined
68d10d143f29fcff3c637ba24f90e983995ceae6Christian Maeder# These directories will be at the beginning of the include list, followed by
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder# These flags will come after CFLAGS
8410667510a76409aca9bb24ff0eda0420088274Christian Maeder# These defines will come after DEFINES
ad270004874ce1d0697fb30d7309f180553bb315Christian Maeder# These flags will be added to the link.opt file
356fa49fe3e6a8398f92d13e9f920d0f093697ecChristian Maeder# These values will be appended to the correct variables based on the value of
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maederifeq "$(RELEASE)" "debug"
c3053d57f642ca507cdf79512e604437c4546cb9Christian Maederifeq "$(RELEASE)" "noopt"
f13d1e86e58da53680e78043e8df182eed867efbChristian Maederifeq "$(RELEASE)" "release"
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder# These are used by the link target if an NLM is being generated
a7c27282e71cf4505026645f96d4f5cb8a284e32Christian Maeder# This is used by the link 'name' directive to name the nlm. If left blank
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder# TARGET_nlm (see below) will be used.
431d34c7007a787331c4e5ec997badb0f8190fc7Christian Maeder# This is used by the link '-desc ' directive.
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# If left blank, NLM_NAME will be used.
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederNLM_DESCRIPTION =
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder# This is used by the '-threadname' directive. If left blank,
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder# NLM_NAME Thread will be used.
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederNLM_THREAD_NAME =
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder# If this is specified, it will override VERSION value in
a6db617ca58eb6a0587b6366e913107dfecb71b5Heng Jiang# $(AP_WORK)\build\NWGNUenvironment.inc
a6082d6cfdfbdc6a4e70430bb25638dfa4f0db9bHeng JiangNLM_VERSION =
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder# If this is specified, it will override the default of 64K
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian MaederNLM_STACK_SIZE =
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# If this is specified it will be used by the link '-entry' directive
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederNLM_ENTRY_SYM =
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# If this is specified it will be used by the link '-exit' directive
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederNLM_EXIT_SYM =
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder# If this is specified it will be used by the link '-check' directive
03a6d8f77f588dc5d3dd6653797fa2362efa1751Christian MaederNLM_CHECK_SYM =
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# If these are specified it will be used by the link '-flags' directive
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder# If this is specified it will be linked in with the XDCData option in the def
a5e5b8c3e5c11177e5034ef2423813a5d28979edChristian Maeder# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
a5e5b8c3e5c11177e5034ef2423813a5d28979edChristian Maeder# by setting APACHE_UNIPROC in the environment
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder# If there is an NLM target, put it here
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederTARGET_nlm = \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder# If there is an LIB target, put it here
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederTARGET_lib = \
a3c6d8e0670bf2aa71bc8e2a3b1f45d56dd65e4cChristian Maeder# These are the OBJ files needed to create the NLM target above.
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# Paths must all use the '/' character
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederFILES_nlm_objs = \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder# These are the LIB files needed to create the NLM target above.
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# These will be added as a library command in the link.opt file.
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederFILES_nlm_libs = \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder# These are the modules that the above NLM target depends on to load.
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich# These will be added as a module command in the link.opt file.
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederFILES_nlm_modules = \
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder# If the nlm has a msg file, put it's path here
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian MaederFILE_nlm_msg =
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# If the nlm has a hlp file put it's path here
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederFILE_nlm_hlp =
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder# If this is specified, it will override $(NWOS)\copyright.txt.
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederFILE_nlm_copyright =
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder# Any additional imports go here
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian MaederFILES_nlm_Ximports = \
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder# Any symbols exported to here
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian MaederFILES_nlm_exports = \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# These are the OBJ files needed to create the LIB target above.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# Paths must all use the '/' character
e7757995211bd395dc79d26fe017d99375f7d2a6Christian MaederFILES_lib_objs = \
b886e9e5db2098d0112cc4f70aeba232962939ddChristian Maeder# implement targets and dependancies (leave this section alone)
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maederlibs :: $(OBJDIR) $(TARGET_lib)
42b12fba6830ada5057949f825fc27edf5574e5fChristian Maedernlms :: libs $(TARGET_nlm)
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder# Updated this target to create necessary directories and copy files to the
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederinstall :: nlms FORCE
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder copy $(OBJDIR)\*.nlm $(INSTALL)\Apache2\modules\*.*
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder# Any specialized rules here
5b818f10e11fc79def1fdd5c8a080d64a6438d87Christian Maeder# Include the 'tail' makefile that has targets that depend on variables defined
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers# in this makefile
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederinclude $(AP_WORK)\build\NWGNUtail.inc