NWGNUexample_ipc revision bbfffb4303e53b4700351e33848d86ac808fdccb
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Declare the sub-directories to be built here
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Get the 'head' of the build environment. This includes default targets and
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# paths to tools
4bff34e37def8a90f9194d81bc345c52ba20086athurlowinclude $(AP_WORK)\build\NWGNUhead.inc
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# build this level's files
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Make sure all needed macro's are defined
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# These directories will be at the beginning of the include list, followed by
4bff34e37def8a90f9194d81bc345c52ba20086athurlowXINCDIRS += \
12b65585e720714b31036daaa2b30eb76014048eGordon Ross $(AP_WORK)/include \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow $(APR)/include \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow $(APRUTIL)/include \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# These flags will come after CFLAGS
4bff34e37def8a90f9194d81bc345c52ba20086athurlowXCFLAGS += \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# These defines will come after DEFINES
4bff34e37def8a90f9194d81bc345c52ba20086athurlowXDEFINES += \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# These flags will be added to the link.opt file
4bff34e37def8a90f9194d81bc345c52ba20086athurlowXLFLAGS += \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# These values will be appended to the correct variables based on the value of
4bff34e37def8a90f9194d81bc345c52ba20086athurlowifeq "$(RELEASE)" "debug"
4bff34e37def8a90f9194d81bc345c52ba20086athurlowXINCDIRS += \
4bff34e37def8a90f9194d81bc345c52ba20086athurlowXCFLAGS += \
4bff34e37def8a90f9194d81bc345c52ba20086athurlowXDEFINES += \
4bff34e37def8a90f9194d81bc345c52ba20086athurlowXLFLAGS += \
4bff34e37def8a90f9194d81bc345c52ba20086athurlowifeq "$(RELEASE)" "noopt"
4bff34e37def8a90f9194d81bc345c52ba20086athurlowXINCDIRS += \
4bff34e37def8a90f9194d81bc345c52ba20086athurlowXCFLAGS += \
4bff34e37def8a90f9194d81bc345c52ba20086athurlowXDEFINES += \
4bff34e37def8a90f9194d81bc345c52ba20086athurlowXLFLAGS += \
4bff34e37def8a90f9194d81bc345c52ba20086athurlowifeq "$(RELEASE)" "release"
4bff34e37def8a90f9194d81bc345c52ba20086athurlowXINCDIRS += \
12b65585e720714b31036daaa2b30eb76014048eGordon RossXDEFINES += \
12b65585e720714b31036daaa2b30eb76014048eGordon Ross# These are used by the link target if an NLM is being generated
12b65585e720714b31036daaa2b30eb76014048eGordon Ross# This is used by the link 'name' directive to name the nlm. If left blank
12b65585e720714b31036daaa2b30eb76014048eGordon Ross# TARGET_nlm (see below) will be used.
12b65585e720714b31036daaa2b30eb76014048eGordon RossNLM_NAME = example_ipc
12b65585e720714b31036daaa2b30eb76014048eGordon Ross# This is used by the link '-desc ' directive.
12b65585e720714b31036daaa2b30eb76014048eGordon Ross# If left blank, NLM_NAME will be used.
12b65585e720714b31036daaa2b30eb76014048eGordon RossNLM_DESCRIPTION = Apache $(VERSION_STR) Example IPC Callback Handler Module
12b65585e720714b31036daaa2b30eb76014048eGordon Ross# This is used by the '-threadname' directive. If left blank,
12b65585e720714b31036daaa2b30eb76014048eGordon Ross# NLM_NAME Thread will be used.
12b65585e720714b31036daaa2b30eb76014048eGordon RossNLM_THREAD_NAME = Example IPC Callback Handler Module
12b65585e720714b31036daaa2b30eb76014048eGordon Ross# If this is specified, it will override VERSION value in
12b65585e720714b31036daaa2b30eb76014048eGordon Ross# $(AP_WORK)\build\NWGNUenvironment.inc
12b65585e720714b31036daaa2b30eb76014048eGordon RossNLM_VERSION =
12b65585e720714b31036daaa2b30eb76014048eGordon Ross# If this is specified, it will override the default of 64K
12b65585e720714b31036daaa2b30eb76014048eGordon RossNLM_STACK_SIZE = 8192
12b65585e720714b31036daaa2b30eb76014048eGordon Ross# If this is specified it will be used by the link '-entry' directive
12b65585e720714b31036daaa2b30eb76014048eGordon RossNLM_ENTRY_SYM = _LibCPrelude
12b65585e720714b31036daaa2b30eb76014048eGordon Ross# If this is specified it will be used by the link '-exit' directive
12b65585e720714b31036daaa2b30eb76014048eGordon RossNLM_EXIT_SYM = _LibCPostlude
12b65585e720714b31036daaa2b30eb76014048eGordon Ross# If this is specified it will be used by the link '-check' directive
12b65585e720714b31036daaa2b30eb76014048eGordon RossNLM_CHECK_SYM =
12b65585e720714b31036daaa2b30eb76014048eGordon Ross# If these are specified it will be used by the link '-flags' directive
12b65585e720714b31036daaa2b30eb76014048eGordon RossNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
12b65585e720714b31036daaa2b30eb76014048eGordon Ross# If this is specified it will be linked in with the XDCData option in the def
12b65585e720714b31036daaa2b30eb76014048eGordon Ross# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
12b65585e720714b31036daaa2b30eb76014048eGordon Ross# by setting APACHE_UNIPROC in the environment
12b65585e720714b31036daaa2b30eb76014048eGordon Ross# If there is an NLM target, put it here
12b65585e720714b31036daaa2b30eb76014048eGordon RossTARGET_nlm = \
12b65585e720714b31036daaa2b30eb76014048eGordon Ross# If there is an LIB target, put it here
12b65585e720714b31036daaa2b30eb76014048eGordon RossTARGET_lib = \
12b65585e720714b31036daaa2b30eb76014048eGordon Ross# These are the OBJ files needed to create the NLM target above.
12b65585e720714b31036daaa2b30eb76014048eGordon Ross# Paths must all use the '/' character
12b65585e720714b31036daaa2b30eb76014048eGordon RossFILES_nlm_objs = \
12b65585e720714b31036daaa2b30eb76014048eGordon Ross# These are the LIB files needed to create the NLM target above.
12b65585e720714b31036daaa2b30eb76014048eGordon Ross# These will be added as a library command in the link.opt file.
12b65585e720714b31036daaa2b30eb76014048eGordon RossFILES_nlm_libs = \
12b65585e720714b31036daaa2b30eb76014048eGordon Ross# These are the modules that the above NLM target depends on to load.
12b65585e720714b31036daaa2b30eb76014048eGordon Ross# These will be added as a module command in the link.opt file.
12b65585e720714b31036daaa2b30eb76014048eGordon RossFILES_nlm_modules = \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# If the nlm has a msg file, put it's path here
4bff34e37def8a90f9194d81bc345c52ba20086athurlowFILE_nlm_msg =
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# If the nlm has a hlp file put it's path here
4bff34e37def8a90f9194d81bc345c52ba20086athurlowFILE_nlm_hlp =
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# If this is specified, it will override $(NWOS)\copyright.txt.
4bff34e37def8a90f9194d81bc345c52ba20086athurlowFILE_nlm_copyright =
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Any additional imports go here
4bff34e37def8a90f9194d81bc345c52ba20086athurlowFILES_nlm_Ximports = \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Any symbols exported to here
4bff34e37def8a90f9194d81bc345c52ba20086athurlowFILES_nlm_exports = \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow example_ipc_module \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# These are the OBJ files needed to create the LIB target above.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Paths must all use the '/' character
4bff34e37def8a90f9194d81bc345c52ba20086athurlowFILES_lib_objs = \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# implement targets and dependancies (leave this section alone)
4bff34e37def8a90f9194d81bc345c52ba20086athurlowlibs :: $(OBJDIR) $(TARGET_lib)
4bff34e37def8a90f9194d81bc345c52ba20086athurlownlms :: libs $(TARGET_nlm)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Updated this target to create necessary directories and copy files to the
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
4bff34e37def8a90f9194d81bc345c52ba20086athurlowinstall :: nlms FORCE
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Any specialized rules here
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Include the 'tail' makefile that has targets that depend on variables defined
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# in this makefile
4bff34e37def8a90f9194d81bc345c52ba20086athurlowinclude $(AP_WORK)\build\NWGNUtail.inc