NWGNUmoddumpio revision 8ffac2c334103c0336602aaede650cb578611151
1414N/A#
1414N/A# Make sure all needed macro's are defined
1414N/A#
1414N/A
1414N/A#
1414N/A# Get the 'head' of the build environment if necessary. This includes default
1414N/A# targets and paths to tools
1414N/A#
6983N/A
6983N/Aifndef EnvironmentDefined
1414N/Ainclude $(AP_WORK)/build/NWGNUhead.inc
1414N/Aendif
1414N/A
1414N/A#
6983N/A# These directories will be at the beginning of the include list, followed by
6983N/A# INCDIRS
6983N/A#
6983N/AXINCDIRS += \
1414N/A $(APR)/include \
1414N/A $(APRUTIL)/include \
1414N/A $(AP_WORK)/include \
1414N/A $(NWOS) \
1414N/A $(EOLIST)
4098N/A
4311N/A#
5287N/A# These flags will come after CFLAGS
1414N/A#
1414N/AXCFLAGS += \
1414N/A $(EOLIST)
1414N/A
1414N/A#
1414N/A# These defines will come after DEFINES
1414N/A#
4097N/AXDEFINES += \
1414N/A $(EOLIST)
1414N/A
1414N/A#
1414N/A# These flags will be added to the link.opt file
1414N/A#
1414N/AXLFLAGS += \
1414N/A $(EOLIST)
1414N/A
4081N/A#
1414N/A# These values will be appended to the correct variables based on the value of
1414N/A# RELEASE
1414N/A#
4290N/Aifeq "$(RELEASE)" "debug"
4290N/AXINCDIRS += \
1414N/A $(EOLIST)
1414N/A
1414N/AXCFLAGS += \
1414N/A $(EOLIST)
1414N/A
1414N/AXDEFINES += \
1414N/A $(EOLIST)
1414N/A
1414N/AXLFLAGS += \
1414N/A $(EOLIST)
4918N/Aendif
4918N/A
1414N/Aifeq "$(RELEASE)" "noopt"
1414N/AXINCDIRS += \
1414N/A $(EOLIST)
1414N/A
1414N/AXCFLAGS += \
1414N/A $(EOLIST)
1414N/A
1414N/AXDEFINES += \
1414N/A $(EOLIST)
1414N/A
1414N/AXLFLAGS += \
1414N/A $(EOLIST)
1414N/Aendif
1414N/A
1414N/Aifeq "$(RELEASE)" "release"
1414N/AXINCDIRS += \
1414N/A $(EOLIST)
1414N/A
1414N/AXCFLAGS += \
1414N/A $(EOLIST)
1414N/A
1414N/AXDEFINES += \
4081N/A $(EOLIST)
1414N/A
1414N/AXLFLAGS += \
1508N/A $(EOLIST)
2847N/Aendif
1414N/A
1414N/A#
1414N/A# These are used by the link target if an NLM is being generated
1414N/A# This is used by the link 'name' directive to name the nlm. If left blank
1414N/A# TARGET_nlm (see below) will be used.
1414N/A#
1414N/ANLM_NAME = moddumpio
1414N/A
1414N/A#
1414N/A# This is used by the link '-desc ' directive.
1414N/A# If left blank, NLM_NAME will be used.
1414N/A#
1414N/ANLM_DESCRIPTION = Apache $(VERSION_STR) Debugging IO Module
1414N/A
1414N/A#
4097N/A# This is used by the '-threadname' directive. If left blank,
1564N/A# NLM_NAME Thread will be used.
1414N/A#
1564N/ANLM_THREAD_NAME = DumpIO Module
1414N/A
1414N/A#
2847N/A# If this is specified, it will override VERSION value in
4097N/A# $(AP_WORK)/build/NWGNUenvironment.inc
4097N/A#
4097N/ANLM_VERSION =
4097N/A
4097N/A#
4290N/A# If this is specified, it will override the default of 64K
4290N/A#
4290N/ANLM_STACK_SIZE = 8192
4290N/A
4290N/A
4403N/A#
4290N/A# If this is specified it will be used by the link '-entry' directive
4097N/A#
4097N/ANLM_ENTRY_SYM =
4097N/A
4097N/A#
4097N/A# If this is specified it will be used by the link '-exit' directive
4097N/A#
4097N/ANLM_EXIT_SYM =
4097N/A
4097N/A#
4097N/A# If this is specified it will be used by the link '-check' directive
4097N/A#
4097N/ANLM_CHECK_SYM =
1414N/A
4097N/A#
4097N/A# If these are specified it will be used by the link '-flags' directive
4097N/A#
4097N/ANLM_FLAGS =
4097N/A
4290N/A#
4097N/A# If this is specified it will be linked in with the XDCData option in the def
4290N/A# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
4290N/A# by setting APACHE_UNIPROC in the environment
4290N/A#
4290N/AXDCDATA =
4290N/A
4290N/A#
4290N/A# If there is an NLM target, put it here
4097N/A#
4290N/ATARGET_nlm = \
4290N/A $(OBJDIR)/moddumpio.nlm \
4290N/A $(EOLIST)
4290N/A
4290N/A#
4097N/A# If there is an LIB target, put it here
4290N/A#
4290N/ATARGET_lib = \
4290N/A $(EOLIST)
4290N/A
4290N/A#
4290N/A# These are the OBJ files needed to create the NLM target above.
4290N/A# Paths must all use the '/' character
4290N/A#
4290N/AFILES_nlm_objs = \
4290N/A $(OBJDIR)/mod_dumpio.o \
4290N/A $(EOLIST)
4097N/A
4081N/A#
4290N/A# These are the LIB files needed to create the NLM target above.
4290N/A# These will be added as a library command in the link.opt file.
4290N/A#
4290N/AFILES_nlm_libs = \
4290N/A libcpre.o \
4290N/A $(EOLIST)
4290N/A
4290N/A#
4290N/A# These are the modules that the above NLM target depends on to load.
4290N/A# These will be added as a module command in the link.opt file.
4290N/A#
4290N/AFILES_nlm_modules = \
4097N/A aprlib \
1414N/A libc \
1414N/A $(EOLIST)
1414N/A
1414N/A#
1414N/A# If the nlm has a msg file, put it's path here
1414N/A#
1414N/AFILE_nlm_msg =
1414N/A
1414N/A#
1414N/A# If the nlm has a hlp file put it's path here
1414N/A#
4081N/AFILE_nlm_hlp =
1414N/A
1414N/A#
1414N/A# If this is specified, it will override $(NWOS)\copyright.txt.
4081N/A#
1414N/AFILE_nlm_copyright =
1414N/A
1414N/A#
1414N/A# Any additional imports go here
1414N/A#
1414N/AFILES_nlm_Ximports = \
1414N/A @aprlib.imp \
1414N/A @httpd.imp \
1414N/A @libc.imp \
1414N/A $(EOLIST)
1414N/A
1414N/A#
1414N/A# Any symbols exported to here
1414N/A#
1414N/AFILES_nlm_exports = \
1414N/A dumpio_module \
1414N/A $(EOLIST)
1414N/A
2478N/A#
2457N/A# These are the OBJ files needed to create the LIB target above.
2457N/A# Paths must all use the '/' character
2457N/A#
1414N/AFILES_lib_objs = \
1414N/A $(EOLIST)
1414N/A
1414N/A#
1414N/A# implement targets and dependancies (leave this section alone)
1414N/A#
1414N/A
1414N/Alibs :: $(OBJDIR) $(TARGET_lib)
1414N/A
1414N/Anlms :: libs $(TARGET_nlm)
1414N/A
1414N/A#
1414N/A# Updated this target to create necessary directories and copy files to the
2478N/A# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
2457N/A#
2457N/Ainstall :: nlms FORCE
2457N/A
1414N/A#
1414N/A# Any specialized rules here
1414N/A#
1414N/A
1414N/A#
1414N/A# Include the 'tail' makefile that has targets that depend on variables defined
1414N/A# in this makefile
1414N/A#
1414N/A
1414N/Ainclude $(APBUILD)/NWGNUtail.inc
1414N/A
1414N/A
1414N/A