NWGNUuserdir revision 8ffac2c334103c0336602aaede650cb578611151
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
a6ca100924894cdd8e2b791d75a8cef32b1fba1fTinderbox User# Make sure all needed macro's are defined
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# Get the 'head' of the build environment if necessary. This includes default
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# targets and paths to tools
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Huntifndef EnvironmentDefined
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Huntinclude $(AP_WORK)/build/NWGNUhead.inc
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Huntendif
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# These directories will be at the beginning of the include list, followed by
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# INCDIRS
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntXINCDIRS += \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(APR)/include \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(APRUTIL)/include \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(AP_WORK)/include \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt $(AP_WORK)/modules/http \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(NWOS) \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(EOLIST)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# These flags will come after CFLAGS
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntXCFLAGS += \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt $(EOLIST)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# These defines will come after DEFINES
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
f02194c0538094556090ded7964df2b72771d85eJeremy C. ReedXDEFINES += \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt $(EOLIST)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# These flags will be added to the link.opt file
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
f1c89cb4f5c72c54bb67dc48cd6f2b332eab9e92Automatic UpdaterXLFLAGS += \
207cee019eb5cbbe7c905f7c52f7b5d11f8c0305Automatic Updater $(EOLIST)
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User
a6ca100924894cdd8e2b791d75a8cef32b1fba1fTinderbox User#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# These values will be appended to the correct variables based on the value of
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# RELEASE
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Huntifeq "$(RELEASE)" "debug"
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntXINCDIRS += \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(EOLIST)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntXCFLAGS += \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(EOLIST)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntXDEFINES += \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(EOLIST)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntXLFLAGS += \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(EOLIST)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntendif
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntifeq "$(RELEASE)" "noopt"
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntXINCDIRS += \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(EOLIST)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntXCFLAGS += \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt $(EOLIST)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark AndrewsXDEFINES += \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt $(EOLIST)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntXLFLAGS += \
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Hunt $(EOLIST)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Huntendif
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Huntifeq "$(RELEASE)" "release"
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntXINCDIRS += \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt $(EOLIST)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntXCFLAGS += \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt $(EOLIST)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntXDEFINES += \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt $(EOLIST)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntXLFLAGS += \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt $(EOLIST)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Huntendif
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
d7be2b79ed0934483d550e17e2bd09de4eaff8f5Evan Hunt#
d7be2b79ed0934483d550e17e2bd09de4eaff8f5Evan Hunt# These are used by the link target if an NLM is being generated
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# This is used by the link 'name' directive to name the nlm. If left blank
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# TARGET_nlm (see below) will be used.
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntNLM_NAME = userdir
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark Andrews
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# This is used by the link '-desc ' directive.
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# If left blank, NLM_NAME will be used.
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntNLM_DESCRIPTION = Apache $(VERSION_STR) User Dir Module
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# This is used by the '-threadname' directive. If left blank,
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# NLM_NAME Thread will be used.
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntNLM_THREAD_NAME = UserDir Module
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark Andrews
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark Andrews#
10a759cee69dcc3ce3a4d65e6e263c66e7f60ee8Evan Hunt# If this is specified, it will override VERSION value in
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# $(AP_WORK)/build/NWGNUenvironment.inc
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntNLM_VERSION =
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark Andrews
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# If this is specified, it will override the default of 64K
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntNLM_STACK_SIZE = 8192
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# If this is specified it will be used by the link '-entry' directive
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan HuntNLM_ENTRY_SYM =
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan Hunt
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan Hunt#
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan Hunt# If this is specified it will be used by the link '-exit' directive
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan Hunt#
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan HuntNLM_EXIT_SYM =
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan Hunt
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan Hunt#
03f979494f5c80e05a72f876914d9d44085fbd6aEvan Hunt# If this is specified it will be used by the link '-check' directive
03f979494f5c80e05a72f876914d9d44085fbd6aEvan Hunt#
03f979494f5c80e05a72f876914d9d44085fbd6aEvan HuntNLM_CHECK_SYM =
03f979494f5c80e05a72f876914d9d44085fbd6aEvan Hunt
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan Hunt#
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan Hunt# If these are specified it will be used by the link '-flags' directive
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan Hunt#
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan HuntNLM_FLAGS =
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# If this is specified it will be linked in with the XDCData option in the def
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# by setting APACHE_UNIPROC in the environment
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntXDCDATA =
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark Andrews#
42782931073786f98d3d0a617351db40066949a4Mukund Sivaraman# If there is an NLM target, put it here
42782931073786f98d3d0a617351db40066949a4Mukund Sivaraman#
42782931073786f98d3d0a617351db40066949a4Mukund SivaramanTARGET_nlm = \
42782931073786f98d3d0a617351db40066949a4Mukund Sivaraman $(OBJDIR)/userdir.nlm \
42782931073786f98d3d0a617351db40066949a4Mukund Sivaraman $(EOLIST)
42782931073786f98d3d0a617351db40066949a4Mukund Sivaraman
42782931073786f98d3d0a617351db40066949a4Mukund Sivaraman#
42782931073786f98d3d0a617351db40066949a4Mukund Sivaraman# If there is an LIB target, put it here
42782931073786f98d3d0a617351db40066949a4Mukund Sivaraman#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntTARGET_lib = \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt $(EOLIST)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# These are the OBJ files needed to create the NLM target above.
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# Paths must all use the '/' character
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntFILES_nlm_objs = \
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont $(OBJDIR)/mod_userdir.o \
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont $(EOLIST)
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont#
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont# These are the LIB files needed to create the NLM target above.
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt# These will be added as a library command in the link.opt file.
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt#
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan HuntFILES_nlm_libs = \
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt libcpre.o \
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt $(EOLIST)
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt#
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt# These are the modules that the above NLM target depends on to load.
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt# These will be added as a module command in the link.opt file.
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont#
8b78c993cb475cc94e88560941b28c37684789d9Francis DupontFILES_nlm_modules = \
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont aprlib \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt libc \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(EOLIST)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark Andrews# If the nlm has a msg file, put it's path here
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntFILE_nlm_msg =
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
eab9975bcf5830a73f18ed8f320ae18ea32775eeEvan Hunt#
eab9975bcf5830a73f18ed8f320ae18ea32775eeEvan Hunt# If the nlm has a hlp file put it's path here
eab9975bcf5830a73f18ed8f320ae18ea32775eeEvan Hunt#
eab9975bcf5830a73f18ed8f320ae18ea32775eeEvan HuntFILE_nlm_hlp =
eab9975bcf5830a73f18ed8f320ae18ea32775eeEvan Hunt
a165a17a81ff3285f4f4d79785fafb465e626183Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# If this is specified, it will override $(NWOS)\copyright.txt.
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntFILE_nlm_copyright =
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# Any additional imports go here
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntFILES_nlm_Ximports = \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt @aprlib.imp \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt @httpd.imp \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt @libc.imp \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt $(EOLIST)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# Any symbols exported to here
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntFILES_nlm_exports = \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt userdir_module \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt $(EOLIST)
eec29cfd40361662b25bad50e1b94f7738a8fea0Jeremy Reed
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# These are the OBJ files needed to create the LIB target above.
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# Paths must all use the '/' character
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntFILES_lib_objs = \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt $(EOLIST)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# implement targets and dependancies (leave this section alone)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Huntlibs :: $(OBJDIR) $(TARGET_lib)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Huntnlms :: libs $(TARGET_nlm)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# Updated this target to create necessary directories and copy files to the
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Hunt# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Huntinstall :: nlms FORCE
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Hunt
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Hunt#
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Hunt# Any specialized rules here
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# Include the 'tail' makefile that has targets that depend on variables defined
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# in this makefile
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Huntinclude $(APBUILD)/NWGNUtail.inc
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Hunt
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Hunt