NWGNUdeflate revision 8495845a800cf09321436aed996188c9a92cd647
0N/A#
0N/A# The MOD_DEFLATE module requires the ZLib source which
0N/A# can be downloaded from http://www.gzip.org/zlib/
0N/A#
407N/A# Declare the sub-directories to be built here
0N/A#
0N/A
0N/ASUBDIRS = \
0N/A $(EOLIST)
0N/A
0N/A#
0N/A# Get the 'head' of the build environment. This includes default targets and
0N/A# paths to tools
0N/A#
0N/A
0N/Ainclude $(AP_WORK)\build\NWGNUhead.inc
0N/A
0N/A#
0N/A# build this level's files
0N/A
929N/A#
0N/A# Make sure all needed macro's are defined
0N/A#
0N/A
0N/A#
392N/A# These directories will be at the beginning of the include list, followed by
392N/A# INCDIRS
392N/A#
392N/AXINCDIRS += \
392N/A $(AP_WORK)/include \
392N/A $(NWOS) \
392N/A $(AP_WORK)/modules/arch/netware \
392N/A $(AP_WORK)/srclib/apr/include \
457N/A $(AP_WORK)/srclib/apr-util/include \
392N/A $(AP_WORK)/srclib/apr \
392N/A $(AP_WORK)/srclib/zlib \
392N/A $(EOLIST)
392N/A
392N/A#
392N/A# These flags will come after CFLAGS
392N/A#
392N/AXCFLAGS += \
392N/A -prefix pre_nw.h \
392N/A $(EOLIST)
392N/A
392N/A#
392N/A# These defines will come after DEFINES
392N/A#
392N/AXDEFINES += \
392N/A $(EOLIST)
392N/A
392N/A#
392N/A# These flags will be added to the link.opt file
392N/A#
392N/AXLFLAGS += \
392N/A $(EOLIST)
99N/A
392N/A#
392N/A# These values will be appended to the correct variables based on the value of
392N/A# RELEASE
392N/A#
392N/Aifeq "$(RELEASE)" "debug"
30N/AXINCDIRS += \
0N/A $(EOLIST)
0N/A
0N/AXCFLAGS += \
0N/A $(EOLIST)
0N/A
0N/AXDEFINES += \
929N/A $(EOLIST)
0N/A
0N/AXLFLAGS += \
527N/A $(EOLIST)
456N/Aendif
527N/A
527N/Aifeq "$(RELEASE)" "noopt"
527N/AXINCDIRS += \
527N/A $(EOLIST)
202N/A
202N/AXCFLAGS += \
0N/A $(EOLIST)
457N/A
457N/AXDEFINES += \
457N/A $(EOLIST)
0N/A
0N/AXLFLAGS += \
0N/A $(EOLIST)
456N/Aendif
0N/A
508N/Aifeq "$(RELEASE)" "release"
889N/AXINCDIRS += \
0N/A $(EOLIST)
0N/A
0N/AXCFLAGS += \
527N/A $(EOLIST)
527N/A
889N/AXDEFINES += \
889N/A $(EOLIST)
889N/A
889N/AXLFLAGS += \
889N/A $(EOLIST)
889N/Aendif
889N/A
889N/A#
889N/A# These are used by the link target if an NLM is being generated
0N/A# This is used by the link 'name' directive to name the nlm. If left blank
889N/A# TARGET_nlm (see below) will be used.
889N/A#
527N/ANLM_NAME = deflate
99N/A
99N/A#
99N/A# This is used by the link '-desc ' directive.
0N/A# If left blank, NLM_NAME will be used.
0N/A#
0N/ANLM_DESCRIPTION = Deflate Module
457N/A
0N/A#
0N/A# This is used by the '-threadname' directive. If left blank,
527N/A# NLM_NAME Thread will be used.
457N/A#
0N/ANLM_THREAD_NAME = Deflate Module
0N/A
527N/A#
0N/A# If this is specified, it will override VERSION value in
0N/A# $(AP_WORK)\build\NWGNUenvironment.inc
0N/A#
527N/ANLM_VERSION =
0N/A
527N/A#
527N/A# If this is specified, it will override the default of 64K
0N/A#
527N/ANLM_STACK_SIZE = 8192
0N/A
527N/A
0N/A#
527N/A# If this is specified it will be used by the link '-entry' directive
0N/A#
0N/ANLM_ENTRY_SYM = _LibCPrelude
0N/A
0N/A#
527N/A# If this is specified it will be used by the link '-exit' directive
527N/A#
0N/ANLM_EXIT_SYM = _LibCPostlude
0N/A
527N/A#
527N/A# If this is specified it will be used by the link '-check' directive
0N/A#
0N/ANLM_CHECK_SYM =
527N/A
527N/A#
0N/A# If these are specified it will be used by the link '-flags' directive
0N/A#
1190N/ANLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
929N/A
527N/A#
0N/A# If this is specified it will be linked in with the XDCData option in the def
0N/A# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
527N/A# by setting APACHE_UNIPROC in the environment
0N/A#
527N/AXDCDATA =
527N/A
0N/A#
527N/A# If there is an NLM target, put it here
0N/A#
0N/ATARGET_nlm = \
527N/A $(OBJDIR)/deflate.nlm \
527N/A $(EOLIST)
527N/A
0N/A#
0N/A# If there is an LIB target, put it here
0N/A#
527N/ATARGET_lib = \
392N/A $(EOLIST)
392N/A
527N/A#
0N/A# These are the OBJ files needed to create the NLM target above.
0N/A# Paths must all use the '/' character
527N/A#
527N/AFILES_nlm_objs = \
0N/A $(OBJDIR)/mod_deflate.o \
527N/A $(OBJDIR)/adler32.o \
0N/A $(OBJDIR)/crc32.o \
0N/A $(OBJDIR)/deflate.o \
0N/A $(OBJDIR)/trees.o \
527N/A $(OBJDIR)/zutil.o \
527N/A $(EOLIST)
0N/A
0N/A#
0N/A# These are the LIB files needed to create the NLM target above.
0N/A# These will be added as a library command in the link.opt file.
527N/A#
0N/AFILES_nlm_libs = \
0N/A libcpre.o \
0N/A $(EOLIST)
0N/A
0N/A#
0N/A# These are the modules that the above NLM target depends on to load.
527N/A# These will be added as a module command in the link.opt file.
436N/A#
436N/AFILES_nlm_modules = \
436N/A aprlib \
436N/A libc \
436N/A $(EOLIST)
436N/A
0N/A#
0N/A# If the nlm has a msg file, put it's path here
436N/A#
436N/AFILE_nlm_msg =
436N/A
436N/A#
0N/A# If the nlm has a hlp file put it's path here
0N/A#
527N/AFILE_nlm_hlp =
527N/A
0N/A#
0N/A# If this is specified, it will override $(NWOS)\copyright.txt.
0N/A#
527N/AFILE_nlm_copyright =
392N/A
392N/A#
0N/A# Any additional imports go here
0N/A#
0N/AFILES_nlm_Ximports = \
527N/A @$(APR)/aprlib.imp \
527N/A @$(NWOS)/httpd.imp \
0N/A @libc.imp \
527N/A $(EOLIST)
0N/A
527N/A#
527N/A# Any symbols exported to here
0N/A#
0N/AFILES_nlm_exports = \
0N/A deflate_module \
527N/A $(EOLIST)
392N/A
392N/A#
0N/A# These are the OBJ files needed to create the LIB target above.
0N/A# Paths must all use the '/' character
0N/A#
0N/AFILES_lib_objs = \
527N/A $(EOLIST)
527N/A
0N/A#
527N/A# implement targets and dependancies (leave this section alone)
527N/A#
0N/A
0N/Alibs :: $(OBJDIR) $(TARGET_lib)
527N/A
0N/Anlms :: libs $(TARGET_nlm)
527N/A
0N/A#
527N/A# Updated this target to create necessary directories and copy files to the
0N/A# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
392N/A#
0N/Ainstall :: nlms FORCE
0N/A
0N/A#
527N/A# Any specialized rules here
527N/A#
527N/A
0N/A$(OBJDIR)/%.o: ../../srclib/zlib/%.c $(OBJDIR)\cc.opt
0N/A @echo Compiling $<
527N/A $(CC) ..\..\srclib\zlib\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
527N/A
0N/A
527N/A#
0N/A# Include the 'tail' makefile that has targets that depend on variables defined
0N/A# in this makefile
0N/A#
0N/A
0N/Ainclude $(AP_WORK)\build\NWGNUtail.inc
527N/A
527N/A
527N/A
527N/A