NWGNUsubstitute revision 44f575c8cb19a7a5cd61664a7848be6bc197df02
d5b7ba26785d7494166d48876362ba30ff30b98awrowe#
c30ef289fe64ac7fedc44cfcc6b439f0f8458b4cgregames# Declare the sub-directories to be built here
c30ef289fe64ac7fedc44cfcc6b439f0f8458b4cgregames#
5541a81e194dc99521c0ecf904a940b0b65a93f2nd
acc3e80f96b099467531887979ace7d8957f807ctrawickSUBDIRS = \
acc3e80f96b099467531887979ace7d8957f807ctrawick $(EOLIST)
acc3e80f96b099467531887979ace7d8957f807ctrawick
acc3e80f96b099467531887979ace7d8957f807ctrawick#
709cbb7b338843a3f9d7b9b92e8e0c4b1f9b7848ake# Get the 'head' of the build environment. This includes default targets and
709cbb7b338843a3f9d7b9b92e8e0c4b1f9b7848ake# paths to tools
709cbb7b338843a3f9d7b9b92e8e0c4b1f9b7848ake#
709cbb7b338843a3f9d7b9b92e8e0c4b1f9b7848ake
709cbb7b338843a3f9d7b9b92e8e0c4b1f9b7848akeinclude $(AP_WORK)/build/NWGNUhead.inc
ffd0d55dc34cf4caada15d09018c7d915e5736a3wrowe
ffd0d55dc34cf4caada15d09018c7d915e5736a3wrowe#
ffd0d55dc34cf4caada15d09018c7d915e5736a3wrowe# build this level's files
9efe68be3c81ee85225972195fb725dbfc2e8b24trawick
9098f795fab5db41a52b6b82fa475e8f9b3850f0trawick#
9098f795fab5db41a52b6b82fa475e8f9b3850f0trawick# Make sure all needed macro's are defined
9098f795fab5db41a52b6b82fa475e8f9b3850f0trawick#
9efe68be3c81ee85225972195fb725dbfc2e8b24trawick
3b872593fd5f61981d9dd69a4b0b5d5f5f668929trawick#
3b872593fd5f61981d9dd69a4b0b5d5f5f668929trawick# These directories will be at the beginning of the include list, followed by
3b872593fd5f61981d9dd69a4b0b5d5f5f668929trawick# INCDIRS
5d2959154eb0b63ab0e9ef5fc2c34f296fa7beeegregames#
5d2959154eb0b63ab0e9ef5fc2c34f296fa7beeegregamesXINCDIRS += \
5d2959154eb0b63ab0e9ef5fc2c34f296fa7beeegregames $(APR)/include \
5d2959154eb0b63ab0e9ef5fc2c34f296fa7beeegregames $(APRUTIL)/include \
81b30d1b974212267ddc27c450abc1453ce56423nd $(SRC)/include \
81b30d1b974212267ddc27c450abc1453ce56423nd $(NWOS) \
81b30d1b974212267ddc27c450abc1453ce56423nd $(EOLIST)
fc25339741311efd7d460f18b6287ef38d76bbe6madhum
fc25339741311efd7d460f18b6287ef38d76bbe6madhum#
fc25339741311efd7d460f18b6287ef38d76bbe6madhum# These flags will come after CFLAGS
fc25339741311efd7d460f18b6287ef38d76bbe6madhum#
fcdca175a52fe517f2317ba0e2b6e6d14522b869madhumXCFLAGS += \
fcdca175a52fe517f2317ba0e2b6e6d14522b869madhum $(EOLIST)
92a2439559cf1161742650ed9c50c6483bd029cemadhum
92a2439559cf1161742650ed9c50c6483bd029cemadhum#
92a2439559cf1161742650ed9c50c6483bd029cemadhum# These defines will come after DEFINES
92a2439559cf1161742650ed9c50c6483bd029cemadhum#
0d60370bedd05f9632f54e85c417ce472d463674madhumXDEFINES += \
0d60370bedd05f9632f54e85c417ce472d463674madhum $(EOLIST)
0d60370bedd05f9632f54e85c417ce472d463674madhum
0d60370bedd05f9632f54e85c417ce472d463674madhum#
ebecc16986604cce1369d5075eff65032e3dd0deianh# These flags will be added to the link.opt file
0d60370bedd05f9632f54e85c417ce472d463674madhum#
ebecc16986604cce1369d5075eff65032e3dd0deianhXLFLAGS += \
764315969cef40e50cdc6a5e9638454e10c1c06end $(EOLIST)
764315969cef40e50cdc6a5e9638454e10c1c06end
764315969cef40e50cdc6a5e9638454e10c1c06end#
764315969cef40e50cdc6a5e9638454e10c1c06end# These values will be appended to the correct variables based on the value of
4ac3e76f96ca3a5d0f67ae5cbe637c18f7280458gregames# RELEASE
4ac3e76f96ca3a5d0f67ae5cbe637c18f7280458gregames#
4ac3e76f96ca3a5d0f67ae5cbe637c18f7280458gregamesifeq "$(RELEASE)" "debug"
bfb54bd96690887dcdf184fd9083c2e167898ce2ndXINCDIRS += \
a2c036f0ca71e35c085b4cd9451a6d3718bc65daake $(EOLIST)
a2c036f0ca71e35c085b4cd9451a6d3718bc65daake
a2c036f0ca71e35c085b4cd9451a6d3718bc65daakeXCFLAGS += \
a2c036f0ca71e35c085b4cd9451a6d3718bc65daake $(EOLIST)
fbfb0de5ec8b82ad240074f20184f0cf77b59fb3nd
fbfb0de5ec8b82ad240074f20184f0cf77b59fb3ndXDEFINES += \
fbfb0de5ec8b82ad240074f20184f0cf77b59fb3nd $(EOLIST)
fbfb0de5ec8b82ad240074f20184f0cf77b59fb3nd
146bd390ef41ad985a39b6dd8519163796a4d585ndXLFLAGS += \
146bd390ef41ad985a39b6dd8519163796a4d585nd $(EOLIST)
146bd390ef41ad985a39b6dd8519163796a4d585ndendif
146bd390ef41ad985a39b6dd8519163796a4d585nd
b92cba59a0890be43b14aaf1ce30606140be9593ndifeq "$(RELEASE)" "noopt"
b92cba59a0890be43b14aaf1ce30606140be9593ndXINCDIRS += \
b92cba59a0890be43b14aaf1ce30606140be9593nd $(EOLIST)
b92cba59a0890be43b14aaf1ce30606140be9593nd
402d23baca89e8c4fcb4e52ad8b2d66a6904baaetrawickXCFLAGS += \
402d23baca89e8c4fcb4e52ad8b2d66a6904baaetrawick $(EOLIST)
402d23baca89e8c4fcb4e52ad8b2d66a6904baaetrawick
affb82a2d7fc07c1a862d800ef47af966b898768ndXDEFINES += \
affb82a2d7fc07c1a862d800ef47af966b898768nd $(EOLIST)
affb82a2d7fc07c1a862d800ef47af966b898768nd
affb82a2d7fc07c1a862d800ef47af966b898768ndXLFLAGS += \
6d4bfae6836af357a3b9790c0d6a06fdd00f177fnd $(EOLIST)
6d4bfae6836af357a3b9790c0d6a06fdd00f177fndendif
6d4bfae6836af357a3b9790c0d6a06fdd00f177fnd
6d4bfae6836af357a3b9790c0d6a06fdd00f177fndifeq "$(RELEASE)" "release"
4caa28863a3418d26cc20a998dc368c3de3b7e19jerenkrantzXINCDIRS += \
4caa28863a3418d26cc20a998dc368c3de3b7e19jerenkrantz $(EOLIST)
4caa28863a3418d26cc20a998dc368c3de3b7e19jerenkrantz
07af571d0ef9975db2e79cd01222effd58dbb81ejerenkrantzXCFLAGS += \
07af571d0ef9975db2e79cd01222effd58dbb81ejerenkrantz $(EOLIST)
07af571d0ef9975db2e79cd01222effd58dbb81ejerenkrantz
a3f2646ef3d8a3a5234a5601de0f95f10308c2a6jerenkrantzXDEFINES += \
a3f2646ef3d8a3a5234a5601de0f95f10308c2a6jerenkrantz $(EOLIST)
a3f2646ef3d8a3a5234a5601de0f95f10308c2a6jerenkrantz
9e398d701dd430f073ff5418fb720642e064046ajerenkrantzXLFLAGS += \
9e398d701dd430f073ff5418fb720642e064046ajerenkrantz $(EOLIST)
9e398d701dd430f073ff5418fb720642e064046ajerenkrantzendif
1a5b9e0071f0c662036250b482d566ad87ff0b4bjerenkrantz
1a5b9e0071f0c662036250b482d566ad87ff0b4bjerenkrantz#
1a5b9e0071f0c662036250b482d566ad87ff0b4bjerenkrantz# These are used by the link target if an NLM is being generated
a7ac9b52c3d9f7ce937f078a0d585023db626c55jerenkrantz# This is used by the link 'name' directive to name the nlm. If left blank
a7ac9b52c3d9f7ce937f078a0d585023db626c55jerenkrantz# TARGET_nlm (see below) will be used.
a7ac9b52c3d9f7ce937f078a0d585023db626c55jerenkrantz#
ba6c07204bd224fa5d4cd0e6b8bf256d6daffb74ndNLM_NAME = substitute
ba6c07204bd224fa5d4cd0e6b8bf256d6daffb74nd
ba6c07204bd224fa5d4cd0e6b8bf256d6daffb74nd#
db5837bbc9bef214303e755fa52122140366cb6fianh# This is used by the link '-desc ' directive.
db5837bbc9bef214303e755fa52122140366cb6fianh# If left blank, NLM_NAME will be used.
db5837bbc9bef214303e755fa52122140366cb6fianh#
aac2b82fe4f1ac117e2a0702438d6615542642dandNLM_DESCRIPTION = Apache $(VERSION_STR) Substitute Module
aac2b82fe4f1ac117e2a0702438d6615542642dand
aac2b82fe4f1ac117e2a0702438d6615542642dand#
a793d402c74e50326a2401cfbdc562c5781948fdnd# This is used by the '-threadname' directive. If left blank,
a793d402c74e50326a2401cfbdc562c5781948fdnd# NLM_NAME Thread will be used.
0a209fcb17b8c9a42a6149a1758e61cf6527d367nd#
a793d402c74e50326a2401cfbdc562c5781948fdndNLM_THREAD_NAME = Substitute Module
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz#
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz# If this is specified, it will override VERSION value in
3ded62d7f2c9b12616d718b8c97d3044baa9ecdbjerenkrantz# $(AP_WORK)/build/NWGNUenvironment.inc
3ded62d7f2c9b12616d718b8c97d3044baa9ecdbjerenkrantz#
3ded62d7f2c9b12616d718b8c97d3044baa9ecdbjerenkrantzNLM_VERSION =
031acbd88cdb9051f474a38ef67ca403cb7039b3nd
031acbd88cdb9051f474a38ef67ca403cb7039b3nd#
031acbd88cdb9051f474a38ef67ca403cb7039b3nd# If this is specified, it will override the default of 64K
031acbd88cdb9051f474a38ef67ca403cb7039b3nd#
ebf6c41faad84ab037fff4f04ec987463457ef2acoarNLM_STACK_SIZE = 8192
ebf6c41faad84ab037fff4f04ec987463457ef2acoar
ebf6c41faad84ab037fff4f04ec987463457ef2acoar
ebf6c41faad84ab037fff4f04ec987463457ef2acoar#
ebf6c41faad84ab037fff4f04ec987463457ef2acoar# If this is specified it will be used by the link '-entry' directive
ab8c0315521735c73ce16c8072f91e17c406ca5bnd#
ab8c0315521735c73ce16c8072f91e17c406ca5bndNLM_ENTRY_SYM =
ab8c0315521735c73ce16c8072f91e17c406ca5bnd
b9e99e0d3154bbebe3e1b8d11d6c15bde79510a5nd#
b9e99e0d3154bbebe3e1b8d11d6c15bde79510a5nd# If this is specified it will be used by the link '-exit' directive
b9e99e0d3154bbebe3e1b8d11d6c15bde79510a5nd#
b9e99e0d3154bbebe3e1b8d11d6c15bde79510a5ndNLM_EXIT_SYM =
ea5f8cfbb7ef1d19318f6994c26dd73c38ffd8ddjerenkrantz
ea5f8cfbb7ef1d19318f6994c26dd73c38ffd8ddjerenkrantz#
ea5f8cfbb7ef1d19318f6994c26dd73c38ffd8ddjerenkrantz# If this is specified it will be used by the link '-check' directive
4567cfc6a65328bd3e8dd2b758ca926b389c7058brianp#
4567cfc6a65328bd3e8dd2b758ca926b389c7058brianpNLM_CHECK_SYM =
4567cfc6a65328bd3e8dd2b758ca926b389c7058brianp
4cdc5446050c19b9d519a273a129188586e8d445jerenkrantz#
4cdc5446050c19b9d519a273a129188586e8d445jerenkrantz# If these are specified it will be used by the link '-flags' directive
4cdc5446050c19b9d519a273a129188586e8d445jerenkrantz#
2f408250e9111c4b85b2b4b9b8836e83987efdefstoddardNLM_FLAGS =
2f408250e9111c4b85b2b4b9b8836e83987efdefstoddard
2f408250e9111c4b85b2b4b9b8836e83987efdefstoddard#
2f408250e9111c4b85b2b4b9b8836e83987efdefstoddard# If this is specified it will be linked in with the XDCData option in the def
d5b7ba26785d7494166d48876362ba30ff30b98awrowe# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
47fe07199bddec6124ab7251c6be5c6c9ac00485jerenkrantz# by setting APACHE_UNIPROC in the environment
47fe07199bddec6124ab7251c6be5c6c9ac00485jerenkrantz#
6646a289c2d4778c8cd43d62b5a1cc966a356f85jerenkrantzXDCDATA =
6646a289c2d4778c8cd43d62b5a1cc966a356f85jerenkrantz
6646a289c2d4778c8cd43d62b5a1cc966a356f85jerenkrantz#
6646a289c2d4778c8cd43d62b5a1cc966a356f85jerenkrantz# If there is an NLM target, put it here
aec70520ebe1e33e0d5e83c3626649d2a41dbe68wrowe#
aec70520ebe1e33e0d5e83c3626649d2a41dbe68wroweTARGET_nlm = \
aec70520ebe1e33e0d5e83c3626649d2a41dbe68wrowe $(OBJDIR)/substitute.nlm \
ad451e2e428a069086d1c18c9e3372f8846ec617wrowe $(EOLIST)
ad451e2e428a069086d1c18c9e3372f8846ec617wrowe
ad451e2e428a069086d1c18c9e3372f8846ec617wrowe#
ad451e2e428a069086d1c18c9e3372f8846ec617wrowe# If there is an LIB target, put it here
761fb8d21084bd7b7eb590fbd54a925dfdf806bbnd#
761fb8d21084bd7b7eb590fbd54a925dfdf806bbndTARGET_lib = \
6fbf645df300ffa9c9693399571f2cd821af06fdtrawick $(EOLIST)
6fbf645df300ffa9c9693399571f2cd821af06fdtrawick
6fbf645df300ffa9c9693399571f2cd821af06fdtrawick#
6fbf645df300ffa9c9693399571f2cd821af06fdtrawick# These are the OBJ files needed to create the NLM target above.
6fbf645df300ffa9c9693399571f2cd821af06fdtrawick# Paths must all use the '/' character
c8ff8621370eb28a3f697a00bf5e6b3bc1a0d9f1minfrin#
c8ff8621370eb28a3f697a00bf5e6b3bc1a0d9f1minfrinFILES_nlm_objs = \
c8ff8621370eb28a3f697a00bf5e6b3bc1a0d9f1minfrin $(OBJDIR)/mod_substitute.o \
c8ff8621370eb28a3f697a00bf5e6b3bc1a0d9f1minfrin $(EOLIST)
c8ff8621370eb28a3f697a00bf5e6b3bc1a0d9f1minfrin
c8989f842c2ad4533950c13d99d3dfb099da0d67minfrin#
c8989f842c2ad4533950c13d99d3dfb099da0d67minfrin# These are the LIB files needed to create the NLM target above.
c8989f842c2ad4533950c13d99d3dfb099da0d67minfrin# These will be added as a library command in the link.opt file.
c8989f842c2ad4533950c13d99d3dfb099da0d67minfrin#
97610ac677a5eda4a3bb366c5bb34a27eeb4288cminfrinFILES_nlm_libs = \
97610ac677a5eda4a3bb366c5bb34a27eeb4288cminfrin $(PRELUDE) \
97610ac677a5eda4a3bb366c5bb34a27eeb4288cminfrin $(EOLIST)
6aa783d83f4304f664233d8252cb67116769676ewrowe
6aa783d83f4304f664233d8252cb67116769676ewrowe#
6aa783d83f4304f664233d8252cb67116769676ewrowe# These are the modules that the above NLM target depends on to load.
6aa783d83f4304f664233d8252cb67116769676ewrowe# These will be added as a module command in the link.opt file.
6aa783d83f4304f664233d8252cb67116769676ewrowe#
761fb8d21084bd7b7eb590fbd54a925dfdf806bbndFILES_nlm_modules = \
761fb8d21084bd7b7eb590fbd54a925dfdf806bbnd aprlib \
761fb8d21084bd7b7eb590fbd54a925dfdf806bbnd libc \
761fb8d21084bd7b7eb590fbd54a925dfdf806bbnd $(EOLIST)
761fb8d21084bd7b7eb590fbd54a925dfdf806bbnd
761fb8d21084bd7b7eb590fbd54a925dfdf806bbnd#
761fb8d21084bd7b7eb590fbd54a925dfdf806bbnd# If the nlm has a msg file, put it's path here
761fb8d21084bd7b7eb590fbd54a925dfdf806bbnd#
761fb8d21084bd7b7eb590fbd54a925dfdf806bbndFILE_nlm_msg =
761fb8d21084bd7b7eb590fbd54a925dfdf806bbnd
761fb8d21084bd7b7eb590fbd54a925dfdf806bbnd#
367cefc17f8dcfe65651c9c16cb3151589c6cecetrawick# If the nlm has a hlp file put it's path here
5d6ffa7b5c77dd4132ed6d7f0dd63548b1c3c1c9nd#
d8f54fe5534b61afa68100dddbe2eb98285d1100wroweFILE_nlm_hlp =
d8f54fe5534b61afa68100dddbe2eb98285d1100wrowe
d8f54fe5534b61afa68100dddbe2eb98285d1100wrowe#
d8f54fe5534b61afa68100dddbe2eb98285d1100wrowe# If this is specified, it will override $(NWOS)\copyright.txt.
d8f54fe5534b61afa68100dddbe2eb98285d1100wrowe#
6aa783d83f4304f664233d8252cb67116769676ewroweFILE_nlm_copyright =
6aa783d83f4304f664233d8252cb67116769676ewrowe
6aa783d83f4304f664233d8252cb67116769676ewrowe#
d8f54fe5534b61afa68100dddbe2eb98285d1100wrowe# Any additional imports go here
18f36c8bdc74f9fd18739b9a154852c541b18900minfrin#
18f36c8bdc74f9fd18739b9a154852c541b18900minfrinFILES_nlm_Ximports = \
18f36c8bdc74f9fd18739b9a154852c541b18900minfrin @aprlib.imp \
f1e73dbab9ba73d83c9ac8a13ab6150653bb71a9brianp @httpd.imp \
f1e73dbab9ba73d83c9ac8a13ab6150653bb71a9brianp @libc.imp \
7a01bcd2d59be7ec9ce55701c58054fa1c0bb5b6wrowe $(EOLIST)
6aa783d83f4304f664233d8252cb67116769676ewrowe
6aa783d83f4304f664233d8252cb67116769676ewrowe#
6aa783d83f4304f664233d8252cb67116769676ewrowe# Any symbols exported to here
7a01bcd2d59be7ec9ce55701c58054fa1c0bb5b6wrowe#
7a01bcd2d59be7ec9ce55701c58054fa1c0bb5b6wroweFILES_nlm_exports = \
9d71a9210ee030534400d37010f34e6a7d72b53fnd substitute_module \
9d71a9210ee030534400d37010f34e6a7d72b53fnd $(EOLIST)
9d71a9210ee030534400d37010f34e6a7d72b53fnd
9d71a9210ee030534400d37010f34e6a7d72b53fnd#
5d6ffa7b5c77dd4132ed6d7f0dd63548b1c3c1c9nd# These are the OBJ files needed to create the LIB target above.
5d6ffa7b5c77dd4132ed6d7f0dd63548b1c3c1c9nd# Paths must all use the '/' character
5d6ffa7b5c77dd4132ed6d7f0dd63548b1c3c1c9nd#
5d6ffa7b5c77dd4132ed6d7f0dd63548b1c3c1c9ndFILES_lib_objs = \
5d6ffa7b5c77dd4132ed6d7f0dd63548b1c3c1c9nd $(EOLIST)
144b1e2ebb48b2878017a8ac9a4cad1e771bc1b6stoddard
144b1e2ebb48b2878017a8ac9a4cad1e771bc1b6stoddard#
144b1e2ebb48b2878017a8ac9a4cad1e771bc1b6stoddard# implement targets and dependancies (leave this section alone)
74b84dd6e146edc93cf1b3200e411bfc581f7c36nd#
143a04461642dea548a4bebdb302f5e411528a14trawick
143a04461642dea548a4bebdb302f5e411528a14trawicklibs :: $(OBJDIR) $(TARGET_lib)
143a04461642dea548a4bebdb302f5e411528a14trawick
ebecc16986604cce1369d5075eff65032e3dd0deianhnlms :: libs $(TARGET_nlm)
ebecc16986604cce1369d5075eff65032e3dd0deianh
ebecc16986604cce1369d5075eff65032e3dd0deianh#
ebecc16986604cce1369d5075eff65032e3dd0deianh# Updated this target to create necessary directories and copy files to the
ebecc16986604cce1369d5075eff65032e3dd0deianh# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
ebecc16986604cce1369d5075eff65032e3dd0deianh#
ebecc16986604cce1369d5075eff65032e3dd0deianhinstall :: nlms FORCE
ebecc16986604cce1369d5075eff65032e3dd0deianh
7a2b9ea4788ea59d81b9e84192e4b90a9a0da875wrowe#
7a2b9ea4788ea59d81b9e84192e4b90a9a0da875wrowe# Any specialized rules here
7a2b9ea4788ea59d81b9e84192e4b90a9a0da875wrowe#
7a2b9ea4788ea59d81b9e84192e4b90a9a0da875wrowe
7a2b9ea4788ea59d81b9e84192e4b90a9a0da875wrowe#
d225a894172ec361d2c6791638bacf604a8c6fa4nd# Include the 'tail' makefile that has targets that depend on variables defined
d225a894172ec361d2c6791638bacf604a8c6fa4nd# in this makefile
d225a894172ec361d2c6791638bacf604a8c6fa4nd#
d225a894172ec361d2c6791638bacf604a8c6fa4nd
d225a894172ec361d2c6791638bacf604a8c6fa4ndinclude $(APBUILD)/NWGNUtail.inc
d225a894172ec361d2c6791638bacf604a8c6fa4nd
d225a894172ec361d2c6791638bacf604a8c6fa4nd
70f28b17978da5478a97843ab7cbcb4baf7a8711nd