NWGNUcach_dsk revision cf7ca2f9eaa6523fefcccba4287b91637391fb51
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovant# Declare the sub-directories to be built here
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovant
2cacab200fb387e290386593d9b2fca2e7beef33csovantSUBDIRS = \
2cacab200fb387e290386593d9b2fca2e7beef33csovant $(EOLIST)
2cacab200fb387e290386593d9b2fca2e7beef33csovant
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac# Get the 'head' of the build environment. This includes default targets and
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac# paths to tools
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovant
2cacab200fb387e290386593d9b2fca2e7beef33csovantinclude $(AP_WORK)/build/NWGNUhead.inc
2cacab200fb387e290386593d9b2fca2e7beef33csovant
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac#
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac# build this level's files
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac#
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac# Make sure all needed macro's are defined
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovant
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovant# These directories will be at the beginning of the include list, followed by
2cacab200fb387e290386593d9b2fca2e7beef33csovant# INCDIRS
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovantXINCDIRS += \
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant $(APR)/include \
2cacab200fb387e290386593d9b2fca2e7beef33csovant $(APRUTIL)/include \
2cacab200fb387e290386593d9b2fca2e7beef33csovant $(AP_WORK)/include \
2cacab200fb387e290386593d9b2fca2e7beef33csovant $(AP_WORK)/server/mpm/netware \
2cacab200fb387e290386593d9b2fca2e7beef33csovant $(NWOS) \
2cacab200fb387e290386593d9b2fca2e7beef33csovant $(EOLIST)
2cacab200fb387e290386593d9b2fca2e7beef33csovant
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant# These flags will come after CFLAGS
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovantXCFLAGS += \
2cacab200fb387e290386593d9b2fca2e7beef33csovant $(EOLIST)
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant#
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant# These defines will come after DEFINES
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant#
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantXDEFINES += \
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant $(EOLIST)
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant#
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant# These flags will be added to the link.opt file
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant#
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantXLFLAGS += \
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant $(EOLIST)
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant#
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant# These values will be appended to the correct variables based on the value of
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant# RELEASE
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant#
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantifeq "$(RELEASE)" "debug"
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantXINCDIRS += \
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant $(EOLIST)
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantXCFLAGS += \
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant $(EOLIST)
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantXDEFINES += \
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant $(EOLIST)
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantXLFLAGS += \
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant $(EOLIST)
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantendif
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantifeq "$(RELEASE)" "noopt"
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantXINCDIRS += \
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant $(EOLIST)
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantXCFLAGS += \
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant $(EOLIST)
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantXDEFINES += \
30bc8f42b7a3f724edb7cbc8e4e22e84e86c34cemadiot $(EOLIST)
30bc8f42b7a3f724edb7cbc8e4e22e84e86c34cemadiot
30bc8f42b7a3f724edb7cbc8e4e22e84e86c34cemadiotXLFLAGS += \
30bc8f42b7a3f724edb7cbc8e4e22e84e86c34cemadiot $(EOLIST)
30bc8f42b7a3f724edb7cbc8e4e22e84e86c34cemadiotendif
30bc8f42b7a3f724edb7cbc8e4e22e84e86c34cemadiot
30bc8f42b7a3f724edb7cbc8e4e22e84e86c34cemadiotifeq "$(RELEASE)" "release"
30bc8f42b7a3f724edb7cbc8e4e22e84e86c34cemadiotXINCDIRS += \
30bc8f42b7a3f724edb7cbc8e4e22e84e86c34cemadiot $(EOLIST)
30bc8f42b7a3f724edb7cbc8e4e22e84e86c34cemadiot
30bc8f42b7a3f724edb7cbc8e4e22e84e86c34cemadiotXCFLAGS += \
30bc8f42b7a3f724edb7cbc8e4e22e84e86c34cemadiot $(EOLIST)
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantXDEFINES += \
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant $(EOLIST)
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantXLFLAGS += \
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant $(EOLIST)
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantendif
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant#
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant# These are used by the link target if an NLM is being generated
30bc8f42b7a3f724edb7cbc8e4e22e84e86c34cemadiot# This is used by the link 'name' directive to name the nlm. If left blank
30bc8f42b7a3f724edb7cbc8e4e22e84e86c34cemadiot# TARGET_nlm (see below) will be used.
30bc8f42b7a3f724edb7cbc8e4e22e84e86c34cemadiot#
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantNLM_NAME = dsk_cach
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant#
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant# This is used by the link '-desc ' directive.
2cacab200fb387e290386593d9b2fca2e7beef33csovant# If left blank, NLM_NAME will be used.
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantNLM_DESCRIPTION = Apache $(VERSION_STR) Memory Cache Sub-Module
2cacab200fb387e290386593d9b2fca2e7beef33csovant
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant# This is used by the '-threadname' directive. If left blank,
2cacab200fb387e290386593d9b2fca2e7beef33csovant# NLM_NAME Thread will be used.
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovantNLM_THREAD_NAME = dsk_cach
2cacab200fb387e290386593d9b2fca2e7beef33csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovant# If this is specified, it will override VERSION value in
2cacab200fb387e290386593d9b2fca2e7beef33csovant# $(AP_WORK)/build/NWGNUenvironment.inc
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantNLM_VERSION =
2cacab200fb387e290386593d9b2fca2e7beef33csovant
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovant# If this is specified, it will override the default of 64K
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovantNLM_STACK_SIZE = 65536
2cacab200fb387e290386593d9b2fca2e7beef33csovant
2cacab200fb387e290386593d9b2fca2e7beef33csovant
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovant# If this is specified it will be used by the link '-entry' directive
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovantNLM_ENTRY_SYM =
2cacab200fb387e290386593d9b2fca2e7beef33csovant
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovant# If this is specified it will be used by the link '-exit' directive
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovantNLM_EXIT_SYM =
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovant# If this is specified it will be used by the link '-check' directive
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovantNLM_CHECK_SYM =
2cacab200fb387e290386593d9b2fca2e7beef33csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovant# If this is specified it will be used by the link '-flags' directive
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovantNLM_FLAGS =
2cacab200fb387e290386593d9b2fca2e7beef33csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovant# If this is specified it will be linked in with the XDCData option in the def
2cacab200fb387e290386593d9b2fca2e7beef33csovant# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant# by setting APACHE_UNIPROC in the environment
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
14b261d3730ec904daf290aac6ca6da54aeea0c0csovantXDCDATA =
2cacab200fb387e290386593d9b2fca2e7beef33csovant
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovant# Declare all target files (you must add your files here)
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovant
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovant# If there is an NLM target, put it here
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovantTARGET_nlm = \
2cacab200fb387e290386593d9b2fca2e7beef33csovant $(OBJDIR)/dsk_cach.nlm \
2cacab200fb387e290386593d9b2fca2e7beef33csovant $(EOLIST)
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant#
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant# If there is an LIB target, put it here
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant#
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantTARGET_lib = \
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant $(EOLIST)
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant#
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant# These are the OBJ files needed to create the NLM target above.
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant# Paths must all use the '/' character
30bc8f42b7a3f724edb7cbc8e4e22e84e86c34cemadiot#
30bc8f42b7a3f724edb7cbc8e4e22e84e86c34cemadiotFILES_nlm_objs = \
30bc8f42b7a3f724edb7cbc8e4e22e84e86c34cemadiot $(OBJDIR)/mod_cache_disk.o \
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant $(EOLIST)
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant#
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant# These are the LIB files needed to create the NLM target above.
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant# These will be added as a library command in the link.opt file.
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant#
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantFILES_nlm_libs = \
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant $(PRELUDE) \
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant $(EOLIST)
2cacab200fb387e290386593d9b2fca2e7beef33csovant
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovant# 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 = \
Apache2 \
Libc \
mod_cach \
$(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 = \
@libc.imp \
@aprlib.imp \
@httpd.imp \
@mod_cache.imp \
$(EOLIST)
#
# Any symbols exported to here
#
FILES_nlm_exports = \
cache_disk_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
#
# Any specialized rules here
#
#
# Include the 'tail' makefile that has targets that depend on variables defined
# in this makefile
#
include $(APBUILD)/NWGNUtail.inc