NWGNUauthnfil revision 44f575c8cb19a7a5cd61664a7848be6bc197df02
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Make sure all needed macro's are defined
71cef386fae61275b03e203825680b39fedaa8c6Tinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User#
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Get the 'head' of the build environment if necessary. This includes default
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# targets and paths to tools
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsifndef EnvironmentDefined
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude $(AP_WORK)/build/NWGNUhead.inc
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsendif
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# These directories will be at the beginning of the include list, followed by
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# INCDIRS
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsXINCDIRS += \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(APR)/include \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(APRUTIL)/include \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(SRC)/include \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(NWOS) \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(EOLIST)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# These flags will come after CFLAGS
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsXCFLAGS += \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(EOLIST)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# These defines will come after DEFINES
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsXDEFINES += \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(EOLIST)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# These flags will be added to the link.opt file
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserXLFLAGS += \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(EOLIST)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# These values will be appended to the correct variables based on the value of
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# RELEASE
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userifeq "$(RELEASE)" "debug"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsXINCDIRS += \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(EOLIST)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsXCFLAGS += \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(EOLIST)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserXDEFINES += \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(EOLIST)
ea640e04eae220b5e569f188563eb1f204c7c77eTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserXLFLAGS += \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(EOLIST)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userendif
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userifeq "$(RELEASE)" "noopt"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserXINCDIRS += \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(EOLIST)
7e71f05d8643aca84914437c900cb716444507e4Tinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserXCFLAGS += \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(EOLIST)
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntXDEFINES += \
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater $(EOLIST)
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic UpdaterXLFLAGS += \
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater $(EOLIST)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userendif
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updaterifeq "$(RELEASE)" "release"
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic UpdaterXINCDIRS += \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(EOLIST)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntXCFLAGS += \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(EOLIST)
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsXDEFINES += \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(EOLIST)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserXLFLAGS += \
7e71f05d8643aca84914437c900cb716444507e4Tinderbox User $(EOLIST)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userendif
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
f7b41fd9291b8f4dba27e2b57e1d93f0913a4f1dMark Andrews#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# These are used by the link target if an NLM is being generated
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# This is used by the link 'name' directive to name the nlm. If left blank
f7b41fd9291b8f4dba27e2b57e1d93f0913a4f1dMark Andrews# TARGET_nlm (see below) will be used.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserNLM_NAME = authnfil
ea640e04eae220b5e569f188563eb1f204c7c77eTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# This is used by the link '-desc ' directive.
ea640e04eae220b5e569f188563eb1f204c7c77eTinderbox User# If left blank, NLM_NAME will be used.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserNLM_DESCRIPTION = Apache $(VERSION_STR) File Authentication Module
ea640e04eae220b5e569f188563eb1f204c7c77eTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# This is used by the '-threadname' directive. If left blank,
ea640e04eae220b5e569f188563eb1f204c7c77eTinderbox User# NLM_NAME Thread will be used.
ea640e04eae220b5e569f188563eb1f204c7c77eTinderbox User#
ea640e04eae220b5e569f188563eb1f204c7c77eTinderbox UserNLM_THREAD_NAME = AuthnFile Module
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If this is specified, it will override VERSION value in
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# $(AP_WORK)/build/NWGNUenvironment.inc
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
d85c83c4144116fbc2734a6a623a888fea1a307fAutomatic UpdaterNLM_VERSION =
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# If this is specified, it will override the default of 64K
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsNLM_STACK_SIZE = 8192
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If this is specified it will be used by the link '-entry' directive
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserNLM_ENTRY_SYM =
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# If this is specified it will be used by the link '-exit' directive
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox User#
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox UserNLM_EXIT_SYM =
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox User
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox User#
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox User# If this is specified it will be used by the link '-check' directive
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox User#
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox UserNLM_CHECK_SYM =
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If these are specified it will be used by the link '-flags' directive
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserNLM_FLAGS =
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark Andrews
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark Andrews#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# If this is specified it will be linked in with the XDCData option in the def
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# by setting APACHE_UNIPROC in the environment
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserXDCDATA =
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# If there is an NLM target, put it here
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsTARGET_nlm = \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(OBJDIR)/authnfil.nlm \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(EOLIST)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7e71f05d8643aca84914437c900cb716444507e4Tinderbox User# If there is an LIB target, put it here
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserTARGET_lib = \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(EOLIST)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# These are the OBJ files needed to create the NLM target above.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Paths must all use the '/' character
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7e71f05d8643aca84914437c900cb716444507e4Tinderbox UserFILES_nlm_objs = \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(OBJDIR)/mod_authn_file.o \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(EOLIST)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# These are the LIB files needed to create the NLM target above.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# These will be added as a library command in the link.opt file.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsFILES_nlm_libs = \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(PRELUDE) \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(EOLIST)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# These are the modules that the above NLM target depends on to load.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# These will be added as a module command in the link.opt file.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsFILES_nlm_modules = \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt aprlib \
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User libc \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(EOLIST)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If the nlm has a msg file, put it's path here
4abdfc917e6635a7c81d1f931a0c79227e72d025Mark Andrews#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntFILE_nlm_msg =
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
4abdfc917e6635a7c81d1f931a0c79227e72d025Mark Andrews#
4abdfc917e6635a7c81d1f931a0c79227e72d025Mark Andrews# If the nlm has a hlp file put it's path here
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsFILE_nlm_hlp =
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
c313914d0e66b20969215e519bbf2ab4ecf39512Tinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If this is specified, it will override $(NWOS)\copyright.txt.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
FILE_nlm_copyright =
#
# Any additional imports go here
#
FILES_nlm_Ximports = \
@aprlib.imp \
@httpd.imp \
@libc.imp \
$(EOLIST)
#
# Any symbols exported to here
#
FILES_nlm_exports = \
authn_file_module \
$(EOLIST)
#
# These are the OBJ files needed to create the LIB target above.
# Paths must all use the '/' character
#
FILES_lib_objs = \
$(EOLIST)
#
# implement targets and dependancies (leave this section alone)
#
libs :: $(OBJDIR) $(TARGET_lib)
nlms :: libs $(TARGET_nlm)
#
# Updated this target to create necessary directories and copy files to the
# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
#
install :: nlms FORCE
#
# Any specialized rules here
#
#
# Include the 'tail' makefile that has targets that depend on variables defined
# in this makefile
#
include $(APBUILD)/NWGNUtail.inc