NWGNUmodbuffer revision 8ffac2c334103c0336602aaede650cb578611151
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# Declare the sub-directories to be built here
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiSUBDIRS = \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi $(EOLIST)
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# Get the 'head' of the build environment. This includes default targets and
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# paths to tools
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumiinclude $(AP_WORK)/build/NWGNUhead.inc
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# build this level's files
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# Make sure all needed macro's are defined
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# These directories will be at the beginning of the include list, followed by
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# INCDIRS
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiXINCDIRS += \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi $(APR)/include \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi $(APRUTIL)/include \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi $(AP_WORK)/include \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi $(NWOS) \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi $(EOLIST)
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# These flags will come after CFLAGS
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiXCFLAGS += \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi $(EOLIST)
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# These defines will come after DEFINES
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiXDEFINES += \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi $(EOLIST)
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# These flags will be added to the link.opt file
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiXLFLAGS += \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi $(EOLIST)
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# These values will be appended to the correct variables based on the value of
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# RELEASE
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumiifeq "$(RELEASE)" "debug"
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiXINCDIRS += \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi $(EOLIST)
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiXCFLAGS += \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi $(EOLIST)
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiXDEFINES += \
dc421f3aac1f0e516c763dd156629a8ed2a7b4caKATOH Yasufumi $(EOLIST)
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiXLFLAGS += \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi $(EOLIST)
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumiendif
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumiifeq "$(RELEASE)" "noopt"
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiXINCDIRS += \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi $(EOLIST)
dc421f3aac1f0e516c763dd156629a8ed2a7b4caKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiXCFLAGS += \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi $(EOLIST)
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiXDEFINES += \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi $(EOLIST)
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumi
b0c80583231d50bc05c2be34c999e5f29843d478KATOH YasufumiXLFLAGS += \
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumi $(EOLIST)
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumiendif
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumiifeq "$(RELEASE)" "release"
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiXINCDIRS += \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi $(EOLIST)
dc421f3aac1f0e516c763dd156629a8ed2a7b4caKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiXCFLAGS += \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi $(EOLIST)
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiXDEFINES += \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi $(EOLIST)
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiXLFLAGS += \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi $(EOLIST)
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumiendif
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# These are used by the link target if an NLM is being generated
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# This is used by the link 'name' directive to name the nlm. If left blank
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# TARGET_nlm (see below) will be used.
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiNLM_NAME = modbuffer
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumi# This is used by the link '-desc ' directive.
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumi# If left blank, NLM_NAME will be used.
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumi#
b0c80583231d50bc05c2be34c999e5f29843d478KATOH YasufumiNLM_DESCRIPTION = Apache $(VERSION_STR) Buffer Module
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumi
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumi#
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumi# This is used by the '-threadname' directive. If left blank,
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumi# NLM_NAME Thread will be used.
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumi#
b0c80583231d50bc05c2be34c999e5f29843d478KATOH YasufumiNLM_THREAD_NAME = modbuffer
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumi
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumi#
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumi# If this is specified, it will override VERSION value in
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumi# $(AP_WORK)/build/NWGNUenvironment.inc
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiNLM_VERSION =
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# If this is specified, it will override the default of 64K
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiNLM_STACK_SIZE = 8192
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
dc421f3aac1f0e516c763dd156629a8ed2a7b4caKATOH Yasufumi# If this is specified it will be used by the link '-entry' directive
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiNLM_ENTRY_SYM =
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# If this is specified it will be used by the link '-exit' directive
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiNLM_EXIT_SYM =
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# If this is specified it will be used by the link '-check' directive
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiNLM_CHECK_SYM =
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
dc421f3aac1f0e516c763dd156629a8ed2a7b4caKATOH Yasufumi# If these are specified it will be used by the link '-flags' directive
dc421f3aac1f0e516c763dd156629a8ed2a7b4caKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiNLM_FLAGS =
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# If this is specified it will be linked in with the XDCData option in the def
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# by setting APACHE_UNIPROC in the environment
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiXDCDATA =
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# If there is an NLM target, put it here
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumi#
b0c80583231d50bc05c2be34c999e5f29843d478KATOH YasufumiTARGET_nlm = \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi $(OBJDIR)/modbuffer.nlm \
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumi $(EOLIST)
dc421f3aac1f0e516c763dd156629a8ed2a7b4caKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# If there is an LIB target, put it here
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiTARGET_lib = \
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumi $(EOLIST)
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumi
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumi#
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumi# These are the OBJ files needed to create the NLM target above.
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumi# Paths must all use the '/' character
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumi#
b0c80583231d50bc05c2be34c999e5f29843d478KATOH YasufumiFILES_nlm_objs = \
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumi $(OBJDIR)/mod_buffer.o \
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumi $(EOLIST)
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumi
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumi#
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumi# These are the LIB files needed to create the NLM target above.
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumi# These will be added as a library command in the link.opt file.
b0c80583231d50bc05c2be34c999e5f29843d478KATOH Yasufumi#
b0c80583231d50bc05c2be34c999e5f29843d478KATOH YasufumiFILES_nlm_libs = \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi libcpre.o \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi $(EOLIST)
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# These are the modules that the above NLM target depends on to load.
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# These will be added as a module command in the link.opt file.
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiFILES_nlm_modules = \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi aprlib \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi libc \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi $(EOLIST)
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# If the nlm has a msg file, put it's path here
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiFILE_nlm_msg =
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# If the nlm has a hlp file put it's path here
51fded061acaff647a9f616d1591cbd4c452877eSungbae Yoo#
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiFILE_nlm_hlp =
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# If this is specified, it will override $(NWOS)\copyright.txt.
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiFILE_nlm_copyright =
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# Any additional imports go here
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiFILES_nlm_Ximports = \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi @aprlib.imp \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi @httpd.imp \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi @libc.imp \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi $(EOLIST)
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi# Any symbols exported to here
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi#
07ece60087c22f03fac080edad21a2620d5737efKATOH YasufumiFILES_nlm_exports = \
07ece60087c22f03fac080edad21a2620d5737efKATOH Yasufumi buffer_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