NWGNUsubstitute revision 8ffac2c334103c0336602aaede650cb578611151
ec79b29695b183f794264bbb578c51e93d1f9b1emartin# Declare the sub-directories to be built here
1392b9997000dceb6aca39da0a1e6405ccb6f0a6jerenkrantz# Get the 'head' of the build environment. This includes default targets and
1392b9997000dceb6aca39da0a1e6405ccb6f0a6jerenkrantz# paths to tools
4b0a0ae3fd77f8fc8fd2a693be33ffe4d99cb94ajerenkrantzinclude $(AP_WORK)/build/NWGNUhead.inc
4b0a0ae3fd77f8fc8fd2a693be33ffe4d99cb94ajerenkrantz# build this level's files
ee508128c414648982d1cca7801f63b01a0a4f8aminfrin# Make sure all needed macro's are defined
ec79b29695b183f794264bbb578c51e93d1f9b1emartin# These directories will be at the beginning of the include list, followed by
87d944bf70927764edf8ef69e46d3b4b8fa09131pquernaXINCDIRS += \
c30ef289fe64ac7fedc44cfcc6b439f0f8458b4cgregames $(APR)/include \
2a90918318af50d5712ae7159e5625476332c184pquerna $(APRUTIL)/include \
f07ae092933846055c4ca046c5a65de83d79c9c6pquerna $(AP_WORK)/include \
9b88ec397b4155f3ff79bf7c08de5f15d21765b3pquerna# These flags will come after CFLAGS
a42c13195a5c68d55f6b2bbf5b5e1e66ab45d5d4pquernaXCFLAGS += \
2a90918318af50d5712ae7159e5625476332c184pquerna# These defines will come after DEFINES
ede0584e7ec53cc1ea832c5c50281431d9ecc576pquernaXDEFINES += \
4d3ee33c1047b89e2860fbf095c77ad245910983wrowe# These flags will be added to the link.opt file
4ec8ec67d57d820b15807fa4a23ddd0c351fa9efwroweXLFLAGS += \
4d3ee33c1047b89e2860fbf095c77ad245910983wrowe# These values will be appended to the correct variables based on the value of
b59ae7ab0c7b5c37f145e416d61add8fd433be04wroweifeq "$(RELEASE)" "debug"
b59ae7ab0c7b5c37f145e416d61add8fd433be04wroweXINCDIRS += \
42167da203d969a1402cf7ce09c14586c04af1dfjimXCFLAGS += \
81ebf4d4f943d1ec988dd10105354e510c2da1d8jimXDEFINES += \
e62b34b26eb8e82bf6f06ff99a08e304b48792ecpquernaXLFLAGS += \
ceeb4b77f172b9d0125f1b4b323675d700b2c43bminfrinifeq "$(RELEASE)" "noopt"
ceeb4b77f172b9d0125f1b4b323675d700b2c43bminfrinXINCDIRS += \
9152b0c4366af633c4b7982af01bd9a821f410d5pquernaXCFLAGS += \
87d944bf70927764edf8ef69e46d3b4b8fa09131pquernaXDEFINES += \
424c1a743525e9c5008e29b39a99363723409a1dtrawickXLFLAGS += \
4375cabac8fc22b3717687ffdbce9bbdf095f255trawickifeq "$(RELEASE)" "release"
39dbd3f60b93f5e0fbf46d9ae237f6742e113442pquernaXINCDIRS += \
89211a3153be8b03353c3bfbca45fed67cb80f0bpquernaXCFLAGS += \
89211a3153be8b03353c3bfbca45fed67cb80f0bpquernaXDEFINES += \
89211a3153be8b03353c3bfbca45fed67cb80f0bpquernaXLFLAGS += \
43c24b7301a9df7014ce54c0bc55ac4754cf5b0dpquerna# These are used by the link target if an NLM is being generated
a2e37e48efb113e8e4f9d9ca9c8286aaac6c936cpquerna# This is used by the link 'name' directive to name the nlm. If left blank
a2e37e48efb113e8e4f9d9ca9c8286aaac6c936cpquerna# TARGET_nlm (see below) will be used.
007ba11dc68651df7f872f35947ae82a595d9e02pquernaNLM_NAME = substitute
25059ddf3044ffa8dd3432ab8e2f941023054407trawick# This is used by the link '-desc ' directive.
25059ddf3044ffa8dd3432ab8e2f941023054407trawick# If left blank, NLM_NAME will be used.
25059ddf3044ffa8dd3432ab8e2f941023054407trawickNLM_DESCRIPTION = Apache $(VERSION_STR) Substitute Module
44ca834b970b454b844efb96f219bdf49fee71e5trawick# This is used by the '-threadname' directive. If left blank,
eb8430fd3bc941c0b3ba8bba3884b7fc464bf458pquerna# NLM_NAME Thread will be used.
eb8430fd3bc941c0b3ba8bba3884b7fc464bf458pquernaNLM_THREAD_NAME = Substitute Module
1f9e65264b1ff249fa071e6aae32c0bb52f9c634trawick# If this is specified, it will override VERSION value in
fde88bb682426885c679198ee130d2d5a29e8c0fbnicholesNLM_VERSION =
fde88bb682426885c679198ee130d2d5a29e8c0fbnicholes# If this is specified, it will override the default of 64K
fde88bb682426885c679198ee130d2d5a29e8c0fbnicholesNLM_STACK_SIZE = 8192
d66ac514cc15e99228d72c56c6c3daf25da8d360niq# If this is specified it will be used by the link '-entry' directive
d66ac514cc15e99228d72c56c6c3daf25da8d360niqNLM_ENTRY_SYM =
e23b77006a8b079c0ad52e42ba2029e759455b8fjorton# If this is specified it will be used by the link '-exit' directive
e23b77006a8b079c0ad52e42ba2029e759455b8fjortonNLM_EXIT_SYM =
b597281295360dba8ac57b7606c5f5c1ef2b69b0trawick# If this is specified it will be used by the link '-check' directive
82d2a5debc5a6ed2118ac5916d9ba36ad0b5d78btrawickNLM_CHECK_SYM =
8c46f9f81ae6357dc97560d6d85154f19cf251aejim# If these are specified it will be used by the link '-flags' directive
b6e2b36d6972a0e243368eb567e91d511fb40b1bbnicholes# If this is specified it will be linked in with the XDCData option in the def
ad4a5834dfdf9488af4ac3238ea4d8b18dce49acpquerna# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
e5882a36d7756850cc829f5f2286120b877458b1pquerna# by setting APACHE_UNIPROC in the environment
8c46f9f81ae6357dc97560d6d85154f19cf251aejim# If there is an NLM target, put it here
20f1b1a67eef5ab0f3295608c89964a7dca4fdd1pquernaTARGET_nlm = \
599c5abcc7fec60611956f56b732eca033c287d2pquerna# If there is an LIB target, put it here
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesTARGET_lib = \
eb9b491d7b262dad572ec2f1f75eea592283f81apquerna# These are the OBJ files needed to create the NLM target above.
1ef90d1763e489969ec7a01c77bcb158ece5ae83jorton# Paths must all use the '/' character
6d00a5e2c08ddbff9614ecc17a1c085462811f89sliveFILES_nlm_objs = \
6d00a5e2c08ddbff9614ecc17a1c085462811f89slive# These are the LIB files needed to create the NLM target above.
6d00a5e2c08ddbff9614ecc17a1c085462811f89slive# These will be added as a library command in the link.opt file.
6d00a5e2c08ddbff9614ecc17a1c085462811f89sliveFILES_nlm_libs = \
6d00a5e2c08ddbff9614ecc17a1c085462811f89slive# These are the modules that the above NLM target depends on to load.
6d00a5e2c08ddbff9614ecc17a1c085462811f89slive# These will be added as a module command in the link.opt file.
4f6e78091b3f45a5782389ae25b62516a7a0c842bnicholesFILES_nlm_modules = \
7d15331eeb5429d7148d13d6fd914a641bf1c000pquerna# If the nlm has a msg file, put it's path here
e9be3aacfd6c0a1208e6c91a133be92ed0f94fe1bnicholesFILE_nlm_msg =
e9be3aacfd6c0a1208e6c91a133be92ed0f94fe1bnicholes# If the nlm has a hlp file put it's path here
1d14622beee568462689b2bbc6a9e0e9b6a40583strikerFILE_nlm_hlp =
6e5f5644328bf50c3aa295d0ab20903369010829gregames# If this is specified, it will override $(NWOS)\copyright.txt.
e978097e0bf2ae161b6f9dde40eaf089bf046c89akeFILE_nlm_copyright =
275419d6395e6f072962fb701b89accaff1f3690jerenkrantz# Any additional imports go here
e777da9fa7ff3138fead7860b53ef00e67a40e26jerenkrantzFILES_nlm_Ximports = \
275419d6395e6f072962fb701b89accaff1f3690jerenkrantz# Any symbols exported to here
8e7fb6968047a527d1ccde25ad2aed20da5150ddjerenkrantzFILES_nlm_exports = \
8e7fb6968047a527d1ccde25ad2aed20da5150ddjerenkrantz substitute_module \
5a9fa4d75086e942f6e850e1a2e96c4c27a845d0jerenkrantz# These are the OBJ files needed to create the LIB target above.
5a9fa4d75086e942f6e850e1a2e96c4c27a845d0jerenkrantz# Paths must all use the '/' character
36c8049de63c446926139936c3d195330a0539cetrawickFILES_lib_objs = \
36c8049de63c446926139936c3d195330a0539cetrawick# implement targets and dependancies (leave this section alone)
9174efb969475801d0dc88eee35aae40c748d450ndlibs :: $(OBJDIR) $(TARGET_lib)
8ff094bdec6a2e1c355c1e6e95e9952d4fae7766jerenkrantznlms :: libs $(TARGET_nlm)
628cf3411e8a6d09e27b3666312e43832dda93f3jorton# Updated this target to create necessary directories and copy files to the
628cf3411e8a6d09e27b3666312e43832dda93f3jorton# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
f0d89a5a23222e031db8113478645f28688fa748jortoninstall :: nlms FORCE
f0d89a5a23222e031db8113478645f28688fa748jorton# Any specialized rules here
f0d89a5a23222e031db8113478645f28688fa748jorton# Include the 'tail' makefile that has targets that depend on variables defined
f0d89a5a23222e031db8113478645f28688fa748jorton# in this makefile
65d743d7fbb53143636ee2dec8fe8d8a1a581a6bjerenkrantzinclude $(APBUILD)/NWGNUtail.inc