NWGNUforensic revision 00d1c0c914426a97022d8205a875c48b211001c2
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina#
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina# Declare the sub-directories to be built here
054900ab42a8b865a2257f94c66484e0a022a90cLukas Slebodnik#
054900ab42a8b865a2257f94c66484e0a022a90cLukas Slebodnik
054900ab42a8b865a2257f94c66484e0a022a90cLukas SlebodnikSUBDIRS = \
054900ab42a8b865a2257f94c66484e0a022a90cLukas Slebodnik $(EOLIST)
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina#
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina# Get the 'head' of the build environment. This includes default targets and
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina# paths to tools
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina#
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březinainclude $(AP_WORK)/build/NWGNUhead.inc
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio#
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio# build this level's files
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina#
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina# Make sure all needed macro's are defined
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina#
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina#
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina# These directories will be at the beginning of the include list, followed by
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina# INCDIRS
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina#
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel BřezinaXINCDIRS += \
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina $(APR)/include \
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina $(APRUTIL)/include \
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina $(AP_WORK)/include \
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina $(AP_WORK)/modules/http \
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina $(NWOS) \
c3a225d4d735d3a01883125592dda7a030a64e00Jakub Hrozek $(EOLIST)
c3a225d4d735d3a01883125592dda7a030a64e00Jakub Hrozek
c3a225d4d735d3a01883125592dda7a030a64e00Jakub Hrozek#
c3a225d4d735d3a01883125592dda7a030a64e00Jakub Hrozek# These flags will come after CFLAGS
c3a225d4d735d3a01883125592dda7a030a64e00Jakub Hrozek#
c3a225d4d735d3a01883125592dda7a030a64e00Jakub HrozekXCFLAGS += \
c3a225d4d735d3a01883125592dda7a030a64e00Jakub Hrozek $(EOLIST)
c3a225d4d735d3a01883125592dda7a030a64e00Jakub Hrozek
c3a225d4d735d3a01883125592dda7a030a64e00Jakub Hrozek#
c3a225d4d735d3a01883125592dda7a030a64e00Jakub Hrozek# These defines will come after DEFINES
c3a225d4d735d3a01883125592dda7a030a64e00Jakub Hrozek#
c3a225d4d735d3a01883125592dda7a030a64e00Jakub HrozekXDEFINES += \
f2047f6c5b56d6759bd8e6d504f572a593476c65Pavel Březina $(EOLIST)
c3a225d4d735d3a01883125592dda7a030a64e00Jakub Hrozek
c3a225d4d735d3a01883125592dda7a030a64e00Jakub Hrozek#
c3a225d4d735d3a01883125592dda7a030a64e00Jakub Hrozek# These flags will be added to the link.opt file
c3a225d4d735d3a01883125592dda7a030a64e00Jakub Hrozek#
c3a225d4d735d3a01883125592dda7a030a64e00Jakub HrozekXLFLAGS += \
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio $(EOLIST)
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio#
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio# These values will be appended to the correct variables based on the value of
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio# RELEASE
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio#
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncioifeq "$(RELEASE)" "debug"
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano FidêncioXINCDIRS += \
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio $(EOLIST)
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano FidêncioXCFLAGS += \
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio $(EOLIST)
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel BřezinaXDEFINES += \
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina $(EOLIST)
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel BřezinaXLFLAGS += \
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina $(EOLIST)
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březinaendif
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březinaifeq "$(RELEASE)" "noopt"
c3a225d4d735d3a01883125592dda7a030a64e00Jakub HrozekXINCDIRS += \
c3a225d4d735d3a01883125592dda7a030a64e00Jakub Hrozek $(EOLIST)
c3a225d4d735d3a01883125592dda7a030a64e00Jakub Hrozek
c3a225d4d735d3a01883125592dda7a030a64e00Jakub HrozekXCFLAGS += \
c3a225d4d735d3a01883125592dda7a030a64e00Jakub Hrozek $(EOLIST)
c3a225d4d735d3a01883125592dda7a030a64e00Jakub Hrozek
c3a225d4d735d3a01883125592dda7a030a64e00Jakub HrozekXDEFINES += \
c3a225d4d735d3a01883125592dda7a030a64e00Jakub Hrozek $(EOLIST)
c3a225d4d735d3a01883125592dda7a030a64e00Jakub Hrozek
c3a225d4d735d3a01883125592dda7a030a64e00Jakub HrozekXLFLAGS += \
c3a225d4d735d3a01883125592dda7a030a64e00Jakub Hrozek $(EOLIST)
c3a225d4d735d3a01883125592dda7a030a64e00Jakub Hrozekendif
c3a225d4d735d3a01883125592dda7a030a64e00Jakub Hrozek
c3a225d4d735d3a01883125592dda7a030a64e00Jakub Hrozekifeq "$(RELEASE)" "release"
c3a225d4d735d3a01883125592dda7a030a64e00Jakub HrozekXINCDIRS += \
f2047f6c5b56d6759bd8e6d504f572a593476c65Pavel Březina $(EOLIST)
c3a225d4d735d3a01883125592dda7a030a64e00Jakub Hrozek
c3a225d4d735d3a01883125592dda7a030a64e00Jakub HrozekXCFLAGS += \
f2047f6c5b56d6759bd8e6d504f572a593476c65Pavel Březina $(EOLIST)
c3a225d4d735d3a01883125592dda7a030a64e00Jakub Hrozek
c3a225d4d735d3a01883125592dda7a030a64e00Jakub HrozekXDEFINES += \
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio $(EOLIST)
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano FidêncioXLFLAGS += \
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio $(EOLIST)
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncioendif
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio#
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina# These are used by the link target if an NLM is being generated
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina# This is used by the link 'name' directive to name the nlm. If left blank
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina# TARGET_nlm (see below) will be used.
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina#
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel BřezinaNLM_NAME = forensic
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina#
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina# This is used by the link '-desc ' directive.
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina# If left blank, NLM_NAME will be used.
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina#
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel BřezinaNLM_DESCRIPTION = Apache $(VERSION_STR) Forensic Logging Module
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio#
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio# This is used by the '-threadname' directive. If left blank,
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio# NLM_NAME Thread will be used.
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio#
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano FidêncioNLM_THREAD_NAME = Forensic Module
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio#
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio# If this is specified, it will override VERSION value in
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio# $(AP_WORK)/build/NWGNUenvironment.inc
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio#
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano FidêncioNLM_VERSION =
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio#
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio# If this is specified, it will override the default of 64K
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano Fidêncio#
851d31264c826d7e1bca38bb6d49e66b446707e7Fabiano FidêncioNLM_STACK_SIZE = 8192
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina#
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina# If this is specified it will be used by the link '-entry' directive
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina#
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel BřezinaNLM_ENTRY_SYM =
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina#
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina# If this is specified it will be used by the link '-exit' directive
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina#
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel BřezinaNLM_EXIT_SYM =
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina#
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina# If this is specified it will be used by the link '-check' directive
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina#
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel BřezinaNLM_CHECK_SYM =
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina#
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina# If these are specified it will be used by the link '-flags' directive
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina#
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel BřezinaNLM_FLAGS =
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina
04e870d99e72aa3160bdb6ab05d986fb4005c3edPavel Březina#
# If this is specified it will be linked in with the XDCData option in the def
# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
# by setting APACHE_UNIPROC in the environment
#
XDCDATA =
#
# If there is an NLM target, put it here
#
TARGET_nlm = \
$(OBJDIR)/forensic.nlm \
$(EOLIST)
#
# If there is an LIB target, put it here
#
TARGET_lib = \
$(EOLIST)
#
# These are the OBJ files needed to create the NLM target above.
# Paths must all use the '/' character
#
FILES_nlm_objs = \
$(OBJDIR)/mod_log_forensic.o \
$(EOLIST)
#
# These are the LIB files needed to create the NLM target above.
# These will be added as a library command in the link.opt file.
#
FILES_nlm_libs = \
$(PRELUDE) \
$(EOLIST)
#
# These are the modules that the above NLM target depends on to load.
# These will be added as a module command in the link.opt file.
#
FILES_nlm_modules = \
aprlib \
libc \
$(EOLIST)
#
# If the nlm has a msg file, put it's path here
#
FILE_nlm_msg =
#
# If the nlm has a hlp file put it's path here
#
FILE_nlm_hlp =
#
# If this is specified, it will override $(NWOS)\copyright.txt.
#
FILE_nlm_copyright =
#
# Any additional imports go here
#
FILES_nlm_Ximports = \
@aprlib.imp \
@httpd.imp \
@libc.imp \
$(EOLIST)
#
# Any symbols exported to here
#
FILES_nlm_exports = \
log_forensic_module \
$(EOLIST)
#
# These are the OBJ files needed to create the LIB target above.
# Paths must all use the '/' character
#
FILES_lib_objs = \
$(EOLIST)
#
# implement targets and dependancies (leave this section alone)
#
libs :: $(OBJDIR) $(TARGET_lib)
nlms :: libs $(TARGET_nlm)
#
# Updated this target to create necessary directories and copy files to the
# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
#
install :: nlms FORCE
$(call COPY,$(OBJDIR)/*.nlm, $(INSTALLBASE)/modules/)
#
# Any specialized rules here
#
#
# Include the 'tail' makefile that has targets that depend on variables defined
# in this makefile
#
include $(APBUILD)/NWGNUtail.inc