NWGNUmodlogio revision 16b55a35cff91315d261d1baa776138af465c4e4
7f007e36bec06aba6b3a0f84a64f2abf99edfcd8gstein#
615618f97c8870e6d62b9ad417632c19302c08c0ianh# Declare the sub-directories to be built here
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj
2a6c49cfaef5979a5a06098f3ce987cd76769409manojSUBDIRS = \
dec8fb7a4d03d8f0f485af9556bbd2b3f385696ejerenkrantz $(EOLIST)
dec8fb7a4d03d8f0f485af9556bbd2b3f385696ejerenkrantz
4a257be29f8aeab984fe5622fa69e0b2aab204d7jerenkrantz#
91cacb801f6c0215b38322f6d2fc58cbfedfecfbjerenkrantz# Get the 'head' of the build environment. This includes default targets and
91cacb801f6c0215b38322f6d2fc58cbfedfecfbjerenkrantz# paths to tools
df14f0d3a5191cdd7c4bb5b03acd135d43a6f51brbb#
df14f0d3a5191cdd7c4bb5b03acd135d43a6f51brbb
ab71b233b3a36489e44a7b061c48293be0b17788jwoolleyinclude $(AP_WORK)\build\NWGNUhead.inc
571760de5e60c0b459cb11be45507b923cd023eejwoolley
571760de5e60c0b459cb11be45507b923cd023eejwoolley#
9180a5933673ffb1af633c255ceee029340f3b1erbb# build this level's files
bcb6e1be6041dfeb549c8ea8d37f97ad4e90a0c3rbb
9bd71e35f5d26d26d23fe3a677401828e842ed72wrowe#
2900ab946a2d76b73a14cebfe2985d253f01c967stoddard# Make sure all needed macro's are defined
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb#
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb#
b876b7bcf0ce3d232da723246d709e8dbbfe8762rbb# These directories will be at the beginning of the include list, followed by
cf6bf6c34c936e6a6fe731dbce4a5c3c8bf8e9a3gstein# INCDIRS
35330e0d79ceb8027223bbb8330a381b1f989d6etrawick#
6f6f4a4bca281779d196acbdd5c017bb90858305trawickXINCDIRS += \
8dd4618c4709236b4ea297d7250d282e463ce2d8rbb $(APR)/include \
09bd86d0db1114ee23eda0a6eb76ca055877a1cftrawick $(APRUTIL)/include \
2deb319e6b3de239f45c16a3e9e836d44f1f7108rbb $(AP_WORK)/include \
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb $(AP_WORK)/modules/http \
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj $(NWOS) \
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj $(EOLIST)
af4c982a7cf4515f124935f99a329744035fc699slive
af4c982a7cf4515f124935f99a329744035fc699slive#
af4c982a7cf4515f124935f99a329744035fc699slive# These flags will come after CFLAGS
af4c982a7cf4515f124935f99a329744035fc699slive#
af4c982a7cf4515f124935f99a329744035fc699sliveXCFLAGS += \
af4c982a7cf4515f124935f99a329744035fc699slive $(EOLIST)
af4c982a7cf4515f124935f99a329744035fc699slive
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
531c23ff01a2489646f0a2029097013b328d935agstein# These defines will come after DEFINES
c00273b9c51c617ede471e9cb95c22420f1227fbbrianp#
c00273b9c51c617ede471e9cb95c22420f1227fbbrianpXDEFINES += \
c00273b9c51c617ede471e9cb95c22420f1227fbbrianp $(EOLIST)
c00273b9c51c617ede471e9cb95c22420f1227fbbrianp
c00273b9c51c617ede471e9cb95c22420f1227fbbrianp#
c00273b9c51c617ede471e9cb95c22420f1227fbbrianp# These flags will be added to the link.opt file
c00273b9c51c617ede471e9cb95c22420f1227fbbrianp#
54e1babd5a5a56c576eeeace54110150769cc916coarXLFLAGS += \
54e1babd5a5a56c576eeeace54110150769cc916coar $(EOLIST)
54e1babd5a5a56c576eeeace54110150769cc916coar
54e1babd5a5a56c576eeeace54110150769cc916coar#
54e1babd5a5a56c576eeeace54110150769cc916coar# These values will be appended to the correct variables based on the value of
54e1babd5a5a56c576eeeace54110150769cc916coar# RELEASE
54e1babd5a5a56c576eeeace54110150769cc916coar#
7fe18c15b669db9d191859695901dc4fcf3829dawroweifeq "$(RELEASE)" "debug"
7fe18c15b669db9d191859695901dc4fcf3829dawroweXINCDIRS += \
7fe18c15b669db9d191859695901dc4fcf3829dawrowe $(EOLIST)
b84f66c93f820824b1d5455181f55598b766319cwrowe
7fe18c15b669db9d191859695901dc4fcf3829dawroweXCFLAGS += \
976501adbc040220270f7d1d77c4b8373033be69wrowe $(EOLIST)
976501adbc040220270f7d1d77c4b8373033be69wrowe
976501adbc040220270f7d1d77c4b8373033be69wroweXDEFINES += \
976501adbc040220270f7d1d77c4b8373033be69wrowe $(EOLIST)
976501adbc040220270f7d1d77c4b8373033be69wrowe
b84f66c93f820824b1d5455181f55598b766319cwroweXLFLAGS += \
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb $(EOLIST)
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbbendif
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbbifeq "$(RELEASE)" "noopt"
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbbXINCDIRS += \
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb $(EOLIST)
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb
b84f66c93f820824b1d5455181f55598b766319cwroweXCFLAGS += \
b84f66c93f820824b1d5455181f55598b766319cwrowe $(EOLIST)
b84f66c93f820824b1d5455181f55598b766319cwrowe
b84f66c93f820824b1d5455181f55598b766319cwroweXDEFINES += \
a601d863bd772fefc4dc82a883589d8be6a44811wrowe $(EOLIST)
a601d863bd772fefc4dc82a883589d8be6a44811wrowe
79d5106a9b65b956d646f5daae4b94bc79e315b8trawickXLFLAGS += \
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwrowe $(EOLIST)
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwroweendif
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwrowe
976501adbc040220270f7d1d77c4b8373033be69wroweifeq "$(RELEASE)" "release"
976501adbc040220270f7d1d77c4b8373033be69wroweXINCDIRS += \
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwrowe $(EOLIST)
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantzXCFLAGS += \
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz $(EOLIST)
924c8dd40352ca7775704a31a7a77ab86dc951b4ianh
924c8dd40352ca7775704a31a7a77ab86dc951b4ianhXDEFINES += \
924c8dd40352ca7775704a31a7a77ab86dc951b4ianh $(EOLIST)
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantzXLFLAGS += \
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz $(EOLIST)
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantzendif
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz#
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz# These are used by the link target if an NLM is being generated
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz# This is used by the link 'name' directive to name the nlm. If left blank
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz# TARGET_nlm (see below) will be used.
39cf872a6df49bd5affe2ca6eaf683918184fbb4trawick#
39cf872a6df49bd5affe2ca6eaf683918184fbb4trawickNLM_NAME = logio
39cf872a6df49bd5affe2ca6eaf683918184fbb4trawick
39cf872a6df49bd5affe2ca6eaf683918184fbb4trawick#
39cf872a6df49bd5affe2ca6eaf683918184fbb4trawick# This is used by the link '-desc ' directive.
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz# If left blank, NLM_NAME will be used.
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz#
54e1babd5a5a56c576eeeace54110150769cc916coarNLM_DESCRIPTION = Apache $(VERSION_STR) IO Logging Module
54e1babd5a5a56c576eeeace54110150769cc916coar
54e1babd5a5a56c576eeeace54110150769cc916coar#
54e1babd5a5a56c576eeeace54110150769cc916coar# This is used by the '-threadname' directive. If left blank,
54e1babd5a5a56c576eeeace54110150769cc916coar# NLM_NAME Thread will be used.
54e1babd5a5a56c576eeeace54110150769cc916coar#
54e1babd5a5a56c576eeeace54110150769cc916coarNLM_THREAD_NAME = Logio Module
54e1babd5a5a56c576eeeace54110150769cc916coar
54e1babd5a5a56c576eeeace54110150769cc916coar#
54e1babd5a5a56c576eeeace54110150769cc916coar# If this is specified, it will override VERSION value in
54e1babd5a5a56c576eeeace54110150769cc916coar# $(AP_WORK)\build\NWGNUenvironment.inc
54e1babd5a5a56c576eeeace54110150769cc916coar#
54e1babd5a5a56c576eeeace54110150769cc916coarNLM_VERSION =
949aa7bba7f804faa8e6b08cad42a98fc0255d85jerenkrantz
949aa7bba7f804faa8e6b08cad42a98fc0255d85jerenkrantz#
949aa7bba7f804faa8e6b08cad42a98fc0255d85jerenkrantz# If this is specified, it will override the default of 64K
949aa7bba7f804faa8e6b08cad42a98fc0255d85jerenkrantz#
949aa7bba7f804faa8e6b08cad42a98fc0255d85jerenkrantzNLM_STACK_SIZE = 8192
949aa7bba7f804faa8e6b08cad42a98fc0255d85jerenkrantz
949aa7bba7f804faa8e6b08cad42a98fc0255d85jerenkrantz
4ca13a5e126946272f02637e268a8e09193c553ecoar#
4ca13a5e126946272f02637e268a8e09193c553ecoar# If this is specified it will be used by the link '-entry' directive
4ca13a5e126946272f02637e268a8e09193c553ecoar#
4ca13a5e126946272f02637e268a8e09193c553ecoarNLM_ENTRY_SYM = _LibCPrelude
4ca13a5e126946272f02637e268a8e09193c553ecoar
480e89b14b2c407bb2e8b8a918e6a183e4573c6crbb#
480e89b14b2c407bb2e8b8a918e6a183e4573c6crbb# If this is specified it will be used by the link '-exit' directive
480e89b14b2c407bb2e8b8a918e6a183e4573c6crbb#
480e89b14b2c407bb2e8b8a918e6a183e4573c6crbbNLM_EXIT_SYM = _LibCPostlude
480e89b14b2c407bb2e8b8a918e6a183e4573c6crbb
480e89b14b2c407bb2e8b8a918e6a183e4573c6crbb#
480e89b14b2c407bb2e8b8a918e6a183e4573c6crbb# If this is specified it will be used by the link '-check' directive
480e89b14b2c407bb2e8b8a918e6a183e4573c6crbb#
4ca13a5e126946272f02637e268a8e09193c553ecoarNLM_CHECK_SYM =
123c13eb1384c256a66438ca2110750baba7eef8wrowe
38b116de532efb28defc6a0aaa71fb8c46487190gstein#
38b116de532efb28defc6a0aaa71fb8c46487190gstein# If these are specified it will be used by the link '-flags' directive
38b116de532efb28defc6a0aaa71fb8c46487190gstein#
38b116de532efb28defc6a0aaa71fb8c46487190gsteinNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
38b116de532efb28defc6a0aaa71fb8c46487190gstein
38b116de532efb28defc6a0aaa71fb8c46487190gstein#
38b116de532efb28defc6a0aaa71fb8c46487190gstein# If this is specified it will be linked in with the XDCData option in the def
38b116de532efb28defc6a0aaa71fb8c46487190gstein# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
e2979c854f6ff7c056d75f6f1ae49767ce3b6d37jerenkrantz# by setting APACHE_UNIPROC in the environment
abf9f8824312153040e1ee588a50058c67a4081ajerenkrantz#
abf9f8824312153040e1ee588a50058c67a4081ajerenkrantzXDCDATA =
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantz
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantz#
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantz# If there is an NLM target, put it here
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantz#
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantzTARGET_nlm = \
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantz $(OBJDIR)/modlogio.nlm \
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantz $(EOLIST)
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantz
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantz#
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantz# If there is an LIB target, put it here
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantz#
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantzTARGET_lib = \
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantz $(EOLIST)
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantz
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantz#
d90f6d052b76ed4cf5e27e8292a22c2c97bb5134jerenkrantz# These are the OBJ files needed to create the NLM target above.
38b116de532efb28defc6a0aaa71fb8c46487190gstein# Paths must all use the '/' character
38b116de532efb28defc6a0aaa71fb8c46487190gstein#
38b116de532efb28defc6a0aaa71fb8c46487190gsteinFILES_nlm_objs = \
38b116de532efb28defc6a0aaa71fb8c46487190gstein $(OBJDIR)/mod_logio.o \
38b116de532efb28defc6a0aaa71fb8c46487190gstein $(EOLIST)
38b116de532efb28defc6a0aaa71fb8c46487190gstein
38b116de532efb28defc6a0aaa71fb8c46487190gstein#
38b116de532efb28defc6a0aaa71fb8c46487190gstein# These are the LIB files needed to create the NLM target above.
38b116de532efb28defc6a0aaa71fb8c46487190gstein# These will be added as a library command in the link.opt file.
38b116de532efb28defc6a0aaa71fb8c46487190gstein#
38b116de532efb28defc6a0aaa71fb8c46487190gsteinFILES_nlm_libs = \
38b116de532efb28defc6a0aaa71fb8c46487190gstein libcpre.o \
38b116de532efb28defc6a0aaa71fb8c46487190gstein $(EOLIST)
e2979c854f6ff7c056d75f6f1ae49767ce3b6d37jerenkrantz
e2979c854f6ff7c056d75f6f1ae49767ce3b6d37jerenkrantz#
38b116de532efb28defc6a0aaa71fb8c46487190gstein# These are the modules that the above NLM target depends on to load.
b84f66c93f820824b1d5455181f55598b766319cwrowe# These will be added as a module command in the link.opt file.
b84f66c93f820824b1d5455181f55598b766319cwrowe#
b84f66c93f820824b1d5455181f55598b766319cwroweFILES_nlm_modules = \
b84f66c93f820824b1d5455181f55598b766319cwrowe aprlib \
7fe18c15b669db9d191859695901dc4fcf3829dawrowe libc \
7fe18c15b669db9d191859695901dc4fcf3829dawrowe $(EOLIST)
7fe18c15b669db9d191859695901dc4fcf3829dawrowe
7fe18c15b669db9d191859695901dc4fcf3829dawrowe#
b84f66c93f820824b1d5455181f55598b766319cwrowe# If the nlm has a msg file, put it's path here
410912d9cb56a09a74f8655647ed9e81d49023f4gregames#
410912d9cb56a09a74f8655647ed9e81d49023f4gregamesFILE_nlm_msg =
410912d9cb56a09a74f8655647ed9e81d49023f4gregames
410912d9cb56a09a74f8655647ed9e81d49023f4gregames#
60d567a0c2aae815ee6fc20c0d65032bea52c92cwrowe# If the nlm has a hlp file put it's path here
60d567a0c2aae815ee6fc20c0d65032bea52c92cwrowe#
60d567a0c2aae815ee6fc20c0d65032bea52c92cwroweFILE_nlm_hlp =
60d567a0c2aae815ee6fc20c0d65032bea52c92cwrowe
7fe18c15b669db9d191859695901dc4fcf3829dawrowe#
60d567a0c2aae815ee6fc20c0d65032bea52c92cwrowe# If this is specified, it will override $(NWOS)\copyright.txt.
60d567a0c2aae815ee6fc20c0d65032bea52c92cwrowe#
60d567a0c2aae815ee6fc20c0d65032bea52c92cwroweFILE_nlm_copyright =
60d567a0c2aae815ee6fc20c0d65032bea52c92cwrowe
60d567a0c2aae815ee6fc20c0d65032bea52c92cwrowe#
7239216999e746bb4fc7671621becea33c5c1c87stoddard# Any additional imports go here
d180ec1b29106f4fec480ef7fcdb04df078010cerse#
d180ec1b29106f4fec480ef7fcdb04df078010cerseFILES_nlm_Ximports = \
3913a3b7e7c72ea11d05da36275db39c2dc39b68jwoolley @$(APR)/aprlib.imp \
3913a3b7e7c72ea11d05da36275db39c2dc39b68jwoolley @$(NWOS)/httpd.imp \
3913a3b7e7c72ea11d05da36275db39c2dc39b68jwoolley @libc.imp \
3913a3b7e7c72ea11d05da36275db39c2dc39b68jwoolley $(EOLIST)
3913a3b7e7c72ea11d05da36275db39c2dc39b68jwoolley
3913a3b7e7c72ea11d05da36275db39c2dc39b68jwoolley#
3913a3b7e7c72ea11d05da36275db39c2dc39b68jwoolley# Any symbols exported to here
3913a3b7e7c72ea11d05da36275db39c2dc39b68jwoolley#
5fcdb40a60e9819e5fb192f7ea97a4c29d350ecbjerenkrantzFILES_nlm_exports = \
5fcdb40a60e9819e5fb192f7ea97a4c29d350ecbjerenkrantz logio_module \
5fcdb40a60e9819e5fb192f7ea97a4c29d350ecbjerenkrantz $(EOLIST)
5fcdb40a60e9819e5fb192f7ea97a4c29d350ecbjerenkrantz
5fcdb40a60e9819e5fb192f7ea97a4c29d350ecbjerenkrantz#
5fcdb40a60e9819e5fb192f7ea97a4c29d350ecbjerenkrantz# These are the OBJ files needed to create the LIB target above.
5fcdb40a60e9819e5fb192f7ea97a4c29d350ecbjerenkrantz# Paths must all use the '/' character
d180ec1b29106f4fec480ef7fcdb04df078010cerse#
e32adabcbf3bf5b69ba2e8b163b971839efc94dbtrawickFILES_lib_objs = \
23ce412bd50a47accab4dd26019b78810bbf46ebtrawick $(EOLIST)
e32adabcbf3bf5b69ba2e8b163b971839efc94dbtrawick
bebc7b9445f95339822c26bfd470349006f9ec40stoddard#
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard# implement targets and dependancies (leave this section alone)
49facccad3f5c3e9e49311487b5069699c3bf3fdjwoolley#
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddardlibs :: $(OBJDIR) $(TARGET_lib)
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddardnlms :: libs $(TARGET_nlm)
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard
1b9744b72f26e9a0e935f9c08d49feb1fcce72f9jwoolley#
1b9744b72f26e9a0e935f9c08d49feb1fcce72f9jwoolley# Updated this target to create necessary directories and copy files to the
1b9744b72f26e9a0e935f9c08d49feb1fcce72f9jwoolley# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
1b9744b72f26e9a0e935f9c08d49feb1fcce72f9jwoolley#
1b9744b72f26e9a0e935f9c08d49feb1fcce72f9jwoolleyinstall :: nlms FORCE
1b9744b72f26e9a0e935f9c08d49feb1fcce72f9jwoolley copy $(OBJDIR)\*.nlm $(INSTALL)\$(BASEDIR)\modules\*.*
1b9744b72f26e9a0e935f9c08d49feb1fcce72f9jwoolley
1b9744b72f26e9a0e935f9c08d49feb1fcce72f9jwoolley#
1b9744b72f26e9a0e935f9c08d49feb1fcce72f9jwoolley# Any specialized rules here
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard#
19cbe4d7b7c931723e7249de6829bf965a1fee72stoddard
19cbe4d7b7c931723e7249de6829bf965a1fee72stoddard#
93db592309ba9e5ab230f67611a2c74fece9cdb2marc# Include the 'tail' makefile that has targets that depend on variables defined
93db592309ba9e5ab230f67611a2c74fece9cdb2marc# in this makefile
93db592309ba9e5ab230f67611a2c74fece9cdb2marc#
93db592309ba9e5ab230f67611a2c74fece9cdb2marc
93db592309ba9e5ab230f67611a2c74fece9cdb2marcinclude $(AP_WORK)\build\NWGNUtail.inc
93db592309ba9e5ab230f67611a2c74fece9cdb2marc
93db592309ba9e5ab230f67611a2c74fece9cdb2marc
b187d568e1507d75139ebc13ca945b38fc05d55cstoddard