NWGNUsubstitute revision 44f575c8cb19a7a5cd61664a7848be6bc197df02
c30ef289fe64ac7fedc44cfcc6b439f0f8458b4cgregames# Declare the sub-directories to be built here
709cbb7b338843a3f9d7b9b92e8e0c4b1f9b7848ake# Get the 'head' of the build environment. This includes default targets and
709cbb7b338843a3f9d7b9b92e8e0c4b1f9b7848ake# paths to tools
709cbb7b338843a3f9d7b9b92e8e0c4b1f9b7848akeinclude $(AP_WORK)/build/NWGNUhead.inc
ffd0d55dc34cf4caada15d09018c7d915e5736a3wrowe# build this level's files
9098f795fab5db41a52b6b82fa475e8f9b3850f0trawick# Make sure all needed macro's are defined
3b872593fd5f61981d9dd69a4b0b5d5f5f668929trawick# These directories will be at the beginning of the include list, followed by
5d2959154eb0b63ab0e9ef5fc2c34f296fa7beeegregamesXINCDIRS += \
5d2959154eb0b63ab0e9ef5fc2c34f296fa7beeegregames $(APR)/include \
5d2959154eb0b63ab0e9ef5fc2c34f296fa7beeegregames $(APRUTIL)/include \
81b30d1b974212267ddc27c450abc1453ce56423nd $(SRC)/include \
fc25339741311efd7d460f18b6287ef38d76bbe6madhum# These flags will come after CFLAGS
fcdca175a52fe517f2317ba0e2b6e6d14522b869madhumXCFLAGS += \
92a2439559cf1161742650ed9c50c6483bd029cemadhum# These defines will come after DEFINES
0d60370bedd05f9632f54e85c417ce472d463674madhumXDEFINES += \
ebecc16986604cce1369d5075eff65032e3dd0deianh# These flags will be added to the link.opt file
ebecc16986604cce1369d5075eff65032e3dd0deianhXLFLAGS += \
764315969cef40e50cdc6a5e9638454e10c1c06end# These values will be appended to the correct variables based on the value of
4ac3e76f96ca3a5d0f67ae5cbe637c18f7280458gregamesifeq "$(RELEASE)" "debug"
bfb54bd96690887dcdf184fd9083c2e167898ce2ndXINCDIRS += \
a2c036f0ca71e35c085b4cd9451a6d3718bc65daakeXCFLAGS += \
fbfb0de5ec8b82ad240074f20184f0cf77b59fb3ndXDEFINES += \
146bd390ef41ad985a39b6dd8519163796a4d585ndXLFLAGS += \
b92cba59a0890be43b14aaf1ce30606140be9593ndifeq "$(RELEASE)" "noopt"
b92cba59a0890be43b14aaf1ce30606140be9593ndXINCDIRS += \
402d23baca89e8c4fcb4e52ad8b2d66a6904baaetrawickXCFLAGS += \
affb82a2d7fc07c1a862d800ef47af966b898768ndXDEFINES += \
affb82a2d7fc07c1a862d800ef47af966b898768ndXLFLAGS += \
6d4bfae6836af357a3b9790c0d6a06fdd00f177fndifeq "$(RELEASE)" "release"
4caa28863a3418d26cc20a998dc368c3de3b7e19jerenkrantzXINCDIRS += \
a3f2646ef3d8a3a5234a5601de0f95f10308c2a6jerenkrantzXDEFINES += \
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.
ba6c07204bd224fa5d4cd0e6b8bf256d6daffb74ndNLM_NAME = substitute
db5837bbc9bef214303e755fa52122140366cb6fianh# This is used by the link '-desc ' directive.
db5837bbc9bef214303e755fa52122140366cb6fianh# If left blank, NLM_NAME will be used.
aac2b82fe4f1ac117e2a0702438d6615542642dandNLM_DESCRIPTION = Apache $(VERSION_STR) Substitute Module
a793d402c74e50326a2401cfbdc562c5781948fdnd# This is used by the '-threadname' directive. If left blank,
a793d402c74e50326a2401cfbdc562c5781948fdnd# NLM_NAME Thread will be used.
a793d402c74e50326a2401cfbdc562c5781948fdndNLM_THREAD_NAME = Substitute Module
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz# If this is specified, it will override VERSION value in
3ded62d7f2c9b12616d718b8c97d3044baa9ecdbjerenkrantzNLM_VERSION =
031acbd88cdb9051f474a38ef67ca403cb7039b3nd# If this is specified, it will override the default of 64K
ebf6c41faad84ab037fff4f04ec987463457ef2acoarNLM_STACK_SIZE = 8192
ebf6c41faad84ab037fff4f04ec987463457ef2acoar# If this is specified it will be used by the link '-entry' directive
ab8c0315521735c73ce16c8072f91e17c406ca5bndNLM_ENTRY_SYM =
b9e99e0d3154bbebe3e1b8d11d6c15bde79510a5nd# If this is specified it will be used by the link '-exit' directive
b9e99e0d3154bbebe3e1b8d11d6c15bde79510a5ndNLM_EXIT_SYM =
ea5f8cfbb7ef1d19318f6994c26dd73c38ffd8ddjerenkrantz# If this is specified it will be used by the link '-check' directive
4567cfc6a65328bd3e8dd2b758ca926b389c7058brianpNLM_CHECK_SYM =
4cdc5446050c19b9d519a273a129188586e8d445jerenkrantz# If these are specified it will be used by the link '-flags' directive
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
6646a289c2d4778c8cd43d62b5a1cc966a356f85jerenkrantz# If there is an NLM target, put it here
aec70520ebe1e33e0d5e83c3626649d2a41dbe68wroweTARGET_nlm = \
ad451e2e428a069086d1c18c9e3372f8846ec617wrowe# If there is an LIB target, put it here
761fb8d21084bd7b7eb590fbd54a925dfdf806bbndTARGET_lib = \
6fbf645df300ffa9c9693399571f2cd821af06fdtrawick# These are the OBJ files needed to create the NLM target above.
6fbf645df300ffa9c9693399571f2cd821af06fdtrawick# Paths must all use the '/' character
c8ff8621370eb28a3f697a00bf5e6b3bc1a0d9f1minfrinFILES_nlm_objs = \
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.
97610ac677a5eda4a3bb366c5bb34a27eeb4288cminfrinFILES_nlm_libs = \
97610ac677a5eda4a3bb366c5bb34a27eeb4288cminfrin $(PRELUDE) \
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.
761fb8d21084bd7b7eb590fbd54a925dfdf806bbndFILES_nlm_modules = \
761fb8d21084bd7b7eb590fbd54a925dfdf806bbnd# If the nlm has a msg file, put it's path here
761fb8d21084bd7b7eb590fbd54a925dfdf806bbndFILE_nlm_msg =
367cefc17f8dcfe65651c9c16cb3151589c6cecetrawick# If the nlm has a hlp file put it's path here
d8f54fe5534b61afa68100dddbe2eb98285d1100wroweFILE_nlm_hlp =
d8f54fe5534b61afa68100dddbe2eb98285d1100wrowe# If this is specified, it will override $(NWOS)\copyright.txt.
6aa783d83f4304f664233d8252cb67116769676ewroweFILE_nlm_copyright =
d8f54fe5534b61afa68100dddbe2eb98285d1100wrowe# Any additional imports go here
18f36c8bdc74f9fd18739b9a154852c541b18900minfrinFILES_nlm_Ximports = \
6aa783d83f4304f664233d8252cb67116769676ewrowe# Any symbols exported to here
7a01bcd2d59be7ec9ce55701c58054fa1c0bb5b6wroweFILES_nlm_exports = \
9d71a9210ee030534400d37010f34e6a7d72b53fnd substitute_module \
5d6ffa7b5c77dd4132ed6d7f0dd63548b1c3c1c9nd# These are the OBJ files needed to create the LIB target above.
5d6ffa7b5c77dd4132ed6d7f0dd63548b1c3c1c9nd# Paths must all use the '/' character
5d6ffa7b5c77dd4132ed6d7f0dd63548b1c3c1c9ndFILES_lib_objs = \
144b1e2ebb48b2878017a8ac9a4cad1e771bc1b6stoddard# implement targets and dependancies (leave this section alone)
143a04461642dea548a4bebdb302f5e411528a14trawicklibs :: $(OBJDIR) $(TARGET_lib)
ebecc16986604cce1369d5075eff65032e3dd0deianhnlms :: libs $(TARGET_nlm)
ebecc16986604cce1369d5075eff65032e3dd0deianh# Updated this target to create necessary directories and copy files to the
ebecc16986604cce1369d5075eff65032e3dd0deianh# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
ebecc16986604cce1369d5075eff65032e3dd0deianhinstall :: nlms FORCE
7a2b9ea4788ea59d81b9e84192e4b90a9a0da875wrowe# Any specialized rules here
d225a894172ec361d2c6791638bacf604a8c6fa4nd# Include the 'tail' makefile that has targets that depend on variables defined
d225a894172ec361d2c6791638bacf604a8c6fa4nd# in this makefile
d225a894172ec361d2c6791638bacf604a8c6fa4ndinclude $(APBUILD)/NWGNUtail.inc