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