NWGNUcase_flt_in revision 44f575c8cb19a7a5cd61664a7848be6bc197df02
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# Declare the sub-directories to be built here
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# Get the 'head' of the build environment. This includes default targets and
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# paths to tools
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Fosterinclude $(AP_WORK)/build/NWGNUhead.inc
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# build this level's files
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# Make sure all needed macro's are defined
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# These directories will be at the beginning of the include list, followed by
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan FosterXINCDIRS += \
a4544a5a0e622ef69e38641f87ab1b5685e05911Phill Cunnington $(APR)/include \
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster $(APRUTIL)/include \
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster $(SRC)/include \
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# These flags will come after CFLAGS
d0da70ccbba38b773e7a7cc71bc124b06206d201Robert Wapshott# These defines will come after DEFINES
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan FosterXDEFINES += \
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# These flags will be added to the link.opt file
d0da70ccbba38b773e7a7cc71bc124b06206d201Robert Wapshott# These values will be appended to the correct variables based on the value of
d0da70ccbba38b773e7a7cc71bc124b06206d201Robert Wapshottifeq "$(RELEASE)" "debug"
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan FosterXDEFINES += \
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Fosterifeq "$(RELEASE)" "noopt"
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan FosterXINCDIRS += \
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan FosterXDEFINES += \
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Fosterifeq "$(RELEASE)" "release"
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan FosterXINCDIRS += \
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan FosterXDEFINES += \
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# These are used by the link target if an NLM is being generated
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# This is used by the link 'name' directive to name the nlm. If left blank
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# TARGET_nlm (see below) will be used.
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan FosterNLM_NAME = case_flt_in
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# This is used by the link '-desc ' directive.
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# If left blank, NLM_NAME will be used.
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan FosterNLM_DESCRIPTION = Apache $(VERSION_STR) Case Filter In Module
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# This is used by the '-threadname' directive. If left blank,
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# NLM_NAME Thread will be used.
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan FosterNLM_THREAD_NAME = $(NLM_NAME) Module
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# If this is specified, it will override VERSION value in
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan FosterNLM_VERSION =
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# If this is specified, it will override the default of 64K
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan FosterNLM_STACK_SIZE = 8192
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# If this is specified it will be used by the link '-entry' directive
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan FosterNLM_ENTRY_SYM =
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# If this is specified it will be used by the link '-exit' directive
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan FosterNLM_EXIT_SYM =
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# If this is specified it will be used by the link '-check' directive
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan FosterNLM_CHECK_SYM =
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# If these are specified it will be used by the link '-flags' directive
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# If this is specified it will be linked in with the XDCData option in the def
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# by setting APACHE_UNIPROC in the environment
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# If there is an NLM target, put it here
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan FosterTARGET_nlm = \
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster $(OBJDIR)/$(NLM_NAME).nlm \
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# If there is an LIB target, put it here
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan FosterTARGET_lib = \
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# These are the OBJ files needed to create the NLM target above.
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# Paths must all use the '/' character
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan FosterFILES_nlm_objs = \
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# These are the LIB files needed to create the NLM target above.
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# These will be added as a library command in the link.opt file.
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan FosterFILES_nlm_libs = \
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster $(PRELUDE) \
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# These are the modules that the above NLM target depends on to load.
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# These will be added as a module command in the link.opt file.
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan FosterFILES_nlm_modules = \
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# If the nlm has a msg file, put it's path here
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan FosterFILE_nlm_msg =
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# If the nlm has a hlp file put it's path here
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan FosterFILE_nlm_hlp =
d0da70ccbba38b773e7a7cc71bc124b06206d201Robert Wapshott# If this is specified, it will override $(NWOS)\copyright.txt.
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan FosterFILE_nlm_copyright =
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# Any additional imports go here
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan FosterFILES_nlm_Ximports = \
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# Any symbols exported to here
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan FosterFILES_nlm_exports = \
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster case_filter_in_module \
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# These are the OBJ files needed to create the LIB target above.
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# Paths must all use the '/' character
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan FosterFILES_lib_objs = \
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# implement targets and dependancies (leave this section alone)
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Fosterlibs :: $(OBJDIR) $(TARGET_lib)
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Fosternlms :: libs $(TARGET_nlm)
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# Updated this target to create necessary directories and copy files to the
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Fosterinstall :: nlms FORCE
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# Any specialized rules here
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# Include the 'tail' makefile that has targets that depend on variables defined
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster# in this makefile
include $(APBUILD)/NWGNUtail.inc