NWGNUmakefile revision 6f2fa094a76c27135a9825ca9492f9db0a1a3bc9
7f007e36bec06aba6b3a0f84a64f2abf99edfcd8gstein#
6d6d1bf27fbc05343e916eae8fc418d07fd97787ianh# Declare the sub-directories to be built here
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj
2a6c49cfaef5979a5a06098f3ce987cd76769409manojSUBDIRS = \
a8d5ccbcbde8cb6cf3a9dcf2eb05f393ab76baa9ianh $(EOLIST)
694514f7e6e99917e084943e3a05950b3c7c106ajerenkrantz
4214e98fc9045e5010e66f9a967bd6d68f40d342aaron#
8721697e2aece27b0e738519329f7976c72b27bfjerenkrantz# Get the 'head' of the build environment. This includes default targets and
4a257be29f8aeab984fe5622fa69e0b2aab204d7jerenkrantz# paths to tools
91cacb801f6c0215b38322f6d2fc58cbfedfecfbjerenkrantz#
91cacb801f6c0215b38322f6d2fc58cbfedfecfbjerenkrantz
df14f0d3a5191cdd7c4bb5b03acd135d43a6f51brbbinclude $(AP_WORK)\build\NWGNUhead.inc
df14f0d3a5191cdd7c4bb5b03acd135d43a6f51brbb
ab71b233b3a36489e44a7b061c48293be0b17788jwoolley#
571760de5e60c0b459cb11be45507b923cd023eejwoolley# build this level's files
571760de5e60c0b459cb11be45507b923cd023eejwoolley
9180a5933673ffb1af633c255ceee029340f3b1erbb#
bcb6e1be6041dfeb549c8ea8d37f97ad4e90a0c3rbb# Make sure all needed macro's are defined
9bd71e35f5d26d26d23fe3a677401828e842ed72wrowe#
2900ab946a2d76b73a14cebfe2985d253f01c967stoddard
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb#
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb# These directories will be at the beginning of the include list, followed by
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb# INCDIRS
b876b7bcf0ce3d232da723246d709e8dbbfe8762rbb#
cf6bf6c34c936e6a6fe731dbce4a5c3c8bf8e9a3gsteinXINCDIRS += \
35330e0d79ceb8027223bbb8330a381b1f989d6etrawick $(EOLIST)
6f6f4a4bca281779d196acbdd5c017bb90858305trawick
8dd4618c4709236b4ea297d7250d282e463ce2d8rbb#
09bd86d0db1114ee23eda0a6eb76ca055877a1cftrawick# These flags will come after CFLAGS
2deb319e6b3de239f45c16a3e9e836d44f1f7108rbb#
bd929c73ef04789b7183b840d8db6e01d03a4d86rbbXCFLAGS += \
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj $(EOLIST)
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj
af4c982a7cf4515f124935f99a329744035fc699slive#
af4c982a7cf4515f124935f99a329744035fc699slive# These defines will come after DEFINES
af4c982a7cf4515f124935f99a329744035fc699slive#
af4c982a7cf4515f124935f99a329744035fc699sliveXDEFINES += \
af4c982a7cf4515f124935f99a329744035fc699slive $(EOLIST)
af4c982a7cf4515f124935f99a329744035fc699slive
af4c982a7cf4515f124935f99a329744035fc699slive#
10270f6f94b2069d0d357805c140a9897449b9ccianh# These flags will be added to the link.opt file
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
10270f6f94b2069d0d357805c140a9897449b9ccianhXLFLAGS += \
10270f6f94b2069d0d357805c140a9897449b9ccianh $(EOLIST)
4e3b83f6caecb85d4c139a440254cfa2f98e8960ianh
4e3b83f6caecb85d4c139a440254cfa2f98e8960ianh#
10270f6f94b2069d0d357805c140a9897449b9ccianh# These values will be appended to the correct variables based on the value of
41ce8eb0053365f3ce1a774ba4239fc9e4fae072wrowe# RELEASE
a908203473820d096b31fc0f349711d3092ae684lars#
41ce8eb0053365f3ce1a774ba4239fc9e4fae072wroweifeq "$(RELEASE)" "debug"
10270f6f94b2069d0d357805c140a9897449b9ccianhXINCDIRS += \
10270f6f94b2069d0d357805c140a9897449b9ccianh $(EOLIST)
10270f6f94b2069d0d357805c140a9897449b9ccianh
10270f6f94b2069d0d357805c140a9897449b9ccianhXCFLAGS += \
10270f6f94b2069d0d357805c140a9897449b9ccianh $(EOLIST)
10270f6f94b2069d0d357805c140a9897449b9ccianh
10270f6f94b2069d0d357805c140a9897449b9ccianhXDEFINES += \
10270f6f94b2069d0d357805c140a9897449b9ccianh $(EOLIST)
10270f6f94b2069d0d357805c140a9897449b9ccianh
58e0ed3d1f052d695078b1d2a61c19246776eab5jerenkrantzXLFLAGS += \
10270f6f94b2069d0d357805c140a9897449b9ccianh $(EOLIST)
10270f6f94b2069d0d357805c140a9897449b9ccianhendif
ff42f83cbf31893bcde9712332a8e5ee970f6a74trawick
ff42f83cbf31893bcde9712332a8e5ee970f6a74trawickifeq "$(RELEASE)" "noopt"
ff42f83cbf31893bcde9712332a8e5ee970f6a74trawickXINCDIRS += \
ff42f83cbf31893bcde9712332a8e5ee970f6a74trawick $(EOLIST)
ff42f83cbf31893bcde9712332a8e5ee970f6a74trawick
ff42f83cbf31893bcde9712332a8e5ee970f6a74trawickXCFLAGS += \
ff42f83cbf31893bcde9712332a8e5ee970f6a74trawick $(EOLIST)
ff42f83cbf31893bcde9712332a8e5ee970f6a74trawick
ff42f83cbf31893bcde9712332a8e5ee970f6a74trawickXDEFINES += \
ff42f83cbf31893bcde9712332a8e5ee970f6a74trawick $(EOLIST)
ff42f83cbf31893bcde9712332a8e5ee970f6a74trawick
77304e37d675303eef0355fc3bb9a12bb506547ajerenkrantzXLFLAGS += \
77304e37d675303eef0355fc3bb9a12bb506547ajerenkrantz $(EOLIST)
77304e37d675303eef0355fc3bb9a12bb506547ajerenkrantzendif
ff42f83cbf31893bcde9712332a8e5ee970f6a74trawick
77304e37d675303eef0355fc3bb9a12bb506547ajerenkrantzifeq "$(RELEASE)" "release"
77304e37d675303eef0355fc3bb9a12bb506547ajerenkrantzXINCDIRS += \
41ce8eb0053365f3ce1a774ba4239fc9e4fae072wrowe $(EOLIST)
41ce8eb0053365f3ce1a774ba4239fc9e4fae072wrowe
41ce8eb0053365f3ce1a774ba4239fc9e4fae072wroweXCFLAGS += \
41ce8eb0053365f3ce1a774ba4239fc9e4fae072wrowe $(EOLIST)
531c23ff01a2489646f0a2029097013b328d935agstein
6d6d1bf27fbc05343e916eae8fc418d07fd97787ianhXDEFINES += \
4e3b83f6caecb85d4c139a440254cfa2f98e8960ianh $(EOLIST)
4e3b83f6caecb85d4c139a440254cfa2f98e8960ianh
c00273b9c51c617ede471e9cb95c22420f1227fbbrianpXLFLAGS += \
c00273b9c51c617ede471e9cb95c22420f1227fbbrianp $(EOLIST)
c00273b9c51c617ede471e9cb95c22420f1227fbbrianpendif
6758b07b4b79f898b0f56375016cea7da0bfb495wrowe
6758b07b4b79f898b0f56375016cea7da0bfb495wrowe#
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.
020fe2135763b51ac6221adcc51c3fb6509e7a95brianp#
c00273b9c51c617ede471e9cb95c22420f1227fbbrianpNLM_NAME =
54e1babd5a5a56c576eeeace54110150769cc916coar
54e1babd5a5a56c576eeeace54110150769cc916coar#
54e1babd5a5a56c576eeeace54110150769cc916coar# This is used by the link '-desc ' directive.
77304e37d675303eef0355fc3bb9a12bb506547ajerenkrantz# If left blank, NLM_NAME will be used.
77304e37d675303eef0355fc3bb9a12bb506547ajerenkrantz#
77304e37d675303eef0355fc3bb9a12bb506547ajerenkrantzNLM_DESCRIPTION =
77304e37d675303eef0355fc3bb9a12bb506547ajerenkrantz
77304e37d675303eef0355fc3bb9a12bb506547ajerenkrantz#
54e1babd5a5a56c576eeeace54110150769cc916coar# This is used by the '-threadname' directive. If left blank,
7fe18c15b669db9d191859695901dc4fcf3829dawrowe# NLM_NAME Thread will be used.
7fe18c15b669db9d191859695901dc4fcf3829dawrowe#
7fe18c15b669db9d191859695901dc4fcf3829dawroweNLM_THREAD_NAME =
b84f66c93f820824b1d5455181f55598b766319cwrowe
7fe18c15b669db9d191859695901dc4fcf3829dawrowe#
976501adbc040220270f7d1d77c4b8373033be69wrowe# If this is specified, it will override VERSION value in
976501adbc040220270f7d1d77c4b8373033be69wrowe# $(AP_WORK)\build\NWGNUenvironment.inc
976501adbc040220270f7d1d77c4b8373033be69wrowe#
976501adbc040220270f7d1d77c4b8373033be69wroweNLM_VERSION =
976501adbc040220270f7d1d77c4b8373033be69wrowe
b84f66c93f820824b1d5455181f55598b766319cwrowe#
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb# If this is specified, it will override the default of 64K
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb#
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbbNLM_STACK_SIZE =
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb#
a9a0f66fee736c72861cb2819b67b7784896a37cjerenkrantz# If this is specified it will be used by the link '-entry' directive
a9a0f66fee736c72861cb2819b67b7784896a37cjerenkrantz#
a9a0f66fee736c72861cb2819b67b7784896a37cjerenkrantzNLM_ENTRY_SYM =
ff42f83cbf31893bcde9712332a8e5ee970f6a74trawick
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb#
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz# If this is specified it will be used by the link '-exit' directive
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz#
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantzNLM_EXIT_SYM =
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz#
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz# If this is specified it will be used by the link '-check' directive
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz#
020fe2135763b51ac6221adcc51c3fb6509e7a95brianpNLM_CHECK_SYM =
6d968aa80a4524cc08ccf1925c47580165058318ianh
6d968aa80a4524cc08ccf1925c47580165058318ianh#
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz# If these are specified it will be used by the link '-flags' directive
108db76823f2261a33aaa3621af6a1e54db17a69trawick#
108db76823f2261a33aaa3621af6a1e54db17a69trawickNLM_FLAGS =
108db76823f2261a33aaa3621af6a1e54db17a69trawick
108db76823f2261a33aaa3621af6a1e54db17a69trawick#
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
a9a0f66fee736c72861cb2819b67b7784896a37cjerenkrantz#
a9a0f66fee736c72861cb2819b67b7784896a37cjerenkrantzXDCDATA =
427af37b52c0ce1d8c85c9966f41d2b055e652facoar
427af37b52c0ce1d8c85c9966f41d2b055e652facoar#
427af37b52c0ce1d8c85c9966f41d2b055e652facoar# If there is an NLM target, put it here
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaron#
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaronTARGET_nlm = \
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaron $(OBJDIR)/example.nlm \
108db76823f2261a33aaa3621af6a1e54db17a69trawick $(OBJDIR)/mod_cach.nlm \
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz $(OBJDIR)/mem_cach.nlm \
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz $(OBJDIR)/dsk_cach.nlm \
dc098c7ce5d36179c504d09fc722d190683d0262aaron $(EOLIST)
dc098c7ce5d36179c504d09fc722d190683d0262aaron
dc098c7ce5d36179c504d09fc722d190683d0262aaron# If LDAPSDK has been defined then build the auth_ldap module
dc098c7ce5d36179c504d09fc722d190683d0262aaronifneq "$(LDAPSDK)" ""
dc098c7ce5d36179c504d09fc722d190683d0262aaronTARGET_nlm += $(OBJDIR)/authldap.nlm \
dc098c7ce5d36179c504d09fc722d190683d0262aaron $(OBJDIR)/utilldap.nlm \
dc098c7ce5d36179c504d09fc722d190683d0262aaron $(EOLIST)
dc098c7ce5d36179c504d09fc722d190683d0262aaronendif
dc098c7ce5d36179c504d09fc722d190683d0262aaron
1832c015282e23772f5518059eea4b54a9d142cfjerenkrantz#
1832c015282e23772f5518059eea4b54a9d142cfjerenkrantz# If there is an LIB target, put it here
1832c015282e23772f5518059eea4b54a9d142cfjerenkrantz#
1832c015282e23772f5518059eea4b54a9d142cfjerenkrantzTARGET_lib = \
1832c015282e23772f5518059eea4b54a9d142cfjerenkrantz $(EOLIST)
10270f6f94b2069d0d357805c140a9897449b9ccianh
1832c015282e23772f5518059eea4b54a9d142cfjerenkrantz#
00452612306ed39e3b0ae309928994ca180b1927jerenkrantz# These are the OBJ files needed to create the NLM target above.
af16c97c97e41b96cce9b10c80277532aea8e414jim# Paths must all use the '/' character
af16c97c97e41b96cce9b10c80277532aea8e414jim#
af16c97c97e41b96cce9b10c80277532aea8e414jimFILES_nlm_objs = \
af16c97c97e41b96cce9b10c80277532aea8e414jim $(EOLIST)
af16c97c97e41b96cce9b10c80277532aea8e414jim
ba6a3870d5bdfbcf3654173182d2280b15289abamartin#
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.
7cf837ace79f9a34ce674894f8f3cd58f9964b0ejerenkrantz#
7cf837ace79f9a34ce674894f8f3cd58f9964b0ejerenkrantzFILES_nlm_libs = \
ba6a3870d5bdfbcf3654173182d2280b15289abamartin $(EOLIST)
ba6a3870d5bdfbcf3654173182d2280b15289abamartin
00452612306ed39e3b0ae309928994ca180b1927jerenkrantz#
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.
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaron#
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaronFILES_nlm_modules = \
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaron $(EOLIST)
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaron
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaron#
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaron# If the nlm has a msg file, put it's path here
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaron#
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaronFILE_nlm_msg =
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaron
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaron#
427af37b52c0ce1d8c85c9966f41d2b055e652facoar# If the nlm has a hlp file put it's path here
020fe2135763b51ac6221adcc51c3fb6509e7a95brianp#
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaronFILE_nlm_hlp =
02adcc4a00e718d4ee5f8567af789f64e713febdjerenkrantz
02adcc4a00e718d4ee5f8567af789f64e713febdjerenkrantz#
02adcc4a00e718d4ee5f8567af789f64e713febdjerenkrantz# If this is specified, it will override $(NWOS)\copyright.txt.
02adcc4a00e718d4ee5f8567af789f64e713febdjerenkrantz#
02adcc4a00e718d4ee5f8567af789f64e713febdjerenkrantzFILE_nlm_copyright =
02adcc4a00e718d4ee5f8567af789f64e713febdjerenkrantz
3a335d38ae042442923b87dce21b274a52e7e400brianp#
3a335d38ae042442923b87dce21b274a52e7e400brianp# Any additional imports go here
3a335d38ae042442923b87dce21b274a52e7e400brianp#
3a335d38ae042442923b87dce21b274a52e7e400brianpFILES_nlm_Ximports = \
3a335d38ae042442923b87dce21b274a52e7e400brianp $(EOLIST)
3a335d38ae042442923b87dce21b274a52e7e400brianp
3a335d38ae042442923b87dce21b274a52e7e400brianp#
262bfa74293f7bc2049b4cd525875c8775711ca2aaron# Any symbols exported to here
262bfa74293f7bc2049b4cd525875c8775711ca2aaron#
262bfa74293f7bc2049b4cd525875c8775711ca2aaronFILES_nlm_exports = \
262bfa74293f7bc2049b4cd525875c8775711ca2aaron $(EOLIST)
262bfa74293f7bc2049b4cd525875c8775711ca2aaron
262bfa74293f7bc2049b4cd525875c8775711ca2aaron#
262bfa74293f7bc2049b4cd525875c8775711ca2aaron# These are the OBJ files needed to create the LIB target above.
262bfa74293f7bc2049b4cd525875c8775711ca2aaron# Paths must all use the '/' character
262bfa74293f7bc2049b4cd525875c8775711ca2aaron#
33f5961d34a8b5390cebad0543b3ebe67830e5d7jerenkrantzFILES_lib_objs = \
33f5961d34a8b5390cebad0543b3ebe67830e5d7jerenkrantz $(EOLIST)
33f5961d34a8b5390cebad0543b3ebe67830e5d7jerenkrantz
33f5961d34a8b5390cebad0543b3ebe67830e5d7jerenkrantz#
33f5961d34a8b5390cebad0543b3ebe67830e5d7jerenkrantz# implement targets and dependancies (leave this section alone)
33f5961d34a8b5390cebad0543b3ebe67830e5d7jerenkrantz#
33f5961d34a8b5390cebad0543b3ebe67830e5d7jerenkrantz
ff42f83cbf31893bcde9712332a8e5ee970f6a74trawicklibs :: $(OBJDIR) $(TARGET_lib)
ff42f83cbf31893bcde9712332a8e5ee970f6a74trawick
ff42f83cbf31893bcde9712332a8e5ee970f6a74trawicknlms :: libs $(TARGET_nlm)
33f5961d34a8b5390cebad0543b3ebe67830e5d7jerenkrantz
54e1babd5a5a56c576eeeace54110150769cc916coar#
54e1babd5a5a56c576eeeace54110150769cc916coar# Updated this target to create necessary directories and copy files to the
54e1babd5a5a56c576eeeace54110150769cc916coar# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
54e1babd5a5a56c576eeeace54110150769cc916coar#
54e1babd5a5a56c576eeeace54110150769cc916coarinstall :: nlms FORCE
54e1babd5a5a56c576eeeace54110150769cc916coar copy $(OBJDIR)\*.nlm $(INSTALL)\Apache2\modules\*.*
54e1babd5a5a56c576eeeace54110150769cc916coar
54e1babd5a5a56c576eeeace54110150769cc916coar#
54e1babd5a5a56c576eeeace54110150769cc916coar# Any specialized rules here
54e1babd5a5a56c576eeeace54110150769cc916coar#
54e1babd5a5a56c576eeeace54110150769cc916coar
54e1babd5a5a56c576eeeace54110150769cc916coar#
54e1babd5a5a56c576eeeace54110150769cc916coar# Include the 'tail' makefile that has targets that depend on variables defined
949aa7bba7f804faa8e6b08cad42a98fc0255d85jerenkrantz# in this makefile
949aa7bba7f804faa8e6b08cad42a98fc0255d85jerenkrantz#
949aa7bba7f804faa8e6b08cad42a98fc0255d85jerenkrantz
949aa7bba7f804faa8e6b08cad42a98fc0255d85jerenkrantzinclude $(AP_WORK)\build\NWGNUtail.inc
949aa7bba7f804faa8e6b08cad42a98fc0255d85jerenkrantz
949aa7bba7f804faa8e6b08cad42a98fc0255d85jerenkrantz