NWGNUauthnano revision 70953fb44a7140fe206c3a5f011e24209c8c5c6a
9bff67898d55cddfcec9ce30cc2b1bb6211ec691David Lawrence# Make sure all needed macro's are defined
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# Get the 'head' of the build environment if necessary. This includes default
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# targets and paths to tools
bf668d00172e2308da0e01048284d7efa85495b1David Lawrenceifndef EnvironmentDefined
bf668d00172e2308da0e01048284d7efa85495b1David Lawrenceinclude $(AP_WORK)\build\NWGNUhead.inc
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# These directories will be at the beginning of the include list, followed by
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence $(AP_WORK)/include \
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence $(APR)/include \
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence $(APRUTIL)/include \
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# These flags will come after CFLAGS
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# These defines will come after DEFINES
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# These flags will be added to the link.opt file
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# These values will be appended to the correct variables based on the value of
bf668d00172e2308da0e01048284d7efa85495b1David Lawrenceifeq "$(RELEASE)" "debug"
bf668d00172e2308da0e01048284d7efa85495b1David Lawrenceifeq "$(RELEASE)" "noopt"
1641377cbaa7aac054bfa6b5c6172ed64044e020David Lawrenceifeq "$(RELEASE)" "release"
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# These are used by the link target if an NLM is being generated
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# This is used by the link 'name' directive to name the nlm. If left blank
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# TARGET_nlm (see below) will be used.
bf668d00172e2308da0e01048284d7efa85495b1David LawrenceNLM_NAME = authnano
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# This is used by the link '-desc ' directive.
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# If left blank, NLM_NAME will be used.
bf668d00172e2308da0e01048284d7efa85495b1David LawrenceNLM_DESCRIPTION = Apache $(VERSION_STR) Anonymous Authentication Module
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# This is used by the '-threadname' directive. If left blank,
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# NLM_NAME Thread will be used.
bf668d00172e2308da0e01048284d7efa85495b1David LawrenceNLM_THREAD_NAME = AuthAnon Module
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# If this is specified, it will override VERSION value in
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# $(AP_WORK)\build\NWGNUenvironment.inc
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# If this is specified, it will override the default of 64K
bf668d00172e2308da0e01048284d7efa85495b1David LawrenceNLM_STACK_SIZE = 8192
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# If this is specified it will be used by the link '-entry' directive
bf668d00172e2308da0e01048284d7efa85495b1David LawrenceNLM_ENTRY_SYM = _LibCPrelude
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# If this is specified it will be used by the link '-exit' directive
29e23c0b3eec2a7c4b0f6bfa3f9ff9e17e72e48dDavid LawrenceNLM_EXIT_SYM = _LibCPostlude
29e23c0b3eec2a7c4b0f6bfa3f9ff9e17e72e48dDavid Lawrence# If this is specified it will be used by the link '-check' directive
29e23c0b3eec2a7c4b0f6bfa3f9ff9e17e72e48dDavid LawrenceNLM_CHECK_SYM =
29e23c0b3eec2a7c4b0f6bfa3f9ff9e17e72e48dDavid Lawrence# If these are specified it will be used by the link '-flags' directive
29e23c0b3eec2a7c4b0f6bfa3f9ff9e17e72e48dDavid LawrenceNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
29e23c0b3eec2a7c4b0f6bfa3f9ff9e17e72e48dDavid Lawrence# If this is specified it will be linked in with the XDCData option in the def
29e23c0b3eec2a7c4b0f6bfa3f9ff9e17e72e48dDavid Lawrence# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
29e23c0b3eec2a7c4b0f6bfa3f9ff9e17e72e48dDavid Lawrence# by setting APACHE_UNIPROC in the environment
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# If there is an NLM target, put it here
bf668d00172e2308da0e01048284d7efa85495b1David LawrenceTARGET_nlm = \
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# If there is an LIB target, put it here
bf668d00172e2308da0e01048284d7efa85495b1David LawrenceTARGET_lib = \
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# These are the OBJ files needed to create the NLM target above.
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# Paths must all use the '/' character
bf668d00172e2308da0e01048284d7efa85495b1David LawrenceFILES_nlm_objs = \
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# These are the LIB files needed to create the NLM target above.
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# These will be added as a library command in the link.opt file.
bf668d00172e2308da0e01048284d7efa85495b1David LawrenceFILES_nlm_libs = \
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# These are the modules that the above NLM target depends on to load.
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# These will be added as a module command in the link.opt file.
bf668d00172e2308da0e01048284d7efa85495b1David LawrenceFILES_nlm_modules = \
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# If the nlm has a msg file, put it's path here
bf668d00172e2308da0e01048284d7efa85495b1David LawrenceFILE_nlm_msg =
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# If the nlm has a hlp file put it's path here
bf668d00172e2308da0e01048284d7efa85495b1David LawrenceFILE_nlm_hlp =
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# If this is specified, it will override $(NWOS)\copyright.txt.
bf668d00172e2308da0e01048284d7efa85495b1David LawrenceFILE_nlm_copyright =
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# Any additional imports go here
bf668d00172e2308da0e01048284d7efa85495b1David LawrenceFILES_nlm_Ximports = \
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# Any symbols exported to here
bf668d00172e2308da0e01048284d7efa85495b1David LawrenceFILES_nlm_exports = \
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence authn_anon_module \
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# These are the OBJ files needed to create the LIB target above.
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# Paths must all use the '/' character
bf668d00172e2308da0e01048284d7efa85495b1David LawrenceFILES_lib_objs = \
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# implement targets and dependancies (leave this section alone)
bf668d00172e2308da0e01048284d7efa85495b1David Lawrencelibs :: $(OBJDIR) $(TARGET_lib)
bf668d00172e2308da0e01048284d7efa85495b1David Lawrencenlms :: libs $(TARGET_nlm)
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# Updated this target to create necessary directories and copy files to the
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
bf668d00172e2308da0e01048284d7efa85495b1David Lawrenceinstall :: nlms FORCE
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# Any specialized rules here
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# Include the 'tail' makefile that has targets that depend on variables defined
bf668d00172e2308da0e01048284d7efa85495b1David Lawrence# in this makefile
bf668d00172e2308da0e01048284d7efa85495b1David Lawrenceinclude $(AP_WORK)\build\NWGNUtail.inc