NWGNUauthbasc revision 3c937b528ca923d5b51e63def9f888af4a77bb40
1ccbfca64ae86ace521053773001cb995352f96fBob Halley# Make sure all needed macro's are defined
1ccbfca64ae86ace521053773001cb995352f96fBob Halley# Get the 'head' of the build environment if necessary. This includes default
1ccbfca64ae86ace521053773001cb995352f96fBob Halley# targets and paths to tools
1ccbfca64ae86ace521053773001cb995352f96fBob Halleyifndef EnvironmentDefined
1ccbfca64ae86ace521053773001cb995352f96fBob Halleyinclude $(AP_WORK)\build\NWGNUhead.inc
1ccbfca64ae86ace521053773001cb995352f96fBob Halley# These directories will be at the beginning of the include list, followed by
1b90a27c4dc5dc630041d0863d45a796a87d861dBob HalleyXINCDIRS += \
1b90a27c4dc5dc630041d0863d45a796a87d861dBob Halley $(AP_WORK)/include \
1ccbfca64ae86ace521053773001cb995352f96fBob Halley# These flags will come after CFLAGS
1b90a27c4dc5dc630041d0863d45a796a87d861dBob Halley# These defines will come after DEFINES
1b90a27c4dc5dc630041d0863d45a796a87d861dBob HalleyXDEFINES += \
e5c2e16bb21387962f0d04567d44d1a34cd83b4fBob Halley# These flags will be added to the link.opt file
e371b7a70f36949aa7885d554bf40e4ae89cc541Bob Halley# These values will be appended to the correct variables based on the value of
e371b7a70f36949aa7885d554bf40e4ae89cc541Bob Halleyifeq "$(RELEASE)" "debug"
1ccbfca64ae86ace521053773001cb995352f96fBob HalleyXINCDIRS += \
e371b7a70f36949aa7885d554bf40e4ae89cc541Bob HalleyXDEFINES += \
1ccbfca64ae86ace521053773001cb995352f96fBob Halleyifeq "$(RELEASE)" "noopt"
e371b7a70f36949aa7885d554bf40e4ae89cc541Bob HalleyXINCDIRS += \
4dfbac743493fc56a1ae391130b27f9517acb803Bob HalleyXDEFINES += \
e371b7a70f36949aa7885d554bf40e4ae89cc541Bob Halleyifeq "$(RELEASE)" "release"
ca67883a666bdf314d3da958d5195e7215b1f797Bob HalleyXINCDIRS += \
e371b7a70f36949aa7885d554bf40e4ae89cc541Bob HalleyXDEFINES += \
c95819d75d6ac0e5cc9cb5848445c727eec869dbBob Halley# These are used by the link target if an NLM is being generated
c95819d75d6ac0e5cc9cb5848445c727eec869dbBob Halley# This is used by the link 'name' directive to name the nlm. If left blank
c95819d75d6ac0e5cc9cb5848445c727eec869dbBob Halley# TARGET_nlm (see below) will be used.
c95819d75d6ac0e5cc9cb5848445c727eec869dbBob HalleyNLM_NAME = authbasc
1ccbfca64ae86ace521053773001cb995352f96fBob Halley# This is used by the link '-desc ' directive.
1ccbfca64ae86ace521053773001cb995352f96fBob Halley# If left blank, NLM_NAME will be used.
1ccbfca64ae86ace521053773001cb995352f96fBob HalleyNLM_DESCRIPTION = Basic Authentication Module
e371b7a70f36949aa7885d554bf40e4ae89cc541Bob Halley# This is used by the '-threadname' directive. If left blank,
e371b7a70f36949aa7885d554bf40e4ae89cc541Bob Halley# NLM_NAME Thread will be used.
e371b7a70f36949aa7885d554bf40e4ae89cc541Bob HalleyNLM_THREAD_NAME = AuthBasic Module
e371b7a70f36949aa7885d554bf40e4ae89cc541Bob Halley# If this is specified, it will override VERSION value in
e371b7a70f36949aa7885d554bf40e4ae89cc541Bob Halley# $(AP_WORK)\build\NWGNUenvironment.inc
f2fbcd91954444b0ede9c049a888bfae29ce1fe1Bob HalleyNLM_VERSION =
e371b7a70f36949aa7885d554bf40e4ae89cc541Bob Halley# If this is specified, it will override the default of 64K
e371b7a70f36949aa7885d554bf40e4ae89cc541Bob HalleyNLM_STACK_SIZE = 8192
e371b7a70f36949aa7885d554bf40e4ae89cc541Bob Halley# If this is specified it will be used by the link '-entry' directive
1ccbfca64ae86ace521053773001cb995352f96fBob HalleyNLM_ENTRY_SYM = _LibCPrelude
1ccbfca64ae86ace521053773001cb995352f96fBob Halley# If this is specified it will be used by the link '-exit' directive
1ccbfca64ae86ace521053773001cb995352f96fBob HalleyNLM_EXIT_SYM = _LibCPostlude
1b90a27c4dc5dc630041d0863d45a796a87d861dBob Halley# If this is specified it will be used by the link '-check' directive
1ccbfca64ae86ace521053773001cb995352f96fBob HalleyNLM_CHECK_SYM =
e371b7a70f36949aa7885d554bf40e4ae89cc541Bob Halley# If these are specified it will be used by the link '-flags' directive
e371b7a70f36949aa7885d554bf40e4ae89cc541Bob HalleyNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
e371b7a70f36949aa7885d554bf40e4ae89cc541Bob Halley# If this is specified it will be linked in with the XDCData option in the def
1ccbfca64ae86ace521053773001cb995352f96fBob Halley# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
1ccbfca64ae86ace521053773001cb995352f96fBob Halley# by setting APACHE_UNIPROC in the environment
1b90a27c4dc5dc630041d0863d45a796a87d861dBob Halley# If there is an NLM target, put it here
1b90a27c4dc5dc630041d0863d45a796a87d861dBob HalleyTARGET_nlm = \
1b90a27c4dc5dc630041d0863d45a796a87d861dBob Halley# If there is an LIB target, put it here
1b90a27c4dc5dc630041d0863d45a796a87d861dBob HalleyTARGET_lib = \
1b90a27c4dc5dc630041d0863d45a796a87d861dBob Halley# These are the OBJ files needed to create the NLM target above.
1b90a27c4dc5dc630041d0863d45a796a87d861dBob Halley# Paths must all use the '/' character
1b90a27c4dc5dc630041d0863d45a796a87d861dBob HalleyFILES_nlm_objs = \
0b1f55d73f2561cbfedf096c7986d204593bda2fBob Halley# These are the LIB files needed to create the NLM target above.
0b1f55d73f2561cbfedf096c7986d204593bda2fBob Halley# These will be added as a library command in the link.opt file.
0b1f55d73f2561cbfedf096c7986d204593bda2fBob HalleyFILES_nlm_libs = \
1c724c986de1449e3b2f1eeae4c724dc0d97603cBob Halley# These are the modules that the above NLM target depends on to load.
e5c2e16bb21387962f0d04567d44d1a34cd83b4fBob Halley# These will be added as a module command in the link.opt file.
b7ff8128f0366d02ef9b0eb8fbba0b17ea7dbe60Bob HalleyFILES_nlm_modules = \
b7ff8128f0366d02ef9b0eb8fbba0b17ea7dbe60Bob Halley# If the nlm has a msg file, put it's path here
b7ff8128f0366d02ef9b0eb8fbba0b17ea7dbe60Bob HalleyFILE_nlm_msg =
b7ff8128f0366d02ef9b0eb8fbba0b17ea7dbe60Bob Halley# If the nlm has a hlp file put it's path here
b7ff8128f0366d02ef9b0eb8fbba0b17ea7dbe60Bob HalleyFILE_nlm_hlp =
b7ff8128f0366d02ef9b0eb8fbba0b17ea7dbe60Bob Halley# If this is specified, it will override $(NWOS)\copyright.txt.
e5c2e16bb21387962f0d04567d44d1a34cd83b4fBob HalleyFILE_nlm_copyright =
b7ff8128f0366d02ef9b0eb8fbba0b17ea7dbe60Bob Halley# Any additional imports go here
b7ff8128f0366d02ef9b0eb8fbba0b17ea7dbe60Bob HalleyFILES_nlm_Ximports = \
1b90a27c4dc5dc630041d0863d45a796a87d861dBob Halley# Any symbols exported to here
1b90a27c4dc5dc630041d0863d45a796a87d861dBob HalleyFILES_nlm_exports = \
1b90a27c4dc5dc630041d0863d45a796a87d861dBob Halley auth_basic_module \
1b90a27c4dc5dc630041d0863d45a796a87d861dBob Halley authn_register_provider \
1b90a27c4dc5dc630041d0863d45a796a87d861dBob Halley authn_lookup_provider \
1b90a27c4dc5dc630041d0863d45a796a87d861dBob Halley authz_register_provider \
1b90a27c4dc5dc630041d0863d45a796a87d861dBob Halley authz_lookup_provider \
1b90a27c4dc5dc630041d0863d45a796a87d861dBob Halley# These are the OBJ files needed to create the LIB target above.
1b90a27c4dc5dc630041d0863d45a796a87d861dBob Halley# Paths must all use the '/' character
1b90a27c4dc5dc630041d0863d45a796a87d861dBob HalleyFILES_lib_objs = \
c1737c417d1247ad95b7022324ca445b610873ecBob Halley# implement targets and dependancies (leave this section alone)
1b90a27c4dc5dc630041d0863d45a796a87d861dBob Halleylibs :: $(OBJDIR) $(TARGET_lib)
c1737c417d1247ad95b7022324ca445b610873ecBob Halleynlms :: libs $(TARGET_nlm)
1b90a27c4dc5dc630041d0863d45a796a87d861dBob Halley# Updated this target to create necessary directories and copy files to the
e371b7a70f36949aa7885d554bf40e4ae89cc541Bob Halley# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
e371b7a70f36949aa7885d554bf40e4ae89cc541Bob Halleyinstall :: nlms FORCE
e371b7a70f36949aa7885d554bf40e4ae89cc541Bob Halley# Any specialized rules here
e371b7a70f36949aa7885d554bf40e4ae89cc541Bob Halley# Include the 'tail' makefile that has targets that depend on variables defined
e371b7a70f36949aa7885d554bf40e4ae89cc541Bob Halley# in this makefile
e371b7a70f36949aa7885d554bf40e4ae89cc541Bob Halleyinclude $(AP_WORK)\build\NWGNUtail.inc