NWGNUmakefile revision 0662ed52e814f8f08ef0e09956413a792584eddf
4d237bbe075b1d2c19428cd954d721d65b31f67cwrowe#
bf52162f2d05c1fb1a107c7ef108de73f739b3edpquerna# Declare the sub-directories to be built here
bf52162f2d05c1fb1a107c7ef108de73f739b3edpquerna#
bf52162f2d05c1fb1a107c7ef108de73f739b3edpquerna
86bb763be5d87c295c8844d30078da2ddb964f73rpluemSUBDIRS = \
86bb763be5d87c295c8844d30078da2ddb964f73rpluem $(EOLIST)
ba217dc41cebc0976010ee177f8fedac782d1f6fminfrin
ba217dc41cebc0976010ee177f8fedac782d1f6fminfrin#
86bb763be5d87c295c8844d30078da2ddb964f73rpluem# Get the 'head' of the build environment. This includes default targets and
86bb763be5d87c295c8844d30078da2ddb964f73rpluem# paths to tools
ba217dc41cebc0976010ee177f8fedac782d1f6fminfrin#
ba217dc41cebc0976010ee177f8fedac782d1f6fminfrin
53593dbd8fece82cb66a23f0b7024d8d713d66f1sfinclude $(AP_WORK)/build/NWGNUhead.inc
53593dbd8fece82cb66a23f0b7024d8d713d66f1sf
79e3f2f950745953fff4a6a8dfe1f7cce31ce287sf#
79e3f2f950745953fff4a6a8dfe1f7cce31ce287sf# build this level's files
ab2b977442827214b1d884decf3e3f1579fd45e1rpluem
ab2b977442827214b1d884decf3e3f1579fd45e1rpluem#
ab2b977442827214b1d884decf3e3f1579fd45e1rpluem# Make sure all needed macro's are defined
195edf54eccd8c5a436c7dd17f5f604e7074d5d1sf#
195edf54eccd8c5a436c7dd17f5f604e7074d5d1sf
195edf54eccd8c5a436c7dd17f5f604e7074d5d1sf#
3709b26f3370ae89c5324a3c03fab56a93b09ecdsf# These directories will be at the beginning of the include list, followed by
3709b26f3370ae89c5324a3c03fab56a93b09ecdsf# INCDIRS
3709b26f3370ae89c5324a3c03fab56a93b09ecdsf#
03577bc320125eaa2b27ee7af78b894ee6dfe121takashiXINCDIRS += \
03577bc320125eaa2b27ee7af78b894ee6dfe121takashi $(EOLIST)
03577bc320125eaa2b27ee7af78b894ee6dfe121takashi
f5119c5d7cfe8c6d53cb29d43f8746684068ed82minfrin#
f5119c5d7cfe8c6d53cb29d43f8746684068ed82minfrin# These flags will come after CFLAGS
f5119c5d7cfe8c6d53cb29d43f8746684068ed82minfrin#
f5119c5d7cfe8c6d53cb29d43f8746684068ed82minfrinXCFLAGS += \
f74d35a61a835e15412b99b8aebe4958fe4e94a5takashi $(EOLIST)
94713632faf403489b3f8b4e0ed65e1011ac4991takashi
f74d35a61a835e15412b99b8aebe4958fe4e94a5takashi#
20216b769716c4346cce373f2028d7dbebf03886poirier# These defines will come after DEFINES
20216b769716c4346cce373f2028d7dbebf03886poirier#
20216b769716c4346cce373f2028d7dbebf03886poirierXDEFINES += \
7317a32e0c621c9a28f6f10e83e6c5dc63e3f3bdsf $(EOLIST)
7317a32e0c621c9a28f6f10e83e6c5dc63e3f3bdsf
7317a32e0c621c9a28f6f10e83e6c5dc63e3f3bdsf#
ecc6e723b804fb4b8f858910eff3f88242ec56fasf# These flags will be added to the link.opt file
ecc6e723b804fb4b8f858910eff3f88242ec56fasf#
ecc6e723b804fb4b8f858910eff3f88242ec56fasfXLFLAGS += \
ecc6e723b804fb4b8f858910eff3f88242ec56fasf $(EOLIST)
ecc6e723b804fb4b8f858910eff3f88242ec56fasf
ecc6e723b804fb4b8f858910eff3f88242ec56fasf#
727d68c6009030f56a350b4603384ce4fb844341minfrin# These values will be appended to the correct variables based on the value of
727d68c6009030f56a350b4603384ce4fb844341minfrin# RELEASE
727d68c6009030f56a350b4603384ce4fb844341minfrin#
ed6dfb7d7057dc4f42348f12d7bff9fe98fc73cfminfrinifeq "$(RELEASE)" "debug"
ed6dfb7d7057dc4f42348f12d7bff9fe98fc73cfminfrinXINCDIRS += \
ed6dfb7d7057dc4f42348f12d7bff9fe98fc73cfminfrin $(EOLIST)
4dee28b6fc8fff5efde4e7821aeb6defed3fb84dsf
4dee28b6fc8fff5efde4e7821aeb6defed3fb84dsfXCFLAGS += \
4dee28b6fc8fff5efde4e7821aeb6defed3fb84dsf $(EOLIST)
23247a8f748077bc788a5fbaf91d5fad34d0b7d1sf
23247a8f748077bc788a5fbaf91d5fad34d0b7d1sfXDEFINES += \
23247a8f748077bc788a5fbaf91d5fad34d0b7d1sf $(EOLIST)
23247a8f748077bc788a5fbaf91d5fad34d0b7d1sf
58015652ffe00f004c6404a0631474f23dadc7dasfXLFLAGS += \
58015652ffe00f004c6404a0631474f23dadc7dasf $(EOLIST)
58015652ffe00f004c6404a0631474f23dadc7dasfendif
2af38cc44e48753913565b38a7a9f325f898a293minfrin
2af38cc44e48753913565b38a7a9f325f898a293minfrinifeq "$(RELEASE)" "noopt"
745417156908df54538ca284b382ce8d27b30066minfrinXINCDIRS += \
2af38cc44e48753913565b38a7a9f325f898a293minfrin $(EOLIST)
fc2f0972572614b50523bc5ddb3f866ca4acd2f0sf
fc2f0972572614b50523bc5ddb3f866ca4acd2f0sfXCFLAGS += \
fc2f0972572614b50523bc5ddb3f866ca4acd2f0sf $(EOLIST)
251430bcaff1fa6a77953bfe56475eb6cc7abc78sf
251430bcaff1fa6a77953bfe56475eb6cc7abc78sfXDEFINES += \
251430bcaff1fa6a77953bfe56475eb6cc7abc78sf $(EOLIST)
7b467aa53854c95318a1c709709c1619a4f47118minfrin
7b467aa53854c95318a1c709709c1619a4f47118minfrinXLFLAGS += \
7b467aa53854c95318a1c709709c1619a4f47118minfrin $(EOLIST)
7b467aa53854c95318a1c709709c1619a4f47118minfrinendif
7ba7402d405dc9e3c1083e34049ed933472ca910poirier
7ba7402d405dc9e3c1083e34049ed933472ca910poirierifeq "$(RELEASE)" "release"
7ba7402d405dc9e3c1083e34049ed933472ca910poirierXINCDIRS += \
7ba7402d405dc9e3c1083e34049ed933472ca910poirier $(EOLIST)
7ba7402d405dc9e3c1083e34049ed933472ca910poirier
4286d2e267e788d856092bf2ccf461e7ca99570frpluemXCFLAGS += \
4286d2e267e788d856092bf2ccf461e7ca99570frpluem $(EOLIST)
4286d2e267e788d856092bf2ccf461e7ca99570frpluem
4286d2e267e788d856092bf2ccf461e7ca99570frpluemXDEFINES += \
43563ad04e4bae7b42f7a34a87b7c60dc69c0c3fpoirier $(EOLIST)
5357892a1e367372dc2d4a315156e3e44dc5d56dpoirier
5357892a1e367372dc2d4a315156e3e44dc5d56dpoirierXLFLAGS += \
b42af5f6edf4fe4b820288c37920a7a6fd65f1f1poirier $(EOLIST)
b42af5f6edf4fe4b820288c37920a7a6fd65f1f1poirierendif
b42af5f6edf4fe4b820288c37920a7a6fd65f1f1poirier
49cea03e96dc4707bce15d6318eb013cb8668d96minfrin#
49cea03e96dc4707bce15d6318eb013cb8668d96minfrin# These are used by the link target if an NLM is being generated
49cea03e96dc4707bce15d6318eb013cb8668d96minfrin# This is used by the link 'name' directive to name the nlm. If left blank
49cea03e96dc4707bce15d6318eb013cb8668d96minfrin# TARGET_nlm (see below) will be used.
847b3922f7dcde6830f4aad49d29c84b4569c260minfrin#
63eaa8ed62d63de0a44346b8af48e08e562db01eminfrinNLM_NAME =
63eaa8ed62d63de0a44346b8af48e08e562db01eminfrin
847b3922f7dcde6830f4aad49d29c84b4569c260minfrin#
1af2b28846e2647963db788b081676884fb7df8crpluem# This is used by the link '-desc ' directive.
1af2b28846e2647963db788b081676884fb7df8crpluem# If left blank, NLM_NAME will be used.
1af2b28846e2647963db788b081676884fb7df8crpluem#
845258fbf5102b8b09fe9b7f4cb4ea4c089344c3poirierNLM_DESCRIPTION =
845258fbf5102b8b09fe9b7f4cb4ea4c089344c3poirier
845258fbf5102b8b09fe9b7f4cb4ea4c089344c3poirier#
5d36cddfe00d5c6ad18845fcc04e6f7662050fafminfrin# This is used by the '-threadname' directive. If left blank,
5d36cddfe00d5c6ad18845fcc04e6f7662050fafminfrin# NLM_NAME Thread will be used.
5d36cddfe00d5c6ad18845fcc04e6f7662050fafminfrin#
20aa41f86a5b451529d26d9b901eea69989e5c0aminfrinNLM_THREAD_NAME =
20aa41f86a5b451529d26d9b901eea69989e5c0aminfrin
20aa41f86a5b451529d26d9b901eea69989e5c0aminfrin#
8c92aeeb75b1b393f61a3e01c495484737a0ff8cminfrin# If this is specified, it will override VERSION value in
8c92aeeb75b1b393f61a3e01c495484737a0ff8cminfrin# $(AP_WORK)/build/NWGNUenvironment.inc
8c92aeeb75b1b393f61a3e01c495484737a0ff8cminfrin#
1018201f5223624476334c6e23aead02db7c4040minfrinNLM_VERSION =
1018201f5223624476334c6e23aead02db7c4040minfrin
e5db2522dbe503cbf5399094b6239c88c246a8c5poirier#
e5db2522dbe503cbf5399094b6239c88c246a8c5poirier# If this is specified, it will override the default of 64K
e5db2522dbe503cbf5399094b6239c88c246a8c5poirier#
e5db2522dbe503cbf5399094b6239c88c246a8c5poirierNLM_STACK_SIZE =
ad7e5e9fb8f63a5155bb392114162997505ff772minfrin
ad7e5e9fb8f63a5155bb392114162997505ff772minfrin
ad7e5e9fb8f63a5155bb392114162997505ff772minfrin#
ad7e5e9fb8f63a5155bb392114162997505ff772minfrin# If this is specified it will be used by the link '-entry' directive
ad7e5e9fb8f63a5155bb392114162997505ff772minfrin#
ad7e5e9fb8f63a5155bb392114162997505ff772minfrinNLM_ENTRY_SYM =
59cb8d601b8c44476e59310f68b9c373d8fc62a6minfrin
59cb8d601b8c44476e59310f68b9c373d8fc62a6minfrin#
59cb8d601b8c44476e59310f68b9c373d8fc62a6minfrin# If this is specified it will be used by the link '-exit' directive
59cb8d601b8c44476e59310f68b9c373d8fc62a6minfrin#
ec8b1faa56744b338f6d6421144b56c2bb3faae6poirierNLM_EXIT_SYM =
ec8b1faa56744b338f6d6421144b56c2bb3faae6poirier
10abdcbd7b30d957d15c61ea8100ba97a627ac95minfrin#
10abdcbd7b30d957d15c61ea8100ba97a627ac95minfrin# If this is specified it will be used by the link '-check' directive
87e0bf269cc3386ee8e6ab561ff00770151f4f53niq#
87e0bf269cc3386ee8e6ab561ff00770151f4f53niqNLM_CHECK_SYM =
87e0bf269cc3386ee8e6ab561ff00770151f4f53niq
3c67b7956d44501360506a9f13a5011be73b30ecminfrin#
3c67b7956d44501360506a9f13a5011be73b30ecminfrin# If these are specified it will be used by the link '-flags' directive
3c67b7956d44501360506a9f13a5011be73b30ecminfrin#
3c67b7956d44501360506a9f13a5011be73b30ecminfrinNLM_FLAGS =
97d20d37d21b8d427a920e211858172f0a82427epoirier
97d20d37d21b8d427a920e211858172f0a82427epoirier#
97d20d37d21b8d427a920e211858172f0a82427epoirier# If this is specified it will be linked in with the XDCData option in the def
8e04e8ec7d682bff5e6dccdd70c082971a88cb8bniq# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
8e04e8ec7d682bff5e6dccdd70c082971a88cb8bniq# by setting APACHE_UNIPROC in the environment
8e04e8ec7d682bff5e6dccdd70c082971a88cb8bniq#
53c999a82fcca729dabc8a512b3fb996d61fd814niqXDCDATA =
53c999a82fcca729dabc8a512b3fb996d61fd814niq
53c999a82fcca729dabc8a512b3fb996d61fd814niq#
53c999a82fcca729dabc8a512b3fb996d61fd814niq# If there is an NLM target, put it here
25d0f8adcab13255494a3572edff1a25f6fbeea3rpluem#
25d0f8adcab13255494a3572edff1a25f6fbeea3rpluemTARGET_nlm = \
25d0f8adcab13255494a3572edff1a25f6fbeea3rpluem $(OBJDIR)/slotmem_plain.nlm \
25d0f8adcab13255494a3572edff1a25f6fbeea3rpluem $(OBJDIR)/slotmem_shm.nlm \
dd9ae259e1578c4388739c880ede97c55cec543frpluem $(EOLIST)
dd9ae259e1578c4388739c880ede97c55cec543frpluem
dd9ae259e1578c4388739c880ede97c55cec543frpluem#
0938450cadc9a083d112a86bc7dd7ae34f791364trawick# If there is an LIB target, put it here
0938450cadc9a083d112a86bc7dd7ae34f791364trawick#
0938450cadc9a083d112a86bc7dd7ae34f791364trawickTARGET_lib = \
8bed7ee6d97933b958e97e222f37154d83e384e5jorton $(EOLIST)
8bed7ee6d97933b958e97e222f37154d83e384e5jorton
8bed7ee6d97933b958e97e222f37154d83e384e5jorton#
8bed7ee6d97933b958e97e222f37154d83e384e5jorton# These are the OBJ files needed to create the NLM target above.
8bed7ee6d97933b958e97e222f37154d83e384e5jorton# Paths must all use the '/' character
d33ddda47790d3295f4218f87e3a296cf51a9becmjc#
c7d46b58052fe666c74a47bd26b6cb1e351492adrpluemFILES_nlm_objs = \
4e08c8c1a91e2887b41d8cacd3aa532355d0237drpluem $(EOLIST)
7a25b029b69f169bd22718165dff3b271114f92eniq
43d051c8401a1f3b4f7853cd897d3565ab814ea7poirier#
43d051c8401a1f3b4f7853cd897d3565ab814ea7poirier# These are the LIB files needed to create the NLM target above.
43d051c8401a1f3b4f7853cd897d3565ab814ea7poirier# These will be added as a library command in the link.opt file.
2f34374f6e04b9094a1d13a5ed823f331ba841a3rpluem#
2f34374f6e04b9094a1d13a5ed823f331ba841a3rpluemFILES_nlm_libs = \
2f34374f6e04b9094a1d13a5ed823f331ba841a3rpluem $(EOLIST)
7a25b029b69f169bd22718165dff3b271114f92eniq
7a25b029b69f169bd22718165dff3b271114f92eniq#
7a25b029b69f169bd22718165dff3b271114f92eniq# These are the modules that the above NLM target depends on to load.
2f34374f6e04b9094a1d13a5ed823f331ba841a3rpluem# These will be added as a module command in the link.opt file.
3e6a46d2fecf446daf0e280a49fa5565f5f635eajorton#
3e6a46d2fecf446daf0e280a49fa5565f5f635eajortonFILES_nlm_modules = \
3e6a46d2fecf446daf0e280a49fa5565f5f635eajorton $(EOLIST)
137e484e5f984ceff1102e1212dda8ac0413231aniq
0df8f79d2324b131c36955d7e474a735a762f9eeniq#
0df8f79d2324b131c36955d7e474a735a762f9eeniq# If the nlm has a msg file, put it's path here
0df8f79d2324b131c36955d7e474a735a762f9eeniq#
30e3e760b737f13ce800fa02c5930ade7659ba66niqFILE_nlm_msg =
30e3e760b737f13ce800fa02c5930ade7659ba66niq
30e3e760b737f13ce800fa02c5930ade7659ba66niq#
80370e62044bea458bcd0545c59cb864ed117b04niq# If the nlm has a hlp file put it's path here
e991c6fc032c59eb6cb751d9d382e933a53a2866niq#
e991c6fc032c59eb6cb751d9d382e933a53a2866niqFILE_nlm_hlp =
e991c6fc032c59eb6cb751d9d382e933a53a2866niq
9a00e2d46c44c111d6952e553a2f1a61b7594eb3rpluem#
9a00e2d46c44c111d6952e553a2f1a61b7594eb3rpluem# If this is specified, it will override $(NWOS)\copyright.txt.
9a00e2d46c44c111d6952e553a2f1a61b7594eb3rpluem#
33d9be77cc6f5fc8734e9c1f526b82d359955152rpluemFILE_nlm_copyright =
9a00e2d46c44c111d6952e553a2f1a61b7594eb3rpluem
33d9be77cc6f5fc8734e9c1f526b82d359955152rpluem#
da128c59ec571c4dff70f41ecba9c8a9974c6cd6niq# Any additional imports go here
172e83c0f024fe6396dd1f3ca3492fd83c304db5jim#
da128c59ec571c4dff70f41ecba9c8a9974c6cd6niqFILES_nlm_Ximports = \
45932a847f237b4d8f0667b138bd3f8a15fb53ffniq $(EOLIST)
45932a847f237b4d8f0667b138bd3f8a15fb53ffniq
45932a847f237b4d8f0667b138bd3f8a15fb53ffniq#
186e9d990f453d16826ab87a87df7b87e6e05921rpluem# Any symbols exported to here
186e9d990f453d16826ab87a87df7b87e6e05921rpluem#
186e9d990f453d16826ab87a87df7b87e6e05921rpluemFILES_nlm_exports = \
186e9d990f453d16826ab87a87df7b87e6e05921rpluem $(EOLIST)
6861702c2d883e5c0744d5f7528d2060671ad24dtakashi
6861702c2d883e5c0744d5f7528d2060671ad24dtakashi#
6861702c2d883e5c0744d5f7528d2060671ad24dtakashi# These are the OBJ files needed to create the LIB target above.
6861702c2d883e5c0744d5f7528d2060671ad24dtakashi# Paths must all use the '/' character
6861702c2d883e5c0744d5f7528d2060671ad24dtakashi#
f1f779c42f76118102fdecbe8777b47a1fc693a7rjungFILES_lib_objs = \
f1f779c42f76118102fdecbe8777b47a1fc693a7rjung $(EOLIST)
f1f779c42f76118102fdecbe8777b47a1fc693a7rjung
292cb7b720095e7bb434d79ae53b02d332aeb99acovener#
292cb7b720095e7bb434d79ae53b02d332aeb99acovener# implement targets and dependancies (leave this section alone)
292cb7b720095e7bb434d79ae53b02d332aeb99acovener#
292cb7b720095e7bb434d79ae53b02d332aeb99acovener
137e484e5f984ceff1102e1212dda8ac0413231aniqlibs :: $(OBJDIR) $(TARGET_lib)
137e484e5f984ceff1102e1212dda8ac0413231aniq
137e484e5f984ceff1102e1212dda8ac0413231aniqnlms :: libs $(TARGET_nlm)
137e484e5f984ceff1102e1212dda8ac0413231aniq
137e484e5f984ceff1102e1212dda8ac0413231aniq#
137e484e5f984ceff1102e1212dda8ac0413231aniq# Updated this target to create necessary directories and copy files to the
4e08c8c1a91e2887b41d8cacd3aa532355d0237drpluem# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
d0cd62f11bcd8fa9bf758c5125f55cea5d9038dfrpluem#
d0cd62f11bcd8fa9bf758c5125f55cea5d9038dfrplueminstall :: nlms FORCE
d0cd62f11bcd8fa9bf758c5125f55cea5d9038dfrpluem $(call COPY,$(OBJDIR)/*.nlm, $(INSTALL)/$(BASEDIR)/modules/)
51d55be8bbc6652c13bc80d920f4331f7152dceerjung
51d55be8bbc6652c13bc80d920f4331f7152dceerjung#
51d55be8bbc6652c13bc80d920f4331f7152dceerjung# Any specialized rules here
27c7a7cad9e83eeebad0a4d5a321144394adc3f9trawick#
27c7a7cad9e83eeebad0a4d5a321144394adc3f9trawick
27c7a7cad9e83eeebad0a4d5a321144394adc3f9trawick#
27c7a7cad9e83eeebad0a4d5a321144394adc3f9trawick# Include the 'tail' makefile that has targets that depend on variables defined
27c7a7cad9e83eeebad0a4d5a321144394adc3f9trawick# in this makefile
27c7a7cad9e83eeebad0a4d5a321144394adc3f9trawick#
8f2700898323915da289644dc1f3ee11a5e5b4earpluem
8f2700898323915da289644dc1f3ee11a5e5b4earplueminclude $(APBUILD)/NWGNUtail.inc
8f2700898323915da289644dc1f3ee11a5e5b4earpluem
8f2700898323915da289644dc1f3ee11a5e5b4earpluem
e7983ce746b0df56a1b74b42da6d82f5ecb99349covener