NWGNUcernmeta revision 0662ed52e814f8f08ef0e09956413a792584eddf
36983956d7c3d9e294903eeda29548f67ac17daeBob Halley# Make sure all needed macro's are defined
16803617e47c83272013e45ba8eb83a3b11983edAndreas Gustafsson# Get the 'head' of the build environment if necessary. This includes default
16803617e47c83272013e45ba8eb83a3b11983edAndreas Gustafsson# targets and paths to tools
16803617e47c83272013e45ba8eb83a3b11983edAndreas Gustafssonifndef EnvironmentDefined
16803617e47c83272013e45ba8eb83a3b11983edAndreas Gustafsson# These directories will be at the beginning of the include list, followed by
16803617e47c83272013e45ba8eb83a3b11983edAndreas Gustafsson $(APR)/include \
16803617e47c83272013e45ba8eb83a3b11983edAndreas Gustafsson $(APRUTIL)/include \
16803617e47c83272013e45ba8eb83a3b11983edAndreas Gustafsson $(AP_WORK)/include \
16803617e47c83272013e45ba8eb83a3b11983edAndreas Gustafsson# These flags will come after CFLAGS
b90dd6c0a9df584619d3c47be7c9417f55d5ccf6Bob Halley# These defines will come after DEFINES
b90dd6c0a9df584619d3c47be7c9417f55d5ccf6Bob HalleyXDEFINES += \
16803617e47c83272013e45ba8eb83a3b11983edAndreas Gustafsson# These flags will be added to the link.opt file
70680fa51b0147c726b939b72b2420249429756aBob Halley# These values will be appended to the correct variables based on the value of
16803617e47c83272013e45ba8eb83a3b11983edAndreas Gustafssonifeq "$(RELEASE)" "debug"
4d5f44e7933f4cb691e8f4cf3b4b5f61c27e2b1cAndreas Gustafssonifeq "$(RELEASE)" "noopt"
4d5f44e7933f4cb691e8f4cf3b4b5f61c27e2b1cAndreas Gustafssonifeq "$(RELEASE)" "release"
3b8932de20e12b07f9d874d5538d30e1fac9a9f4Andreas Gustafsson# These are used by the link target if an NLM is being generated
3b8932de20e12b07f9d874d5538d30e1fac9a9f4Andreas Gustafsson# This is used by the link 'name' directive to name the nlm. If left blank
3b8932de20e12b07f9d874d5538d30e1fac9a9f4Andreas Gustafsson# TARGET_nlm (see below) will be used.
3b8932de20e12b07f9d874d5538d30e1fac9a9f4Andreas GustafssonNLM_NAME = cernmeta
3b8932de20e12b07f9d874d5538d30e1fac9a9f4Andreas Gustafsson# This is used by the link '-desc ' directive.
3b8932de20e12b07f9d874d5538d30e1fac9a9f4Andreas Gustafsson# If left blank, NLM_NAME will be used.
3b8932de20e12b07f9d874d5538d30e1fac9a9f4Andreas GustafssonNLM_DESCRIPTION = Apache $(VERSION_STR) CERN Meta Module
2fdaa940ccd0c671a3675d4674c0bd9b8a3f3fb4Andreas Gustafsson# This is used by the '-threadname' directive. If left blank,
3b8932de20e12b07f9d874d5538d30e1fac9a9f4Andreas Gustafsson# NLM_NAME Thread will be used.
73edea95c744a2a9052852d0a63b449599062b30Brian WellingtonNLM_THREAD_NAME = CERN Meta Module
73edea95c744a2a9052852d0a63b449599062b30Brian Wellington# If this is specified, it will override VERSION value in
40d01ce8f3a1889f5799d9b22b26d5398fa75a1bBob HalleyNLM_VERSION =
b90dd6c0a9df584619d3c47be7c9417f55d5ccf6Bob Halley# If this is specified, it will override the default of 64K
40d01ce8f3a1889f5799d9b22b26d5398fa75a1bBob HalleyNLM_STACK_SIZE = 8192
8db66dc4eb654a2e295eaeab3aaf96e24c9ae7b7Bob Halley# If this is specified it will be used by the link '-entry' directive
36983956d7c3d9e294903eeda29548f67ac17daeBob HalleyNLM_ENTRY_SYM =
3b8932de20e12b07f9d874d5538d30e1fac9a9f4Andreas Gustafsson# If this is specified it will be used by the link '-exit' directive
36983956d7c3d9e294903eeda29548f67ac17daeBob HalleyNLM_EXIT_SYM =
b3d8bec59201fd0edbe38f909bda5014d7776b89Brian Wellington# If this is specified it will be used by the link '-check' directive
d80ccd47ad4b526f82590b6c182b4dd80006712eAndreas GustafssonNLM_CHECK_SYM =
a0cad57966364095e4367f568389a8bd84afb2afAndreas Gustafsson# If these are specified it will be used by the link '-flags' directive
a0cad57966364095e4367f568389a8bd84afb2afAndreas Gustafsson# If this is specified it will be linked in with the XDCData option in the def
36983956d7c3d9e294903eeda29548f67ac17daeBob Halley# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
36983956d7c3d9e294903eeda29548f67ac17daeBob Halley# by setting APACHE_UNIPROC in the environment
8eb5937a7e4cb8b5d7fcc1be17d34fdd014bbbb1Andreas Gustafsson# If there is an NLM target, put it here
b70fc17acec2c036bb35a937ba00fbcf10848859David Lawrence# If there is an LIB target, put it here
3b8932de20e12b07f9d874d5538d30e1fac9a9f4Andreas Gustafsson# These are the OBJ files needed to create the NLM target above.
3b8932de20e12b07f9d874d5538d30e1fac9a9f4Andreas Gustafsson# Paths must all use the '/' character
b70fc17acec2c036bb35a937ba00fbcf10848859David LawrenceFILES_nlm_objs = \
3b8932de20e12b07f9d874d5538d30e1fac9a9f4Andreas Gustafsson# These are the LIB files needed to create the NLM target above.
69930116e30137705d3b87d05cbfbc5712386fdeAndreas Gustafsson# These will be added as a library command in the link.opt file.
3b8932de20e12b07f9d874d5538d30e1fac9a9f4Andreas GustafssonFILES_nlm_libs = \
e21262ae8af5d12f64a2242e26338f36901ba4ccAndreas Gustafsson# These are the modules that the above NLM target depends on to load.
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# These will be added as a module command in the link.opt file.
9e87fd676ee62e6e11d29611731b80839fc305b3David LawrenceFILES_nlm_modules = \
5f5bb44065a3e7f506e4afd4d81c89da2931bf1bBob Halley# If the nlm has a msg file, put it's path here
5f5bb44065a3e7f506e4afd4d81c89da2931bf1bBob HalleyFILE_nlm_msg =
36983956d7c3d9e294903eeda29548f67ac17daeBob Halley# If the nlm has a hlp file put it's path here
9b19b39170eaf78ae1baf39acca0be462c2faa4cAndreas Gustafsson# If this is specified, it will override $(NWOS)\copyright.txt.
3637ad3b4e59fc92d3c68b5eabc479bb0ebd570eAndreas GustafssonFILE_nlm_copyright =
36983956d7c3d9e294903eeda29548f67ac17daeBob Halley# Any additional imports go here
413d5565ba2af24f12dc54d6e6807af7f1a39867Andreas GustafssonFILES_nlm_Ximports = \
ff1e17749c7bf976f7127467c1816abeb3f4b998Brian Wellington# Any symbols exported to here
413d5565ba2af24f12dc54d6e6807af7f1a39867Andreas GustafssonFILES_nlm_exports = \
413d5565ba2af24f12dc54d6e6807af7f1a39867Andreas Gustafsson cern_meta_module \
413d5565ba2af24f12dc54d6e6807af7f1a39867Andreas Gustafsson# These are the OBJ files needed to create the LIB target above.
413d5565ba2af24f12dc54d6e6807af7f1a39867Andreas Gustafsson# Paths must all use the '/' character
36983956d7c3d9e294903eeda29548f67ac17daeBob HalleyFILES_lib_objs = \
36983956d7c3d9e294903eeda29548f67ac17daeBob Halley# implement targets and dependancies (leave this section alone)
36983956d7c3d9e294903eeda29548f67ac17daeBob Halleylibs :: $(OBJDIR) $(TARGET_lib)
36983956d7c3d9e294903eeda29548f67ac17daeBob Halleynlms :: libs $(TARGET_nlm)
36983956d7c3d9e294903eeda29548f67ac17daeBob Halley# Updated this target to create necessary directories and copy files to the
a48fa4b49c58246b297e0fd38e5fb85b985379f1Bob Halley# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
include $(APBUILD)/NWGNUtail.inc