NWGNUmakefile revision 6f2fa094a76c27135a9825ca9492f9db0a1a3bc9
6d6d1bf27fbc05343e916eae8fc418d07fd97787ianh# Declare the sub-directories to be built here
8721697e2aece27b0e738519329f7976c72b27bfjerenkrantz# Get the 'head' of the build environment. This includes default targets and
4a257be29f8aeab984fe5622fa69e0b2aab204d7jerenkrantz# paths to tools
df14f0d3a5191cdd7c4bb5b03acd135d43a6f51brbbinclude $(AP_WORK)\build\NWGNUhead.inc
571760de5e60c0b459cb11be45507b923cd023eejwoolley# build this level's files
bcb6e1be6041dfeb549c8ea8d37f97ad4e90a0c3rbb# Make sure all needed macro's are defined
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb# These directories will be at the beginning of the include list, followed by
cf6bf6c34c936e6a6fe731dbce4a5c3c8bf8e9a3gsteinXINCDIRS += \
09bd86d0db1114ee23eda0a6eb76ca055877a1cftrawick# These flags will come after CFLAGS
bd929c73ef04789b7183b840d8db6e01d03a4d86rbbXCFLAGS += \
af4c982a7cf4515f124935f99a329744035fc699slive# These defines will come after DEFINES
af4c982a7cf4515f124935f99a329744035fc699sliveXDEFINES += \
10270f6f94b2069d0d357805c140a9897449b9ccianh# These flags will be added to the link.opt file
10270f6f94b2069d0d357805c140a9897449b9ccianhXLFLAGS += \
10270f6f94b2069d0d357805c140a9897449b9ccianh# These values will be appended to the correct variables based on the value of
41ce8eb0053365f3ce1a774ba4239fc9e4fae072wroweifeq "$(RELEASE)" "debug"
10270f6f94b2069d0d357805c140a9897449b9ccianhXINCDIRS += \
10270f6f94b2069d0d357805c140a9897449b9ccianhXCFLAGS += \
10270f6f94b2069d0d357805c140a9897449b9ccianhXDEFINES += \
ff42f83cbf31893bcde9712332a8e5ee970f6a74trawickifeq "$(RELEASE)" "noopt"
ff42f83cbf31893bcde9712332a8e5ee970f6a74trawickXINCDIRS += \
ff42f83cbf31893bcde9712332a8e5ee970f6a74trawickXCFLAGS += \
ff42f83cbf31893bcde9712332a8e5ee970f6a74trawickXDEFINES += \
77304e37d675303eef0355fc3bb9a12bb506547ajerenkrantzifeq "$(RELEASE)" "release"
77304e37d675303eef0355fc3bb9a12bb506547ajerenkrantzXINCDIRS += \
41ce8eb0053365f3ce1a774ba4239fc9e4fae072wroweXCFLAGS += \
6d6d1bf27fbc05343e916eae8fc418d07fd97787ianhXDEFINES += \
c00273b9c51c617ede471e9cb95c22420f1227fbbrianpXLFLAGS += \
6758b07b4b79f898b0f56375016cea7da0bfb495wrowe# These are used by the link target if an NLM is being generated
6758b07b4b79f898b0f56375016cea7da0bfb495wrowe# This is used by the link 'name' directive to name the nlm. If left blank
020fe2135763b51ac6221adcc51c3fb6509e7a95brianp# TARGET_nlm (see below) will be used.
54e1babd5a5a56c576eeeace54110150769cc916coar# This is used by the link '-desc ' directive.
77304e37d675303eef0355fc3bb9a12bb506547ajerenkrantz# If left blank, NLM_NAME will be used.
77304e37d675303eef0355fc3bb9a12bb506547ajerenkrantzNLM_DESCRIPTION =
54e1babd5a5a56c576eeeace54110150769cc916coar# This is used by the '-threadname' directive. If left blank,
7fe18c15b669db9d191859695901dc4fcf3829dawrowe# NLM_NAME Thread will be used.
7fe18c15b669db9d191859695901dc4fcf3829dawroweNLM_THREAD_NAME =
976501adbc040220270f7d1d77c4b8373033be69wrowe# If this is specified, it will override VERSION value in
976501adbc040220270f7d1d77c4b8373033be69wrowe# $(AP_WORK)\build\NWGNUenvironment.inc
976501adbc040220270f7d1d77c4b8373033be69wroweNLM_VERSION =
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb# If this is specified, it will override the default of 64K
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbbNLM_STACK_SIZE =
a9a0f66fee736c72861cb2819b67b7784896a37cjerenkrantz# If this is specified it will be used by the link '-entry' directive
a9a0f66fee736c72861cb2819b67b7784896a37cjerenkrantzNLM_ENTRY_SYM =
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz# If this is specified it will be used by the link '-exit' directive
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantzNLM_EXIT_SYM =
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz# If this is specified it will be used by the link '-check' directive
020fe2135763b51ac6221adcc51c3fb6509e7a95brianpNLM_CHECK_SYM =
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz# If these are specified it will be used by the link '-flags' directive
aea283240d4222da5426169a68e307872d240044jerenkrantz# If this is specified it will be linked in with the XDCData option in the def
a9a0f66fee736c72861cb2819b67b7784896a37cjerenkrantz# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
a9a0f66fee736c72861cb2819b67b7784896a37cjerenkrantz# by setting APACHE_UNIPROC in the environment
427af37b52c0ce1d8c85c9966f41d2b055e652facoar# If there is an NLM target, put it here
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaronTARGET_nlm = \
dc098c7ce5d36179c504d09fc722d190683d0262aaron# If LDAPSDK has been defined then build the auth_ldap module
dc098c7ce5d36179c504d09fc722d190683d0262aaronifneq "$(LDAPSDK)" ""
dc098c7ce5d36179c504d09fc722d190683d0262aaronTARGET_nlm += $(OBJDIR)/authldap.nlm \
1832c015282e23772f5518059eea4b54a9d142cfjerenkrantz# If there is an LIB target, put it here
1832c015282e23772f5518059eea4b54a9d142cfjerenkrantzTARGET_lib = \
00452612306ed39e3b0ae309928994ca180b1927jerenkrantz# These are the OBJ files needed to create the NLM target above.
af16c97c97e41b96cce9b10c80277532aea8e414jim# Paths must all use the '/' character
af16c97c97e41b96cce9b10c80277532aea8e414jimFILES_nlm_objs = \
af16c97c97e41b96cce9b10c80277532aea8e414jim# These are the LIB files needed to create the NLM target above.
85b118ad1fe17b9e15de2979bf3adec0850a8284aaron# These will be added as a library command in the link.opt file.
7cf837ace79f9a34ce674894f8f3cd58f9964b0ejerenkrantzFILES_nlm_libs = \
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaron# These are the modules that the above NLM target depends on to load.
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaron# These will be added as a module command in the link.opt file.
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaronFILES_nlm_modules = \
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaron# If the nlm has a msg file, put it's path here
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaronFILE_nlm_msg =
427af37b52c0ce1d8c85c9966f41d2b055e652facoar# If the nlm has a hlp file put it's path here
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaronFILE_nlm_hlp =
02adcc4a00e718d4ee5f8567af789f64e713febdjerenkrantz# If this is specified, it will override $(NWOS)\copyright.txt.
02adcc4a00e718d4ee5f8567af789f64e713febdjerenkrantzFILE_nlm_copyright =
3a335d38ae042442923b87dce21b274a52e7e400brianp# Any additional imports go here
3a335d38ae042442923b87dce21b274a52e7e400brianpFILES_nlm_Ximports = \
262bfa74293f7bc2049b4cd525875c8775711ca2aaron# Any symbols exported to here
262bfa74293f7bc2049b4cd525875c8775711ca2aaronFILES_nlm_exports = \
262bfa74293f7bc2049b4cd525875c8775711ca2aaron# These are the OBJ files needed to create the LIB target above.
262bfa74293f7bc2049b4cd525875c8775711ca2aaron# Paths must all use the '/' character
33f5961d34a8b5390cebad0543b3ebe67830e5d7jerenkrantzFILES_lib_objs = \
33f5961d34a8b5390cebad0543b3ebe67830e5d7jerenkrantz# implement targets and dependancies (leave this section alone)
ff42f83cbf31893bcde9712332a8e5ee970f6a74trawicklibs :: $(OBJDIR) $(TARGET_lib)
ff42f83cbf31893bcde9712332a8e5ee970f6a74trawicknlms :: libs $(TARGET_nlm)
54e1babd5a5a56c576eeeace54110150769cc916coar# Updated this target to create necessary directories and copy files to the
54e1babd5a5a56c576eeeace54110150769cc916coar# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
54e1babd5a5a56c576eeeace54110150769cc916coarinstall :: nlms FORCE
54e1babd5a5a56c576eeeace54110150769cc916coar copy $(OBJDIR)\*.nlm $(INSTALL)\Apache2\modules\*.*
54e1babd5a5a56c576eeeace54110150769cc916coar# Any specialized rules here
54e1babd5a5a56c576eeeace54110150769cc916coar# Include the 'tail' makefile that has targets that depend on variables defined
949aa7bba7f804faa8e6b08cad42a98fc0255d85jerenkrantz# in this makefile
949aa7bba7f804faa8e6b08cad42a98fc0255d85jerenkrantzinclude $(AP_WORK)\build\NWGNUtail.inc