NWGNUmodlogio revision cf7ca2f9eaa6523fefcccba4287b91637391fb51
842ae4bd224140319ae7feec1872b93dfd491143fielding#
842ae4bd224140319ae7feec1872b93dfd491143fielding# Declare the sub-directories to be built here
842ae4bd224140319ae7feec1872b93dfd491143fielding#
842ae4bd224140319ae7feec1872b93dfd491143fielding
842ae4bd224140319ae7feec1872b93dfd491143fieldingSUBDIRS = \
842ae4bd224140319ae7feec1872b93dfd491143fielding $(EOLIST)
777a2b42697cb8cb94ac4e73774862f879259c45rbb
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd#
777a2b42697cb8cb94ac4e73774862f879259c45rbb# Get the 'head' of the build environment. This includes default targets and
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# paths to tools
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd#
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcndinclude $(AP_WORK)/build/NWGNUhead.inc
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd
777a2b42697cb8cb94ac4e73774862f879259c45rbb#
777a2b42697cb8cb94ac4e73774862f879259c45rbb# build this level's files
024cd9589e52cf11ce765dfddb5b5f0c6e421a48gstein
024cd9589e52cf11ce765dfddb5b5f0c6e421a48gstein#
03dbadb45ac72ccc5b4ea8ba6d6d5ceaed3f8b56jerenkrantz# Make sure all needed macro's are defined
03dbadb45ac72ccc5b4ea8ba6d6d5ceaed3f8b56jerenkrantz#
03dbadb45ac72ccc5b4ea8ba6d6d5ceaed3f8b56jerenkrantz
024cd9589e52cf11ce765dfddb5b5f0c6e421a48gstein#
bfb62a96023822c56c9120e4ee627d4091cc59c2rbb# These directories will be at the beginning of the include list, followed by
447d8ea77d7e9fcc7aa286122668d8fe0f8cc690fuankg# INCDIRS
7184de27ec1d62a83c41cdeac0953ca9fd661e8csf#
38fc36de17ee342781e35643c325f22ac9fe6ddagsteinXINCDIRS += \
777a2b42697cb8cb94ac4e73774862f879259c45rbb $(APR)/include \
777a2b42697cb8cb94ac4e73774862f879259c45rbb $(APRUTIL)/include \
1fd12b55be5aebd93227eb2821285f073e15df2djerenkrantz $(AP_WORK)/include \
777a2b42697cb8cb94ac4e73774862f879259c45rbb $(AP_WORK)/modules/http \
777a2b42697cb8cb94ac4e73774862f879259c45rbb $(NWOS) \
24efed0910118b762a4eb84830875d4714b8d315ianh $(EOLIST)
12b170a812f740fafc96da32a188a8b2761a3d5cjim
777a2b42697cb8cb94ac4e73774862f879259c45rbb#
777a2b42697cb8cb94ac4e73774862f879259c45rbb# These flags will come after CFLAGS
777a2b42697cb8cb94ac4e73774862f879259c45rbb#
777a2b42697cb8cb94ac4e73774862f879259c45rbbXCFLAGS += \
777a2b42697cb8cb94ac4e73774862f879259c45rbb $(EOLIST)
777a2b42697cb8cb94ac4e73774862f879259c45rbb
777a2b42697cb8cb94ac4e73774862f879259c45rbb#
777a2b42697cb8cb94ac4e73774862f879259c45rbb# These defines will come after DEFINES
018c3674550f6780e0cebce1f4ffeb9c7674a5c5rbb#
018c3674550f6780e0cebce1f4ffeb9c7674a5c5rbbXDEFINES += \
777a2b42697cb8cb94ac4e73774862f879259c45rbb $(EOLIST)
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp#
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# These flags will be added to the link.opt file
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp#
7184de27ec1d62a83c41cdeac0953ca9fd661e8csfXLFLAGS += \
7184de27ec1d62a83c41cdeac0953ca9fd661e8csf $(EOLIST)
7184de27ec1d62a83c41cdeac0953ca9fd661e8csf
36ef8f77bffe75d1aa327882be1b5bdbe2ff567asf#
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# These values will be appended to the correct variables based on the value of
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# RELEASE
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp#
c190745fde0395805665ac637a4179ddbcaa1cdbwroweifeq "$(RELEASE)" "debug"
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpXINCDIRS += \
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp $(EOLIST)
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpXCFLAGS += \
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp $(EOLIST)
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpXDEFINES += \
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp $(EOLIST)
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpXLFLAGS += \
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp $(EOLIST)
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpendif
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpifeq "$(RELEASE)" "noopt"
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpXINCDIRS += \
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp $(EOLIST)
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpXCFLAGS += \
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp $(EOLIST)
c190745fde0395805665ac637a4179ddbcaa1cdbwrowe
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpXDEFINES += \
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp $(EOLIST)
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpXLFLAGS += \
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp $(EOLIST)
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpendif
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpifeq "$(RELEASE)" "release"
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpXINCDIRS += \
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp $(EOLIST)
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpXCFLAGS += \
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp $(EOLIST)
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpXDEFINES += \
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp $(EOLIST)
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpXLFLAGS += \
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp $(EOLIST)
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpendif
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp#
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# These are used by the link target if an NLM is being generated
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# This is used by the link 'name' directive to name the nlm. If left blank
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# TARGET_nlm (see below) will be used.
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp#
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpNLM_NAME = logio
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp#
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# This is used by the link '-desc ' directive.
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# If left blank, NLM_NAME will be used.
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp#
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpNLM_DESCRIPTION = Apache $(VERSION_STR) IO Logging Module
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp#
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# This is used by the '-threadname' directive. If left blank,
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# NLM_NAME Thread will be used.
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp#
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpNLM_THREAD_NAME = Logio Module
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp#
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# If this is specified, it will override VERSION value in
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# $(AP_WORK)/build/NWGNUenvironment.inc
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp#
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpNLM_VERSION =
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp#
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# If this is specified, it will override the default of 64K
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp#
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpNLM_STACK_SIZE = 8192
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp#
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# If this is specified it will be used by the link '-entry' directive
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp#
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpNLM_ENTRY_SYM =
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp#
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# If this is specified it will be used by the link '-exit' directive
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp#
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpNLM_EXIT_SYM =
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp#
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# If this is specified it will be used by the link '-check' directive
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp#
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpNLM_CHECK_SYM =
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp#
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# If these are specified it will be used by the link '-flags' directive
777a2b42697cb8cb94ac4e73774862f879259c45rbb#
1ccd992d37d62c8cb2056126f2234f64ec189bfddougmNLM_FLAGS =
777a2b42697cb8cb94ac4e73774862f879259c45rbb
1296b2d30150ccb4ae9f6d690846b4e8f8571fd2rbb#
1296b2d30150ccb4ae9f6d690846b4e8f8571fd2rbb# If this is specified it will be linked in with the XDCData option in the def
777a2b42697cb8cb94ac4e73774862f879259c45rbb# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
777a2b42697cb8cb94ac4e73774862f879259c45rbb# by setting APACHE_UNIPROC in the environment
777a2b42697cb8cb94ac4e73774862f879259c45rbb#
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianpXDCDATA =
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp#
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp# If there is an NLM target, put it here
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp#
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianpTARGET_nlm = \
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp $(OBJDIR)/modlogio.nlm \
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp $(EOLIST)
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp#
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp# If there is an LIB target, put it here
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp#
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianpTARGET_lib = \
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp $(EOLIST)
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp#
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp# These are the OBJ files needed to create the NLM target above.
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp# Paths must all use the '/' character
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp#
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianpFILES_nlm_objs = \
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp $(OBJDIR)/mod_logio.o \
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp $(EOLIST)
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp#
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp# These are the LIB files needed to create the NLM target above.
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp# These will be added as a library command in the link.opt file.
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp#
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianpFILES_nlm_libs = \
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp $(PRELUDE) \
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp $(EOLIST)
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp#
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp# These are the modules that the above NLM target depends on to load.
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp# These will be added as a module command in the link.opt file.
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp#
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianpFILES_nlm_modules = \
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp aprlib \
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp libc \
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp $(EOLIST)
542f434598f16966bede223e4ee4e201240dace4ianh
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp#
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp# If the nlm has a msg file, put it's path here
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp#
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianpFILE_nlm_msg =
542f434598f16966bede223e4ee4e201240dace4ianh
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp#
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp# If the nlm has a hlp file put it's path here
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp#
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianpFILE_nlm_hlp =
fd492f9543f14fb5bae78e04b135c3448eb9cc56rbb
dddcaef56e65bdada3dde770f59c1838320f362etrawick#
0fdf8c342123fde84405b885fb1720ebc652e10djerenkrantz# If this is specified, it will override $(NWOS)\copyright.txt.
dddcaef56e65bdada3dde770f59c1838320f362etrawick#
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpFILE_nlm_copyright =
777a2b42697cb8cb94ac4e73774862f879259c45rbb
435c423bdcfa61ff871a9e289d1140f2bac839b8brianp#
435c423bdcfa61ff871a9e289d1140f2bac839b8brianp# Any additional imports go here
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp#
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpFILES_nlm_Ximports = \
777a2b42697cb8cb94ac4e73774862f879259c45rbb @aprlib.imp \
03dbadb45ac72ccc5b4ea8ba6d6d5ceaed3f8b56jerenkrantz @httpd.imp \
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp @libc.imp \
03dbadb45ac72ccc5b4ea8ba6d6d5ceaed3f8b56jerenkrantz $(EOLIST)
03dbadb45ac72ccc5b4ea8ba6d6d5ceaed3f8b56jerenkrantz
435c423bdcfa61ff871a9e289d1140f2bac839b8brianp#
435c423bdcfa61ff871a9e289d1140f2bac839b8brianp# Any symbols exported to here
777a2b42697cb8cb94ac4e73774862f879259c45rbb#
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpFILES_nlm_exports = \
435c423bdcfa61ff871a9e289d1140f2bac839b8brianp logio_module \
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp $(EOLIST)
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp#
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# These are the OBJ files needed to create the LIB target above.
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# Paths must all use the '/' character
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp#
435c423bdcfa61ff871a9e289d1140f2bac839b8brianpFILES_lib_objs = \
435c423bdcfa61ff871a9e289d1140f2bac839b8brianp $(EOLIST)
435c423bdcfa61ff871a9e289d1140f2bac839b8brianp
435c423bdcfa61ff871a9e289d1140f2bac839b8brianp#
ae3dea49b7dbd3cdf991225881cf01e62689af2bniq# implement targets and dependancies (leave this section alone)
435c423bdcfa61ff871a9e289d1140f2bac839b8brianp#
435c423bdcfa61ff871a9e289d1140f2bac839b8brianp
435c423bdcfa61ff871a9e289d1140f2bac839b8brianplibs :: $(OBJDIR) $(TARGET_lib)
435c423bdcfa61ff871a9e289d1140f2bac839b8brianp
0fdf8c342123fde84405b885fb1720ebc652e10djerenkrantznlms :: libs $(TARGET_nlm)
435c423bdcfa61ff871a9e289d1140f2bac839b8brianp
e8f95a682820a599fe41b22977010636be5c2717jim#
e8f95a682820a599fe41b22977010636be5c2717jim# Updated this target to create necessary directories and copy files to the
1fd12b55be5aebd93227eb2821285f073e15df2djerenkrantz# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
fd492f9543f14fb5bae78e04b135c3448eb9cc56rbb#
777a2b42697cb8cb94ac4e73774862f879259c45rbbinstall :: nlms FORCE
777a2b42697cb8cb94ac4e73774862f879259c45rbb $(call COPY,$(OBJDIR)/*.nlm, $(INSTALL)/$(BASEDIR)/modules/)
fd492f9543f14fb5bae78e04b135c3448eb9cc56rbb
3515be87ebb5aa9a49f8a782d0d657d0d064be08rbb#
0fdf8c342123fde84405b885fb1720ebc652e10djerenkrantz# Any specialized rules here
dddcaef56e65bdada3dde770f59c1838320f362etrawick#
1296b2d30150ccb4ae9f6d690846b4e8f8571fd2rbb
3515be87ebb5aa9a49f8a782d0d657d0d064be08rbb#
3515be87ebb5aa9a49f8a782d0d657d0d064be08rbb# Include the 'tail' makefile that has targets that depend on variables defined
0fdf8c342123fde84405b885fb1720ebc652e10djerenkrantz# in this makefile
0fdf8c342123fde84405b885fb1720ebc652e10djerenkrantz#
e8f95a682820a599fe41b22977010636be5c2717jim
1296b2d30150ccb4ae9f6d690846b4e8f8571fd2rbbinclude $(APBUILD)/NWGNUtail.inc
d6f31486d449475eb8656f3f6dc874cac70a12eaniq
d6f31486d449475eb8656f3f6dc874cac70a12eaniq
d6f31486d449475eb8656f3f6dc874cac70a12eaniq