NWGNUcernmeta revision cf7ca2f9eaa6523fefcccba4287b91637391fb51
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjorton# Make sure all needed macro's are defined
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjorton
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjorton# Get the 'head' of the build environment if necessary. This includes default
0797faae937515a5225a36db4a1ec79480d2555cjorton# targets and paths to tools
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjorton
0797faae937515a5225a36db4a1ec79480d2555cjortonifndef EnvironmentDefined
0797faae937515a5225a36db4a1ec79480d2555cjortoninclude $(AP_WORK)/build/NWGNUhead.inc
0797faae937515a5225a36db4a1ec79480d2555cjortonendif
0797faae937515a5225a36db4a1ec79480d2555cjorton
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjorton# These directories will be at the beginning of the include list, followed by
0797faae937515a5225a36db4a1ec79480d2555cjorton# INCDIRS
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjortonXINCDIRS += \
0797faae937515a5225a36db4a1ec79480d2555cjorton $(APR)/include \
0797faae937515a5225a36db4a1ec79480d2555cjorton $(APRUTIL)/include \
0797faae937515a5225a36db4a1ec79480d2555cjorton $(AP_WORK)/include \
0797faae937515a5225a36db4a1ec79480d2555cjorton $(NWOS) \
0797faae937515a5225a36db4a1ec79480d2555cjorton $(EOLIST)
0797faae937515a5225a36db4a1ec79480d2555cjorton
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjorton# These flags will come after CFLAGS
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjortonXCFLAGS += \
0797faae937515a5225a36db4a1ec79480d2555cjorton $(EOLIST)
0797faae937515a5225a36db4a1ec79480d2555cjorton
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjorton# These defines will come after DEFINES
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjortonXDEFINES += \
0797faae937515a5225a36db4a1ec79480d2555cjorton $(EOLIST)
0797faae937515a5225a36db4a1ec79480d2555cjorton
dca6643570b2f028bc7af76329bd7e333bf7493cpquerna#
dca6643570b2f028bc7af76329bd7e333bf7493cpquerna# These flags will be added to the link.opt file
dca6643570b2f028bc7af76329bd7e333bf7493cpquerna#
dca6643570b2f028bc7af76329bd7e333bf7493cpquernaXLFLAGS += \
0797faae937515a5225a36db4a1ec79480d2555cjorton $(EOLIST)
0797faae937515a5225a36db4a1ec79480d2555cjorton
2685f3814b77577ef7b2523442dab1ca88df1e41jorton#
0797faae937515a5225a36db4a1ec79480d2555cjorton# These values will be appended to the correct variables based on the value of
0797faae937515a5225a36db4a1ec79480d2555cjorton# RELEASE
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjortonifeq "$(RELEASE)" "debug"
fca945cb6bed035dcc6bbced5e327bbd4d8420abjortonXINCDIRS += \
0797faae937515a5225a36db4a1ec79480d2555cjorton $(EOLIST)
0797faae937515a5225a36db4a1ec79480d2555cjorton
0797faae937515a5225a36db4a1ec79480d2555cjortonXCFLAGS += \
0797faae937515a5225a36db4a1ec79480d2555cjorton $(EOLIST)
0797faae937515a5225a36db4a1ec79480d2555cjorton
eab15974b1d8bbcb6d4f9ec75527b39ffded82aajortonXDEFINES += \
0797faae937515a5225a36db4a1ec79480d2555cjorton $(EOLIST)
bf8ae84ccab0e10cacda6098f6a696577752c433wrowe
bf8ae84ccab0e10cacda6098f6a696577752c433wroweXLFLAGS += \
bf8ae84ccab0e10cacda6098f6a696577752c433wrowe $(EOLIST)
bf8ae84ccab0e10cacda6098f6a696577752c433wroweendif
8c4aed3f92674325e17d8360ee2797beda3a1472jorton
bf8ae84ccab0e10cacda6098f6a696577752c433wroweifeq "$(RELEASE)" "noopt"
8c4aed3f92674325e17d8360ee2797beda3a1472jortonXINCDIRS += \
0797faae937515a5225a36db4a1ec79480d2555cjorton $(EOLIST)
eab15974b1d8bbcb6d4f9ec75527b39ffded82aajorton
0797faae937515a5225a36db4a1ec79480d2555cjortonXCFLAGS += \
eab15974b1d8bbcb6d4f9ec75527b39ffded82aajorton $(EOLIST)
eab15974b1d8bbcb6d4f9ec75527b39ffded82aajorton
0797faae937515a5225a36db4a1ec79480d2555cjortonXDEFINES += \
eab15974b1d8bbcb6d4f9ec75527b39ffded82aajorton $(EOLIST)
eab15974b1d8bbcb6d4f9ec75527b39ffded82aajorton
0797faae937515a5225a36db4a1ec79480d2555cjortonXLFLAGS += \
eab15974b1d8bbcb6d4f9ec75527b39ffded82aajorton $(EOLIST)
eab15974b1d8bbcb6d4f9ec75527b39ffded82aajortonendif
0797faae937515a5225a36db4a1ec79480d2555cjorton
0797faae937515a5225a36db4a1ec79480d2555cjortonifeq "$(RELEASE)" "release"
0797faae937515a5225a36db4a1ec79480d2555cjortonXINCDIRS += \
2685f3814b77577ef7b2523442dab1ca88df1e41jorton $(EOLIST)
0797faae937515a5225a36db4a1ec79480d2555cjorton
501e60e433e1914c64f642114fbb4fb9be9e2ca9jortonXCFLAGS += \
501e60e433e1914c64f642114fbb4fb9be9e2ca9jorton $(EOLIST)
501e60e433e1914c64f642114fbb4fb9be9e2ca9jorton
0797faae937515a5225a36db4a1ec79480d2555cjortonXDEFINES += \
2685f3814b77577ef7b2523442dab1ca88df1e41jorton $(EOLIST)
2685f3814b77577ef7b2523442dab1ca88df1e41jorton
0797faae937515a5225a36db4a1ec79480d2555cjortonXLFLAGS += \
0797faae937515a5225a36db4a1ec79480d2555cjorton $(EOLIST)
2685f3814b77577ef7b2523442dab1ca88df1e41jortonendif
0797faae937515a5225a36db4a1ec79480d2555cjorton
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjorton# These are used by the link target if an NLM is being generated
8c4aed3f92674325e17d8360ee2797beda3a1472jorton# This is used by the link 'name' directive to name the nlm. If left blank
8c4aed3f92674325e17d8360ee2797beda3a1472jorton# TARGET_nlm (see below) will be used.
8c4aed3f92674325e17d8360ee2797beda3a1472jorton#
8c4aed3f92674325e17d8360ee2797beda3a1472jortonNLM_NAME = cernmeta
8c4aed3f92674325e17d8360ee2797beda3a1472jorton
0797faae937515a5225a36db4a1ec79480d2555cjorton#
fca945cb6bed035dcc6bbced5e327bbd4d8420abjorton# This is used by the link '-desc ' directive.
0797faae937515a5225a36db4a1ec79480d2555cjorton# If left blank, NLM_NAME will be used.
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjortonNLM_DESCRIPTION = Apache $(VERSION_STR) CERN Meta Module
0797faae937515a5225a36db4a1ec79480d2555cjorton
0797faae937515a5225a36db4a1ec79480d2555cjorton#
2685f3814b77577ef7b2523442dab1ca88df1e41jorton# This is used by the '-threadname' directive. If left blank,
fca945cb6bed035dcc6bbced5e327bbd4d8420abjorton# NLM_NAME Thread will be used.
fca945cb6bed035dcc6bbced5e327bbd4d8420abjorton#
2685f3814b77577ef7b2523442dab1ca88df1e41jortonNLM_THREAD_NAME = CERN Meta Module
0797faae937515a5225a36db4a1ec79480d2555cjorton
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjorton# If this is specified, it will override VERSION value in
0797faae937515a5225a36db4a1ec79480d2555cjorton# $(AP_WORK)/build/NWGNUenvironment.inc
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjortonNLM_VERSION =
8c4aed3f92674325e17d8360ee2797beda3a1472jorton
8c4aed3f92674325e17d8360ee2797beda3a1472jorton#
8c4aed3f92674325e17d8360ee2797beda3a1472jorton# If this is specified, it will override the default of 64K
8c4aed3f92674325e17d8360ee2797beda3a1472jorton#
8c4aed3f92674325e17d8360ee2797beda3a1472jortonNLM_STACK_SIZE = 8192
8c4aed3f92674325e17d8360ee2797beda3a1472jorton
8c4aed3f92674325e17d8360ee2797beda3a1472jorton
8c4aed3f92674325e17d8360ee2797beda3a1472jorton#
8c4aed3f92674325e17d8360ee2797beda3a1472jorton# If this is specified it will be used by the link '-entry' directive
8c4aed3f92674325e17d8360ee2797beda3a1472jorton#
8c4aed3f92674325e17d8360ee2797beda3a1472jortonNLM_ENTRY_SYM =
0797faae937515a5225a36db4a1ec79480d2555cjorton
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjorton# If this is specified it will be used by the link '-exit' directive
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjortonNLM_EXIT_SYM =
0797faae937515a5225a36db4a1ec79480d2555cjorton
eab15974b1d8bbcb6d4f9ec75527b39ffded82aajorton#
0797faae937515a5225a36db4a1ec79480d2555cjorton# If this is specified it will be used by the link '-check' directive
eab15974b1d8bbcb6d4f9ec75527b39ffded82aajorton#
0797faae937515a5225a36db4a1ec79480d2555cjortonNLM_CHECK_SYM =
0797faae937515a5225a36db4a1ec79480d2555cjorton
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjorton# If these are specified it will be used by the link '-flags' directive
0797faae937515a5225a36db4a1ec79480d2555cjorton#
fca945cb6bed035dcc6bbced5e327bbd4d8420abjortonNLM_FLAGS =
fca945cb6bed035dcc6bbced5e327bbd4d8420abjorton
fca945cb6bed035dcc6bbced5e327bbd4d8420abjorton#
0b310e2cb91c7ca69a95637c05fae2fb124d7fcfpquerna# If this is specified it will be linked in with the XDCData option in the def
0797faae937515a5225a36db4a1ec79480d2555cjorton# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
0797faae937515a5225a36db4a1ec79480d2555cjorton# by setting APACHE_UNIPROC in the environment
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjortonXDCDATA =
0797faae937515a5225a36db4a1ec79480d2555cjorton
0797faae937515a5225a36db4a1ec79480d2555cjorton#
a91a59d0b0ceed7cd5621fe8757eda5ff6a043a8pquerna# If there is an NLM target, put it here
eab15974b1d8bbcb6d4f9ec75527b39ffded82aajorton#
a91a59d0b0ceed7cd5621fe8757eda5ff6a043a8pquernaTARGET_nlm = \
0797faae937515a5225a36db4a1ec79480d2555cjorton $(OBJDIR)/cernmeta.nlm \
a91a59d0b0ceed7cd5621fe8757eda5ff6a043a8pquerna $(EOLIST)
0797faae937515a5225a36db4a1ec79480d2555cjorton
a91a59d0b0ceed7cd5621fe8757eda5ff6a043a8pquerna#
0797faae937515a5225a36db4a1ec79480d2555cjorton# If there is an LIB target, put it here
eab15974b1d8bbcb6d4f9ec75527b39ffded82aajorton#
a91a59d0b0ceed7cd5621fe8757eda5ff6a043a8pquernaTARGET_lib = \
0797faae937515a5225a36db4a1ec79480d2555cjorton $(EOLIST)
a91a59d0b0ceed7cd5621fe8757eda5ff6a043a8pquerna
0797faae937515a5225a36db4a1ec79480d2555cjorton#
a91a59d0b0ceed7cd5621fe8757eda5ff6a043a8pquerna# These are the OBJ files needed to create the NLM target above.
0797faae937515a5225a36db4a1ec79480d2555cjorton# Paths must all use the '/' character
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjortonFILES_nlm_objs = \
0797faae937515a5225a36db4a1ec79480d2555cjorton $(OBJDIR)/mod_cern_meta.o \
0797faae937515a5225a36db4a1ec79480d2555cjorton $(EOLIST)
0797faae937515a5225a36db4a1ec79480d2555cjorton
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjorton# These are the LIB files needed to create the NLM target above.
2685f3814b77577ef7b2523442dab1ca88df1e41jorton# These will be added as a library command in the link.opt file.
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjortonFILES_nlm_libs = \
eab15974b1d8bbcb6d4f9ec75527b39ffded82aajorton $(PRELUDE) \
eab15974b1d8bbcb6d4f9ec75527b39ffded82aajorton $(EOLIST)
0797faae937515a5225a36db4a1ec79480d2555cjorton
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjorton# These are the modules that the above NLM target depends on to load.
0797faae937515a5225a36db4a1ec79480d2555cjorton# These will be added as a module command in the link.opt file.
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjortonFILES_nlm_modules = \
0797faae937515a5225a36db4a1ec79480d2555cjorton aprlib \
0797faae937515a5225a36db4a1ec79480d2555cjorton libc \
0797faae937515a5225a36db4a1ec79480d2555cjorton $(EOLIST)
501e60e433e1914c64f642114fbb4fb9be9e2ca9jorton
501e60e433e1914c64f642114fbb4fb9be9e2ca9jorton#
501e60e433e1914c64f642114fbb4fb9be9e2ca9jorton# If the nlm has a msg file, put it's path here
501e60e433e1914c64f642114fbb4fb9be9e2ca9jorton#
501e60e433e1914c64f642114fbb4fb9be9e2ca9jortonFILE_nlm_msg =
0797faae937515a5225a36db4a1ec79480d2555cjorton
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjorton# If the nlm has a hlp file put it's path here
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjortonFILE_nlm_hlp =
0797faae937515a5225a36db4a1ec79480d2555cjorton
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjorton# If this is specified, it will override $(NWOS)\copyright.txt.
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjortonFILE_nlm_copyright =
0797faae937515a5225a36db4a1ec79480d2555cjorton
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjorton# Any additional imports go here
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjortonFILES_nlm_Ximports = \
0797faae937515a5225a36db4a1ec79480d2555cjorton @aprlib.imp \
0797faae937515a5225a36db4a1ec79480d2555cjorton @httpd.imp \
0797faae937515a5225a36db4a1ec79480d2555cjorton @libc.imp \
0797faae937515a5225a36db4a1ec79480d2555cjorton $(EOLIST)
0797faae937515a5225a36db4a1ec79480d2555cjorton
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjorton# Any symbols exported to here
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjortonFILES_nlm_exports = \
0797faae937515a5225a36db4a1ec79480d2555cjorton cern_meta_module \
0797faae937515a5225a36db4a1ec79480d2555cjorton $(EOLIST)
0797faae937515a5225a36db4a1ec79480d2555cjorton
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjorton# These are the OBJ files needed to create the LIB target above.
0797faae937515a5225a36db4a1ec79480d2555cjorton# Paths must all use the '/' character
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjortonFILES_lib_objs = \
0797faae937515a5225a36db4a1ec79480d2555cjorton $(EOLIST)
0797faae937515a5225a36db4a1ec79480d2555cjorton
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjorton# implement targets and dependancies (leave this section alone)
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjorton
0797faae937515a5225a36db4a1ec79480d2555cjortonlibs :: $(OBJDIR) $(TARGET_lib)
0797faae937515a5225a36db4a1ec79480d2555cjorton
0797faae937515a5225a36db4a1ec79480d2555cjortonnlms :: libs $(TARGET_nlm)
0797faae937515a5225a36db4a1ec79480d2555cjorton
eab15974b1d8bbcb6d4f9ec75527b39ffded82aajorton#
0797faae937515a5225a36db4a1ec79480d2555cjorton# Updated this target to create necessary directories and copy files to the
eab15974b1d8bbcb6d4f9ec75527b39ffded82aajorton# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjortoninstall :: nlms FORCE
0797faae937515a5225a36db4a1ec79480d2555cjorton
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjorton# Any specialized rules here
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjorton
eab15974b1d8bbcb6d4f9ec75527b39ffded82aajorton#
0797faae937515a5225a36db4a1ec79480d2555cjorton# Include the 'tail' makefile that has targets that depend on variables defined
0797faae937515a5225a36db4a1ec79480d2555cjorton# in this makefile
0797faae937515a5225a36db4a1ec79480d2555cjorton#
0797faae937515a5225a36db4a1ec79480d2555cjorton
0797faae937515a5225a36db4a1ec79480d2555cjortoninclude $(APBUILD)/NWGNUtail.inc
0797faae937515a5225a36db4a1ec79480d2555cjorton
0797faae937515a5225a36db4a1ec79480d2555cjorton
0797faae937515a5225a36db4a1ec79480d2555cjorton