NWGNUforensic revision 16b55a35cff91315d261d1baa776138af465c4e4
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# Declare the sub-directories to be built here
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesSUBDIRS = \
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg $(EOLIST)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# Get the 'head' of the build environment. This includes default targets and
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# paths to tools
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesinclude $(AP_WORK)\build\NWGNUhead.inc
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# build this level's files
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# Make sure all needed macro's are defined
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# These directories will be at the beginning of the include list, followed by
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# INCDIRS
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesXINCDIRS += \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(APR)/include \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(APRUTIL)/include \
16b55a35cff91315d261d1baa776138af465c4e4fuankg $(AP_WORK)/include \
16b55a35cff91315d261d1baa776138af465c4e4fuankg $(AP_WORK)/modules/http \
16b55a35cff91315d261d1baa776138af465c4e4fuankg $(NWOS) \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes $(EOLIST)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# These flags will come after CFLAGS
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesXCFLAGS += \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes $(EOLIST)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# These defines will come after DEFINES
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesXDEFINES += \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes $(EOLIST)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# These flags will be added to the link.opt file
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesXLFLAGS += \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes $(EOLIST)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# These values will be appended to the correct variables based on the value of
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# RELEASE
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesifeq "$(RELEASE)" "debug"
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesXINCDIRS += \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes $(EOLIST)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesXCFLAGS += \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes $(EOLIST)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesXDEFINES += \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes $(EOLIST)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesXLFLAGS += \
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg $(EOLIST)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesendif
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesifeq "$(RELEASE)" "noopt"
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesXINCDIRS += \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes $(EOLIST)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesXCFLAGS += \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes $(EOLIST)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesXDEFINES += \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes $(EOLIST)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesXLFLAGS += \
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg $(EOLIST)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesendif
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesifeq "$(RELEASE)" "release"
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesXINCDIRS += \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes $(EOLIST)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesXCFLAGS += \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes $(EOLIST)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesXDEFINES += \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes $(EOLIST)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesXLFLAGS += \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes $(EOLIST)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesendif
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# These are used by the link target if an NLM is being generated
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# This is used by the link 'name' directive to name the nlm. If left blank
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# TARGET_nlm (see below) will be used.
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_NAME = forensic
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# This is used by the link '-desc ' directive.
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# If left blank, NLM_NAME will be used.
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesNLM_DESCRIPTION = Apache $(VERSION_STR) Forensic Logging Module
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# This is used by the '-threadname' directive. If left blank,
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# NLM_NAME Thread will be used.
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesNLM_THREAD_NAME = Forensic Module
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# If this is specified, it will override VERSION value in
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# $(AP_WORK)\build\NWGNUenvironment.inc
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_VERSION =
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# If this is specified, it will override the default of 64K
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesNLM_STACK_SIZE = 8192
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# If this is specified it will be used by the link '-entry' directive
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesNLM_ENTRY_SYM = _LibCPrelude
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# If this is specified it will be used by the link '-exit' directive
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesNLM_EXIT_SYM = _LibCPostlude
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# If this is specified it will be used by the link '-check' directive
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesNLM_CHECK_SYM =
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# If these are specified it will be used by the link '-flags' directive
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# If this is specified it will be linked in with the XDCData option in the def
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# by setting APACHE_UNIPROC in the environment
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgXDCDATA =
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# If there is an NLM target, put it here
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesTARGET_nlm = \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes $(OBJDIR)/forensic.nlm \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes $(EOLIST)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# If there is an LIB target, put it here
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesTARGET_lib = \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes $(EOLIST)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# These are the OBJ files needed to create the NLM target above.
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# Paths must all use the '/' character
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesFILES_nlm_objs = \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes $(OBJDIR)/mod_log_forensic.o \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes $(EOLIST)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# These are the LIB files needed to create the NLM target above.
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# These will be added as a library command in the link.opt file.
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesFILES_nlm_libs = \
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg libcpre.o \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes $(EOLIST)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# These are the modules that the above NLM target depends on to load.
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# These will be added as a module command in the link.opt file.
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesFILES_nlm_modules = \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes aprlib \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes libc \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes $(EOLIST)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# If the nlm has a msg file, put it's path here
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesFILE_nlm_msg =
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# If the nlm has a hlp file put it's path here
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesFILE_nlm_hlp =
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# If this is specified, it will override $(NWOS)\copyright.txt.
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesFILE_nlm_copyright =
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# Any additional imports go here
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesFILES_nlm_Ximports = \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes @$(APR)/aprlib.imp \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes @$(NWOS)/httpd.imp \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes @libc.imp \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes $(EOLIST)
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# Any symbols exported to here
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesFILES_nlm_exports = \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes log_forensic_module \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes $(EOLIST)
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# These are the OBJ files needed to create the LIB target above.
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# Paths must all use the '/' character
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesFILES_lib_objs = \
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg $(EOLIST)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# implement targets and dependancies (leave this section alone)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholeslibs :: $(OBJDIR) $(TARGET_lib)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesnlms :: libs $(TARGET_nlm)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# Updated this target to create necessary directories and copy files to the
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesinstall :: nlms FORCE
f2f3f241c00a7a4bd597e57a19023940e072918abnicholes copy $(OBJDIR)\*.nlm $(INSTALL)\$(BASEDIR)\modules\*.*
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# Any specialized rules here
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# Include the 'tail' makefile that has targets that depend on variables defined
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# in this makefile
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes#
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesinclude $(AP_WORK)\build\NWGNUtail.inc
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes