NWGNUauthnano revision cf7ca2f9eaa6523fefcccba4287b91637391fb51
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Make sure all needed macro's are defined
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Get the 'head' of the build environment if necessary. This includes default
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# targets and paths to tools
8a66318e41ed14c5a88130e8c362610e8faa2121Mark Andrewsifndef EnvironmentDefined
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininclude $(AP_WORK)/build/NWGNUhead.inc
8a66318e41ed14c5a88130e8c362610e8faa2121Mark Andrews# These directories will be at the beginning of the include list, followed by
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinXINCDIRS += \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(APR)/include \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(APRUTIL)/include \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(AP_WORK)/include \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These flags will come after CFLAGS
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These defines will come after DEFINES
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinXDEFINES += \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These flags will be added to the link.opt file
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These values will be appended to the correct variables based on the value of
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinifeq "$(RELEASE)" "debug"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinXINCDIRS += \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinXDEFINES += \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinifeq "$(RELEASE)" "noopt"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinXINCDIRS += \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinXDEFINES += \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinifeq "$(RELEASE)" "release"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinXINCDIRS += \
8eea877894ea5bcf5cdd9ca124a8601ad421d753Andreas Gustafsson# These are used by the link target if an NLM is being generated
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# This is used by the link 'name' directive to name the nlm. If left blank
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# TARGET_nlm (see below) will be used.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinNLM_NAME = authnano
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# This is used by the link '-desc ' directive.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If left blank, NLM_NAME will be used.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinNLM_DESCRIPTION = Apache $(VERSION_STR) Anonymous Authentication Module
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# This is used by the '-threadname' directive. If left blank,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# NLM_NAME Thread will be used.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinNLM_THREAD_NAME = AuthAnon Module
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# If this is specified, it will override VERSION value in
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinNLM_VERSION =
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If this is specified, it will override the default of 64K
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinNLM_STACK_SIZE = 8192
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If this is specified it will be used by the link '-entry' directive
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinNLM_ENTRY_SYM =
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If this is specified it will be used by the link '-exit' directive
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinNLM_EXIT_SYM =
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If this is specified it will be used by the link '-check' directive
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinNLM_CHECK_SYM =
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If these are specified it will be used by the link '-flags' directive
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If this is specified it will be linked in with the XDCData option in the def
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# by setting APACHE_UNIPROC in the environment
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If there is an NLM target, put it here
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinTARGET_nlm = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If there is an LIB target, put it here
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinTARGET_lib = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These are the OBJ files needed to create the NLM target above.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Paths must all use the '/' character
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILES_nlm_objs = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These are the LIB files needed to create the NLM target above.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These will be added as a library command in the link.opt file.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILES_nlm_libs = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(PRELUDE) \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These are the modules that the above NLM target depends on to load.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These will be added as a module command in the link.opt file.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILES_nlm_modules = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If the nlm has a msg file, put it's path here
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILE_nlm_msg =
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If the nlm has a hlp file put it's path here
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILE_nlm_hlp =
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If this is specified, it will override $(NWOS)\copyright.txt.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILE_nlm_copyright =
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Any additional imports go here
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILES_nlm_Ximports = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Any symbols exported to here
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILES_nlm_exports = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein authn_anon_module \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These are the OBJ files needed to create the LIB target above.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Paths must all use the '/' character
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILES_lib_objs = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# implement targets and dependancies (leave this section alone)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinlibs :: $(OBJDIR) $(TARGET_lib)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinnlms :: libs $(TARGET_nlm)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Updated this target to create necessary directories and copy files to the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
include $(APBUILD)/NWGNUtail.inc