NWGNUmodlogio revision cf7ca2f9eaa6523fefcccba4287b91637391fb51
842ae4bd224140319ae7feec1872b93dfd491143fielding# Declare the sub-directories to be built here
777a2b42697cb8cb94ac4e73774862f879259c45rbb# Get the 'head' of the build environment. This includes default targets and
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# paths to tools
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcndinclude $(AP_WORK)/build/NWGNUhead.inc
777a2b42697cb8cb94ac4e73774862f879259c45rbb# build this level's files
03dbadb45ac72ccc5b4ea8ba6d6d5ceaed3f8b56jerenkrantz# Make sure all needed macro's are defined
bfb62a96023822c56c9120e4ee627d4091cc59c2rbb# These directories will be at the beginning of the include list, followed by
38fc36de17ee342781e35643c325f22ac9fe6ddagsteinXINCDIRS += \
777a2b42697cb8cb94ac4e73774862f879259c45rbb $(APR)/include \
777a2b42697cb8cb94ac4e73774862f879259c45rbb $(APRUTIL)/include \
1fd12b55be5aebd93227eb2821285f073e15df2djerenkrantz $(AP_WORK)/include \
777a2b42697cb8cb94ac4e73774862f879259c45rbb# These flags will come after CFLAGS
777a2b42697cb8cb94ac4e73774862f879259c45rbbXCFLAGS += \
777a2b42697cb8cb94ac4e73774862f879259c45rbb# These defines will come after DEFINES
018c3674550f6780e0cebce1f4ffeb9c7674a5c5rbbXDEFINES += \
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# These flags will be added to the link.opt file
7184de27ec1d62a83c41cdeac0953ca9fd661e8csfXLFLAGS += \
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# These values will be appended to the correct variables based on the value of
c190745fde0395805665ac637a4179ddbcaa1cdbwroweifeq "$(RELEASE)" "debug"
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpXINCDIRS += \
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpXCFLAGS += \
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpXDEFINES += \
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpXLFLAGS += \
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpifeq "$(RELEASE)" "noopt"
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpXINCDIRS += \
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpXCFLAGS += \
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpXDEFINES += \
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpXLFLAGS += \
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpifeq "$(RELEASE)" "release"
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpXINCDIRS += \
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpXCFLAGS += \
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpXDEFINES += \
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpXLFLAGS += \
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.
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpNLM_NAME = logio
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# This is used by the link '-desc ' directive.
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# If left blank, NLM_NAME will be used.
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpNLM_DESCRIPTION = Apache $(VERSION_STR) IO Logging Module
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# This is used by the '-threadname' directive. If left blank,
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# NLM_NAME Thread will be used.
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpNLM_THREAD_NAME = Logio Module
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# If this is specified, it will override VERSION value in
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpNLM_VERSION =
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# If this is specified, it will override the default of 64K
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpNLM_STACK_SIZE = 8192
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# If this is specified it will be used by the link '-entry' directive
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpNLM_ENTRY_SYM =
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# If this is specified it will be used by the link '-exit' directive
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpNLM_EXIT_SYM =
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# If this is specified it will be used by the link '-check' directive
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpNLM_CHECK_SYM =
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# If these are specified it will be used by the link '-flags' directive
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
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp# If there is an NLM target, put it here
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianpTARGET_nlm = \
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp# If there is an LIB target, put it here
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianpTARGET_lib = \
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp# These are the OBJ files needed to create the NLM target above.
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp# Paths must all use the '/' character
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianpFILES_nlm_objs = \
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.
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianpFILES_nlm_libs = \
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp $(PRELUDE) \
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.
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianpFILES_nlm_modules = \
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp# If the nlm has a msg file, put it's path here
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianpFILE_nlm_msg =
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp# If the nlm has a hlp file put it's path here
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianpFILE_nlm_hlp =
0fdf8c342123fde84405b885fb1720ebc652e10djerenkrantz# If this is specified, it will override $(NWOS)\copyright.txt.
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpFILE_nlm_copyright =
435c423bdcfa61ff871a9e289d1140f2bac839b8brianp# Any additional imports go here
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpFILES_nlm_Ximports = \
435c423bdcfa61ff871a9e289d1140f2bac839b8brianp# Any symbols exported to here
5b33c03529e21b31bfd2a23fc30b126cb6370376brianpFILES_nlm_exports = \
435c423bdcfa61ff871a9e289d1140f2bac839b8brianp logio_module \
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# These are the OBJ files needed to create the LIB target above.
5b33c03529e21b31bfd2a23fc30b126cb6370376brianp# Paths must all use the '/' character
435c423bdcfa61ff871a9e289d1140f2bac839b8brianpFILES_lib_objs = \
ae3dea49b7dbd3cdf991225881cf01e62689af2bniq# implement targets and dependancies (leave this section alone)
435c423bdcfa61ff871a9e289d1140f2bac839b8brianplibs :: $(OBJDIR) $(TARGET_lib)
0fdf8c342123fde84405b885fb1720ebc652e10djerenkrantznlms :: libs $(TARGET_nlm)
e8f95a682820a599fe41b22977010636be5c2717jim# Updated this target to create necessary directories and copy files to the
1fd12b55be5aebd93227eb2821285f073e15df2djerenkrantz# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
777a2b42697cb8cb94ac4e73774862f879259c45rbbinstall :: nlms FORCE
777a2b42697cb8cb94ac4e73774862f879259c45rbb $(call COPY,$(OBJDIR)/*.nlm, $(INSTALL)/$(BASEDIR)/modules/)
0fdf8c342123fde84405b885fb1720ebc652e10djerenkrantz# Any specialized rules here
3515be87ebb5aa9a49f8a782d0d657d0d064be08rbb# Include the 'tail' makefile that has targets that depend on variables defined
0fdf8c342123fde84405b885fb1720ebc652e10djerenkrantz# in this makefile
1296b2d30150ccb4ae9f6d690846b4e8f8571fd2rbbinclude $(APBUILD)/NWGNUtail.inc