89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# The MOD_DEFLATE module requires the ZLib source which
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# can be downloaded from http://www.gzip.org/zlib/
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# Declare the sub-directories to be built here
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# Get the 'head' of the build environment. This includes default targets and
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# paths to tools
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(AP_WORK)/build/NWGNUhead.inc
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# build this level's files
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# Make sure all needed macro's are defined
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# These directories will be at the beginning of the include list, followed by
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholesXINCDIRS += \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(APR)/include \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(APRUTIL)/include \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(SRC)/include \
3657144c4d0dd0dbba573364c60a275c03562ecafuankg $(STDMOD)/ssl \
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# These flags will come after CFLAGS
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# These defines will come after DEFINES
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholesXDEFINES += \
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# These flags will be added to the link.opt file
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# These values will be appended to the correct variables based on the value of
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholesifeq "$(RELEASE)" "debug"
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholesXINCDIRS += \
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholesXDEFINES += \
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholesifeq "$(RELEASE)" "noopt"
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholesXINCDIRS += \
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholesXDEFINES += \
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholesifeq "$(RELEASE)" "release"
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholesXINCDIRS += \
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholesXDEFINES += \
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# These are used by the link target if an NLM is being generated
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# This is used by the link 'name' directive to name the nlm. If left blank
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# TARGET_nlm (see below) will be used.
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_NAME = deflate
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# This is used by the link '-desc ' directive.
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# If left blank, NLM_NAME will be used.
0a39e7683f6611d66c55712f50bb240428d832a1bnicholesNLM_DESCRIPTION = Apache $(VERSION_STR) Deflate Module
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# This is used by the '-threadname' directive. If left blank,
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# NLM_NAME Thread will be used.
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholesNLM_THREAD_NAME = Deflate Module
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# If this is specified, it will override VERSION value in
7327fccdcaf7d6f4a027c8ae33f004f3a2c6b23bbnicholesNLM_VERSION =
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# If this is specified, it will override the default of 64K
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholesNLM_STACK_SIZE = 8192
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# If this is specified it will be used by the link '-entry' directive
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_ENTRY_SYM =
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# If this is specified it will be used by the link '-exit' directive
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_EXIT_SYM =
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# If this is specified it will be used by the link '-check' directive
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholesNLM_CHECK_SYM =
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# If these are specified it will be used by the link '-flags' directive
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# If this is specified it will be linked in with the XDCData option in the def
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# by setting APACHE_UNIPROC in the environment
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# If there is an NLM target, put it here
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholesTARGET_nlm = \
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# If there is an LIB target, put it here
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholesTARGET_lib = \
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# These are the OBJ files needed to create the NLM target above.
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# Paths must all use the '/' character
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholesFILES_nlm_objs = \
7327fccdcaf7d6f4a027c8ae33f004f3a2c6b23bbnicholesifeq "$(wildcard $(ZLIBSDK)/infblock.c)" "$(ZLIBSDK)/infblock.c"
7327fccdcaf7d6f4a027c8ae33f004f3a2c6b23bbnicholesFILES_nlm_objs += \
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# These are the LIB files needed to create the NLM target above.
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# These will be added as a library command in the link.opt file.
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholesFILES_nlm_libs = \
cf7ca2f9eaa6523fefcccba4287b91637391fb51fuankg $(PRELUDE) \
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# These are the modules that the above NLM target depends on to load.
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# These will be added as a module command in the link.opt file.
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholesFILES_nlm_modules = \
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# If the nlm has a msg file, put it's path here
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholesFILE_nlm_msg =
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# If the nlm has a hlp file put it's path here
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholesFILE_nlm_hlp =
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# If this is specified, it will override $(NWOS)\copyright.txt.
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholesFILE_nlm_copyright =
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# Any additional imports go here
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholesFILES_nlm_Ximports = \
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# Any symbols exported to here
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholesFILES_nlm_exports = \
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes deflate_module \
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# These are the OBJ files needed to create the LIB target above.
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# Paths must all use the '/' character
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholesFILES_lib_objs = \
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# implement targets and dependancies (leave this section alone)
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholeslibs :: $(OBJDIR) $(TARGET_lib)
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholesnlms :: libs $(TARGET_nlm)
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# Updated this target to create necessary directories and copy files to the
0662ed52e814f8f08ef0e09956413a792584eddffuankg# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholesinstall :: nlms FORCE
00d1c0c914426a97022d8205a875c48b211001c2fuankg $(call COPY,$(OBJDIR)/*.nlm, $(INSTALLBASE)/modules/)
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# Any specialized rules here
7327fccdcaf7d6f4a027c8ae33f004f3a2c6b23bbnicholesvpath %.c $(ZLIBSDK)
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# Include the 'tail' makefile that has targets that depend on variables defined
89e6bcf8850d6797ea01043ee64baef963ddf671bnicholes# in this makefile
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(APBUILD)/NWGNUtail.inc