NWGNUmodbuffer revision 0662ed52e814f8f08ef0e09956413a792584eddf
842ae4bd224140319ae7feec1872b93dfd491143fielding# Declare the sub-directories to be built here
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# Get the 'head' of the build environment. This includes default targets and
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# paths to tools
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesinclude $(AP_WORK)/build/NWGNUhead.inc
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# build this level's files
e8f95a682820a599fe41b22977010636be5c2717jim# Make sure all needed macro's are defined
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# These directories will be at the beginning of the include list, followed by
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesXINCDIRS += \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes $(APR)/include \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes $(APRUTIL)/include \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes $(AP_WORK)/include \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# These flags will come after CFLAGS
5c0419d51818eb02045cf923a9fe456127a44c60wroweXCFLAGS += \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# These defines will come after DEFINES
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesXDEFINES += \
22f8da8087791fcb95b836c8a81937c5a9bba202bnicholes# These flags will be added to the link.opt file
cd3bbd6d2df78d6c75e5d159a81ef8bdd5f70df9trawick# These values will be appended to the correct variables based on the value of
0f60998368b493f90120180a93fc2e1e74490872covenerifeq "$(RELEASE)" "debug"
0f60998368b493f90120180a93fc2e1e74490872covenerXINCDIRS += \
0f60998368b493f90120180a93fc2e1e74490872covenerXCFLAGS += \
87587593f1a53030e840acc0dec6cc881022ea40covenerXDEFINES += \
87587593f1a53030e840acc0dec6cc881022ea40covenerXLFLAGS += \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesifeq "$(RELEASE)" "noopt"
43997561b2302d13dee973998e77743a3ddd2374trawickXINCDIRS += \
0568280364eb026393be492ebc732795c4934643jortonXCFLAGS += \
0568280364eb026393be492ebc732795c4934643jortonXDEFINES += \
0568280364eb026393be492ebc732795c4934643jortonXLFLAGS += \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesifeq "$(RELEASE)" "release"
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesXINCDIRS += \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesXDEFINES += \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# These are used by the link target if an NLM is being generated
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# This is used by the link 'name' directive to name the nlm. If left blank
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# TARGET_nlm (see below) will be used.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesNLM_NAME = modbuffer
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# This is used by the link '-desc ' directive.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# If left blank, NLM_NAME will be used.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesNLM_DESCRIPTION = Apache $(VERSION_STR) Buffer Module
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# This is used by the '-threadname' directive. If left blank,
95b6fe1346805e1731e6e97c15d569c73be22cf7minfrin# NLM_NAME Thread will be used.
95b6fe1346805e1731e6e97c15d569c73be22cf7minfrinNLM_THREAD_NAME = modbuffer
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# If this is specified, it will override VERSION value in
95b6fe1346805e1731e6e97c15d569c73be22cf7minfrinNLM_VERSION =
a1790fb35c4b352dab721370985c623a9f8f5062rpluem# If this is specified, it will override the default of 64K
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesNLM_STACK_SIZE = 8192
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# If this is specified it will be used by the link '-entry' directive
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwroweNLM_ENTRY_SYM =
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# If this is specified it will be used by the link '-exit' directive
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesNLM_EXIT_SYM =
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# If this is specified it will be used by the link '-check' directive
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesNLM_CHECK_SYM =
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# If these are specified it will be used by the link '-flags' directive
fa123db15501821e36e513afa78e839775ad2800covener# If this is specified it will be linked in with the XDCData option in the def
fa123db15501821e36e513afa78e839775ad2800covener# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
fa123db15501821e36e513afa78e839775ad2800covener# by setting APACHE_UNIPROC in the environment
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovener# If there is an NLM target, put it here
a81c0c1ae464b2063a21b45f80c9da8d89bb840ecovenerTARGET_nlm = \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# If there is an LIB target, put it here
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesTARGET_lib = \
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovener# These are the OBJ files needed to create the NLM target above.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# Paths must all use the '/' character
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesFILES_nlm_objs = \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# These are the LIB files needed to create the NLM target above.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# These will be added as a library command in the link.opt file.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesFILES_nlm_libs = \
fa123db15501821e36e513afa78e839775ad2800covener# These are the modules that the above NLM target depends on to load.
cceddc0b6c0fdaed0c73abda39975bb1d388243acovener# These will be added as a module command in the link.opt file.
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovenerFILES_nlm_modules = \
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovener# If the nlm has a msg file, put it's path here
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovenerFILE_nlm_msg =
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovener# If the nlm has a hlp file put it's path here
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovenerFILE_nlm_hlp =
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovener# If this is specified, it will override $(NWOS)\copyright.txt.
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovenerFILE_nlm_copyright =
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovener# Any additional imports go here
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovenerFILES_nlm_Ximports = \
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovener# Any symbols exported to here
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovenerFILES_nlm_exports = \
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovener buffer_module \
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovener# These are the OBJ files needed to create the LIB target above.
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovener# Paths must all use the '/' character
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesFILES_lib_objs = \
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovener# implement targets and dependancies (leave this section alone)
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovenerlibs :: $(OBJDIR) $(TARGET_lib)
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovenernlms :: libs $(TARGET_nlm)
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovener# Updated this target to create necessary directories and copy files to the
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovener# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovenerinstall :: nlms FORCE
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# Any specialized rules here
0e05808dc59a321566303084c84b9826a4353cefrederpj# Include the 'tail' makefile that has targets that depend on variables defined
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# in this makefile
54d22ed1c429b903b029bbd62621f11a9e286137minfrininclude $(APBUILD)/NWGNUtail.inc