NWGNUmodheartmonitor revision 0662ed52e814f8f08ef0e09956413a792584eddf
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# Declare the sub-directories to be built here
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# Get the 'head' of the build environment. This includes default targets and
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# paths to tools
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozekinclude $(AP_WORK)/build/NWGNUhead.inc
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# build this level's files
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# Make sure all needed macro's are defined
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# These directories will be at the beginning of the include list, followed by
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub HrozekXINCDIRS += \
72e60fd4eabcfbcdbfe01e8c38b94052bc6c2067Jakub Hrozek $(APR)/include \
e0c86d21388bffe2e3919e780780c40d96186abbJakub Hrozek $(APRUTIL)/include \
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek $(AP_WORK)/include \
72e60fd4eabcfbcdbfe01e8c38b94052bc6c2067Jakub Hrozek# These flags will come after CFLAGS
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# These defines will come after DEFINES
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub HrozekXDEFINES += \
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# These flags will be added to the link.opt file
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# These values will be appended to the correct variables based on the value of
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozekifeq "$(RELEASE)" "debug"
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub HrozekXINCDIRS += \
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub HrozekXDEFINES += \
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozekifeq "$(RELEASE)" "noopt"
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub HrozekXINCDIRS += \
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub HrozekXDEFINES += \
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozekifeq "$(RELEASE)" "release"
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub HrozekXINCDIRS += \
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub HrozekXDEFINES += \
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# These are used by the link target if an NLM is being generated
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# This is used by the link 'name' directive to name the nlm. If left blank
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# TARGET_nlm (see below) will be used.
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub HrozekNLM_NAME = modheartmonitor
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# This is used by the link '-desc ' directive.
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# If left blank, NLM_NAME will be used.
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub HrozekNLM_DESCRIPTION = Apache $(VERSION_STR) Heart Beat Monitor Module
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# This is used by the '-threadname' directive. If left blank,
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# NLM_NAME Thread will be used.
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub HrozekNLM_THREAD_NAME = modheartmonitor
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# If this is specified, it will override VERSION value in
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub HrozekNLM_VERSION =
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# If this is specified, it will override the default of 64K
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub HrozekNLM_STACK_SIZE = 8192
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# If this is specified it will be used by the link '-entry' directive
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub HrozekNLM_ENTRY_SYM =
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# If this is specified it will be used by the link '-exit' directive
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub HrozekNLM_EXIT_SYM =
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# If this is specified it will be used by the link '-check' directive
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub HrozekNLM_CHECK_SYM =
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# If these are specified it will be used by the link '-flags' directive
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# If this is specified it will be linked in with the XDCData option in the def
c52d7c41e4127a84f487777c0efa6996f6389c51Pavel Reichl# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# by setting APACHE_UNIPROC in the environment
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# If there is an NLM target, put it here
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub HrozekTARGET_nlm = \
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# If there is an LIB target, put it here
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub HrozekTARGET_lib = \
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# These are the OBJ files needed to create the NLM target above.
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# Paths must all use the '/' character
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub HrozekFILES_nlm_objs = \
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# These are the LIB files needed to create the NLM target above.
341a00311680a440d7f979f06c34c70d86c9367aBohuslav Kabrda# These will be added as a library command in the link.opt file.
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub HrozekFILES_nlm_libs = \
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# These are the modules that the above NLM target depends on to load.
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# These will be added as a module command in the link.opt file.
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub HrozekFILES_nlm_modules = \
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# If the nlm has a msg file, put it's path here
f47a339d7794cd5a24d368b3b3640452686e45a5Lukas SlebodnikFILE_nlm_msg =
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# If the nlm has a hlp file put it's path here
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub HrozekFILE_nlm_hlp =
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# If this is specified, it will override $(NWOS)\copyright.txt.
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub HrozekFILE_nlm_copyright =
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# Any additional imports go here
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub HrozekFILES_nlm_Ximports = \
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# Any symbols exported to here
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub HrozekFILES_nlm_exports = \
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek heartmonitor_module \
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# These are the OBJ files needed to create the LIB target above.
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# Paths must all use the '/' character
22d268c88f6d324b3a66846af007b06488eddae7Jakub HrozekFILES_lib_objs = \
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# implement targets and dependancies (leave this section alone)
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozeklibs :: $(OBJDIR) $(TARGET_lib)
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozeknlms :: libs $(TARGET_nlm)
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# Updated this target to create necessary directories and copy files to the
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozekinstall :: nlms FORCE
667db40da4db362d7ca0a1f7f1c4ba40fb71795aJakub Hrozek# Any specialized rules here
341a00311680a440d7f979f06c34c70d86c9367aBohuslav Kabrda# Include the 'tail' makefile that has targets that depend on variables defined
341a00311680a440d7f979f06c34c70d86c9367aBohuslav Kabrda# in this makefile
341a00311680a440d7f979f06c34c70d86c9367aBohuslav Kabrdainclude $(APBUILD)/NWGNUtail.inc