NWGNUmakefile revision 0662ed52e814f8f08ef0e09956413a792584eddf
bf52162f2d05c1fb1a107c7ef108de73f739b3edpquerna# Declare the sub-directories to be built here
86bb763be5d87c295c8844d30078da2ddb964f73rpluem# Get the 'head' of the build environment. This includes default targets and
86bb763be5d87c295c8844d30078da2ddb964f73rpluem# paths to tools
53593dbd8fece82cb66a23f0b7024d8d713d66f1sfinclude $(AP_WORK)/build/NWGNUhead.inc
79e3f2f950745953fff4a6a8dfe1f7cce31ce287sf# build this level's files
ab2b977442827214b1d884decf3e3f1579fd45e1rpluem# Make sure all needed macro's are defined
3709b26f3370ae89c5324a3c03fab56a93b09ecdsf# These directories will be at the beginning of the include list, followed by
03577bc320125eaa2b27ee7af78b894ee6dfe121takashiXINCDIRS += \
f5119c5d7cfe8c6d53cb29d43f8746684068ed82minfrin# These flags will come after CFLAGS
f5119c5d7cfe8c6d53cb29d43f8746684068ed82minfrinXCFLAGS += \
20216b769716c4346cce373f2028d7dbebf03886poirier# These defines will come after DEFINES
20216b769716c4346cce373f2028d7dbebf03886poirierXDEFINES += \
ecc6e723b804fb4b8f858910eff3f88242ec56fasf# These flags will be added to the link.opt file
ecc6e723b804fb4b8f858910eff3f88242ec56fasfXLFLAGS += \
727d68c6009030f56a350b4603384ce4fb844341minfrin# These values will be appended to the correct variables based on the value of
ed6dfb7d7057dc4f42348f12d7bff9fe98fc73cfminfrinifeq "$(RELEASE)" "debug"
ed6dfb7d7057dc4f42348f12d7bff9fe98fc73cfminfrinXINCDIRS += \
4dee28b6fc8fff5efde4e7821aeb6defed3fb84dsfXCFLAGS += \
23247a8f748077bc788a5fbaf91d5fad34d0b7d1sfXDEFINES += \
58015652ffe00f004c6404a0631474f23dadc7dasfXLFLAGS += \
2af38cc44e48753913565b38a7a9f325f898a293minfrinifeq "$(RELEASE)" "noopt"
745417156908df54538ca284b382ce8d27b30066minfrinXINCDIRS += \
fc2f0972572614b50523bc5ddb3f866ca4acd2f0sfXCFLAGS += \
251430bcaff1fa6a77953bfe56475eb6cc7abc78sfXDEFINES += \
7b467aa53854c95318a1c709709c1619a4f47118minfrinXLFLAGS += \
7ba7402d405dc9e3c1083e34049ed933472ca910poirierifeq "$(RELEASE)" "release"
7ba7402d405dc9e3c1083e34049ed933472ca910poirierXINCDIRS += \
4286d2e267e788d856092bf2ccf461e7ca99570frpluemXCFLAGS += \
4286d2e267e788d856092bf2ccf461e7ca99570frpluemXDEFINES += \
5357892a1e367372dc2d4a315156e3e44dc5d56dpoirierXLFLAGS += \
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.
1af2b28846e2647963db788b081676884fb7df8crpluem# This is used by the link '-desc ' directive.
1af2b28846e2647963db788b081676884fb7df8crpluem# If left blank, NLM_NAME will be used.
845258fbf5102b8b09fe9b7f4cb4ea4c089344c3poirierNLM_DESCRIPTION =
5d36cddfe00d5c6ad18845fcc04e6f7662050fafminfrin# This is used by the '-threadname' directive. If left blank,
5d36cddfe00d5c6ad18845fcc04e6f7662050fafminfrin# NLM_NAME Thread will be used.
20aa41f86a5b451529d26d9b901eea69989e5c0aminfrinNLM_THREAD_NAME =
8c92aeeb75b1b393f61a3e01c495484737a0ff8cminfrin# If this is specified, it will override VERSION value in
1018201f5223624476334c6e23aead02db7c4040minfrinNLM_VERSION =
e5db2522dbe503cbf5399094b6239c88c246a8c5poirier# If this is specified, it will override the default of 64K
e5db2522dbe503cbf5399094b6239c88c246a8c5poirierNLM_STACK_SIZE =
ad7e5e9fb8f63a5155bb392114162997505ff772minfrin# If this is specified it will be used by the link '-entry' directive
ad7e5e9fb8f63a5155bb392114162997505ff772minfrinNLM_ENTRY_SYM =
59cb8d601b8c44476e59310f68b9c373d8fc62a6minfrin# If this is specified it will be used by the link '-exit' directive
ec8b1faa56744b338f6d6421144b56c2bb3faae6poirierNLM_EXIT_SYM =
10abdcbd7b30d957d15c61ea8100ba97a627ac95minfrin# If this is specified it will be used by the link '-check' directive
87e0bf269cc3386ee8e6ab561ff00770151f4f53niqNLM_CHECK_SYM =
3c67b7956d44501360506a9f13a5011be73b30ecminfrin# If these are specified it will be used by the link '-flags' directive
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
53c999a82fcca729dabc8a512b3fb996d61fd814niq# If there is an NLM target, put it here
25d0f8adcab13255494a3572edff1a25f6fbeea3rpluemTARGET_nlm = \
0938450cadc9a083d112a86bc7dd7ae34f791364trawick# If there is an LIB target, put it here
0938450cadc9a083d112a86bc7dd7ae34f791364trawickTARGET_lib = \
8bed7ee6d97933b958e97e222f37154d83e384e5jorton# These are the OBJ files needed to create the NLM target above.
8bed7ee6d97933b958e97e222f37154d83e384e5jorton# Paths must all use the '/' character
c7d46b58052fe666c74a47bd26b6cb1e351492adrpluemFILES_nlm_objs = \
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.
2f34374f6e04b9094a1d13a5ed823f331ba841a3rpluemFILES_nlm_libs = \
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.
3e6a46d2fecf446daf0e280a49fa5565f5f635eajortonFILES_nlm_modules = \
0df8f79d2324b131c36955d7e474a735a762f9eeniq# If the nlm has a msg file, put it's path here
30e3e760b737f13ce800fa02c5930ade7659ba66niqFILE_nlm_msg =
80370e62044bea458bcd0545c59cb864ed117b04niq# If the nlm has a hlp file put it's path here
e991c6fc032c59eb6cb751d9d382e933a53a2866niqFILE_nlm_hlp =
9a00e2d46c44c111d6952e553a2f1a61b7594eb3rpluem# If this is specified, it will override $(NWOS)\copyright.txt.
33d9be77cc6f5fc8734e9c1f526b82d359955152rpluemFILE_nlm_copyright =
da128c59ec571c4dff70f41ecba9c8a9974c6cd6niq# Any additional imports go here
da128c59ec571c4dff70f41ecba9c8a9974c6cd6niqFILES_nlm_Ximports = \
186e9d990f453d16826ab87a87df7b87e6e05921rpluem# Any symbols exported to here
186e9d990f453d16826ab87a87df7b87e6e05921rpluemFILES_nlm_exports = \
6861702c2d883e5c0744d5f7528d2060671ad24dtakashi# These are the OBJ files needed to create the LIB target above.
6861702c2d883e5c0744d5f7528d2060671ad24dtakashi# Paths must all use the '/' character
f1f779c42f76118102fdecbe8777b47a1fc693a7rjungFILES_lib_objs = \
292cb7b720095e7bb434d79ae53b02d332aeb99acovener# implement targets and dependancies (leave this section alone)
137e484e5f984ceff1102e1212dda8ac0413231aniqlibs :: $(OBJDIR) $(TARGET_lib)
137e484e5f984ceff1102e1212dda8ac0413231aniqnlms :: libs $(TARGET_nlm)
137e484e5f984ceff1102e1212dda8ac0413231aniq# Updated this target to create necessary directories and copy files to the
4e08c8c1a91e2887b41d8cacd3aa532355d0237drpluem# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
d0cd62f11bcd8fa9bf758c5125f55cea5d9038dfrplueminstall :: nlms FORCE
d0cd62f11bcd8fa9bf758c5125f55cea5d9038dfrpluem $(call COPY,$(OBJDIR)/*.nlm, $(INSTALL)/$(BASEDIR)/modules/)
51d55be8bbc6652c13bc80d920f4331f7152dceerjung# Any specialized rules here
27c7a7cad9e83eeebad0a4d5a321144394adc3f9trawick# Include the 'tail' makefile that has targets that depend on variables defined
27c7a7cad9e83eeebad0a4d5a321144394adc3f9trawick# in this makefile
8f2700898323915da289644dc1f3ee11a5e5b4earplueminclude $(APBUILD)/NWGNUtail.inc