NWGNUmoddumpio revision 44f575c8cb19a7a5cd61664a7848be6bc197df02
fac0962a18d1fb6d73726dbbe94d3204459484c7joncruz# Make sure all needed macro's are defined
c3d71eeb981927093e5a6284277181d1d6b83985dvlierop# Get the 'head' of the build environment if necessary. This includes default
fac0962a18d1fb6d73726dbbe94d3204459484c7joncruz# targets and paths to tools
fac0962a18d1fb6d73726dbbe94d3204459484c7joncruzifndef EnvironmentDefined
fac0962a18d1fb6d73726dbbe94d3204459484c7joncruzinclude $(AP_WORK)/build/NWGNUhead.inc
fac0962a18d1fb6d73726dbbe94d3204459484c7joncruz# These directories will be at the beginning of the include list, followed by
fac0962a18d1fb6d73726dbbe94d3204459484c7joncruzXINCDIRS += \
2e10ea952a319db08edf0986dea15de42b14d92fbuliabyak $(APR)/include \
fac0962a18d1fb6d73726dbbe94d3204459484c7joncruz $(APRUTIL)/include \
6c3e745a94ef6b25a4ef9f018d350a7535aa45afTed Gould $(SRC)/include \
fac0962a18d1fb6d73726dbbe94d3204459484c7joncruz# These flags will come after CFLAGS
d34c9aff3f56c74e28d7115f276c4390c5ff0f1bdvlieropXCFLAGS += \
fac0962a18d1fb6d73726dbbe94d3204459484c7joncruz# These defines will come after DEFINES
fac0962a18d1fb6d73726dbbe94d3204459484c7joncruzXDEFINES += \
d34c9aff3f56c74e28d7115f276c4390c5ff0f1bdvlierop# These flags will be added to the link.opt file
fac0962a18d1fb6d73726dbbe94d3204459484c7joncruzXLFLAGS += \
fac0962a18d1fb6d73726dbbe94d3204459484c7joncruz# These values will be appended to the correct variables based on the value of
e4f08f2a8921c4cb52716e59c7831b98ec237b2fdvlieropifeq "$(RELEASE)" "debug"
1f203f525100bbdd7d964f8b1c004929418f0b5fdvlieropXINCDIRS += \
3f906f24613d8a68c82b3b7b74f99900f7e5e7d5dvlieropXCFLAGS += \
1f203f525100bbdd7d964f8b1c004929418f0b5fdvlieropXDEFINES += \
abac96a58638236025e60f4dca3848bb294c6672johanengelenifeq "$(RELEASE)" "noopt"
995ec331afc69a2e82dac045e5f8749a4bc6d65edvlieropXINCDIRS += \
995ec331afc69a2e82dac045e5f8749a4bc6d65edvlieropXCFLAGS += \
abac96a58638236025e60f4dca3848bb294c6672johanengelenXDEFINES += \
995ec331afc69a2e82dac045e5f8749a4bc6d65edvlieropifeq "$(RELEASE)" "release"
995ec331afc69a2e82dac045e5f8749a4bc6d65edvlieropXINCDIRS += \
995ec331afc69a2e82dac045e5f8749a4bc6d65edvlieropXCFLAGS += \
771d00baf3d15209a77dce026f7ef45a78365e62dvlieropXDEFINES += \
995ec331afc69a2e82dac045e5f8749a4bc6d65edvlieropXLFLAGS += \
995ec331afc69a2e82dac045e5f8749a4bc6d65edvlierop# These are used by the link target if an NLM is being generated
995ec331afc69a2e82dac045e5f8749a4bc6d65edvlierop# This is used by the link 'name' directive to name the nlm. If left blank
abac96a58638236025e60f4dca3848bb294c6672johanengelen# TARGET_nlm (see below) will be used.
995ec331afc69a2e82dac045e5f8749a4bc6d65edvlieropNLM_NAME = moddumpio
995ec331afc69a2e82dac045e5f8749a4bc6d65edvlierop# This is used by the link '-desc ' directive.
3a7345b8679cc6efca91c2012dbf7a2f608a2833dvlierop# If left blank, NLM_NAME will be used.
995ec331afc69a2e82dac045e5f8749a4bc6d65edvlieropNLM_DESCRIPTION = Apache $(VERSION_STR) DumpIO Module
995ec331afc69a2e82dac045e5f8749a4bc6d65edvlierop# This is used by the '-threadname' directive. If left blank,
771d00baf3d15209a77dce026f7ef45a78365e62dvlierop# NLM_NAME Thread will be used.
771d00baf3d15209a77dce026f7ef45a78365e62dvlieropNLM_THREAD_NAME = DumpIO Module
771d00baf3d15209a77dce026f7ef45a78365e62dvlierop# If this is specified, it will override VERSION value in
771d00baf3d15209a77dce026f7ef45a78365e62dvlieropNLM_VERSION =
771d00baf3d15209a77dce026f7ef45a78365e62dvlierop# If this is specified, it will override the default of 64K
771d00baf3d15209a77dce026f7ef45a78365e62dvlieropNLM_STACK_SIZE = 8192
771d00baf3d15209a77dce026f7ef45a78365e62dvlierop# If this is specified it will be used by the link '-entry' directive
771d00baf3d15209a77dce026f7ef45a78365e62dvlieropNLM_ENTRY_SYM =
771d00baf3d15209a77dce026f7ef45a78365e62dvlierop# If this is specified it will be used by the link '-exit' directive
771d00baf3d15209a77dce026f7ef45a78365e62dvlieropNLM_EXIT_SYM =
1b5ad44f5a431316b6f618a44320e22e5908abcbdvlierop# If this is specified it will be used by the link '-check' directive
1b5ad44f5a431316b6f618a44320e22e5908abcbdvlieropNLM_CHECK_SYM =
1b5ad44f5a431316b6f618a44320e22e5908abcbdvlierop# If these are specified it will be used by the link '-flags' directive
995ec331afc69a2e82dac045e5f8749a4bc6d65edvlierop# If this is specified it will be linked in with the XDCData option in the def
abac96a58638236025e60f4dca3848bb294c6672johanengelen# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
abac96a58638236025e60f4dca3848bb294c6672johanengelen# by setting APACHE_UNIPROC in the environment
771d00baf3d15209a77dce026f7ef45a78365e62dvlierop# If there is an NLM target, put it here
771d00baf3d15209a77dce026f7ef45a78365e62dvlieropTARGET_nlm = \
771d00baf3d15209a77dce026f7ef45a78365e62dvlierop $(OBJDIR)/$(NLM_NAME).nlm \
771d00baf3d15209a77dce026f7ef45a78365e62dvlierop# If there is an LIB target, put it here
771d00baf3d15209a77dce026f7ef45a78365e62dvlieropTARGET_lib = \
771d00baf3d15209a77dce026f7ef45a78365e62dvlierop# These are the OBJ files needed to create the NLM target above.
771d00baf3d15209a77dce026f7ef45a78365e62dvlierop# Paths must all use the '/' character
771d00baf3d15209a77dce026f7ef45a78365e62dvlieropFILES_nlm_objs = \
771d00baf3d15209a77dce026f7ef45a78365e62dvlierop# These are the LIB files needed to create the NLM target above.
771d00baf3d15209a77dce026f7ef45a78365e62dvlierop# These will be added as a library command in the link.opt file.
771d00baf3d15209a77dce026f7ef45a78365e62dvlieropFILES_nlm_libs = \
771d00baf3d15209a77dce026f7ef45a78365e62dvlierop $(PRELUDE) \
771d00baf3d15209a77dce026f7ef45a78365e62dvlierop# These are the modules that the above NLM target depends on to load.
771d00baf3d15209a77dce026f7ef45a78365e62dvlierop# These will be added as a module command in the link.opt file.
771d00baf3d15209a77dce026f7ef45a78365e62dvlieropFILES_nlm_modules = \
771d00baf3d15209a77dce026f7ef45a78365e62dvlierop# If the nlm has a msg file, put it's path here
771d00baf3d15209a77dce026f7ef45a78365e62dvlieropFILE_nlm_msg =
771d00baf3d15209a77dce026f7ef45a78365e62dvlierop# If the nlm has a hlp file put it's path here
1b5ad44f5a431316b6f618a44320e22e5908abcbdvlieropFILE_nlm_hlp =
1b5ad44f5a431316b6f618a44320e22e5908abcbdvlierop# If this is specified, it will override $(NWOS)\copyright.txt.
1b5ad44f5a431316b6f618a44320e22e5908abcbdvlieropFILE_nlm_copyright =
771d00baf3d15209a77dce026f7ef45a78365e62dvlierop# Any additional imports go here
771d00baf3d15209a77dce026f7ef45a78365e62dvlieropFILES_nlm_Ximports = \
995ec331afc69a2e82dac045e5f8749a4bc6d65edvlierop# Any symbols exported to here
995ec331afc69a2e82dac045e5f8749a4bc6d65edvlieropFILES_nlm_exports = \
995ec331afc69a2e82dac045e5f8749a4bc6d65edvlierop dumpio_module \
995ec331afc69a2e82dac045e5f8749a4bc6d65edvlierop# These are the OBJ files needed to create the LIB target above.
995ec331afc69a2e82dac045e5f8749a4bc6d65edvlierop# Paths must all use the '/' character
995ec331afc69a2e82dac045e5f8749a4bc6d65edvlieropFILES_lib_objs = \
995ec331afc69a2e82dac045e5f8749a4bc6d65edvlierop# implement targets and dependancies (leave this section alone)
995ec331afc69a2e82dac045e5f8749a4bc6d65edvlieroplibs :: $(OBJDIR) $(TARGET_lib)
995ec331afc69a2e82dac045e5f8749a4bc6d65edvlieropnlms :: libs $(TARGET_nlm)
995ec331afc69a2e82dac045e5f8749a4bc6d65edvlierop# Updated this target to create necessary directories and copy files to the
70c0e45df7e4d98aefc5266c5b551a62cbb7a3e1dvlierop# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
995ec331afc69a2e82dac045e5f8749a4bc6d65edvlieropinstall :: nlms FORCE
70c0e45df7e4d98aefc5266c5b551a62cbb7a3e1dvlierop# Any specialized rules here
70c0e45df7e4d98aefc5266c5b551a62cbb7a3e1dvlierop# Include the 'tail' makefile that has targets that depend on variables defined
70c0e45df7e4d98aefc5266c5b551a62cbb7a3e1dvlierop# in this makefile
995ec331afc69a2e82dac045e5f8749a4bc6d65edvlieropinclude $(APBUILD)/NWGNUtail.inc