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 $(SRC)/include \
5c0419d51818eb02045cf923a9fe456127a44c60wrowe# These flags will come after CFLAGS
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# These defines will come after DEFINES
d266c3777146d36a4c23c17aad6f153aebea1bf4jortonXDEFINES += \
22f8da8087791fcb95b836c8a81937c5a9bba202bnicholes# These flags will be added to the link.opt file
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# These values will be appended to the correct variables based on the value of
0f60998368b493f90120180a93fc2e1e74490872covenerifeq "$(RELEASE)" "debug"
0f60998368b493f90120180a93fc2e1e74490872covenerXINCDIRS += \
0f60998368b493f90120180a93fc2e1e74490872covenerXCFLAGS += \
87587593f1a53030e840acc0dec6cc881022ea40covenerXDEFINES += \
0568280364eb026393be492ebc732795c4934643jortonifeq "$(RELEASE)" "noopt"
0568280364eb026393be492ebc732795c4934643jortonXINCDIRS += \
0568280364eb026393be492ebc732795c4934643jortonXCFLAGS += \
0568280364eb026393be492ebc732795c4934643jortonXDEFINES += \
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovenerXLFLAGS += \
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 = example_ipc
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# This is used by the link '-desc ' directive.
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe# If left blank, NLM_NAME will be used.
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwroweNLM_DESCRIPTION = Apache $(VERSION_STR) Example IPC Callback Handler Module
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# This is used by the '-threadname' directive. If left blank,
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# NLM_NAME Thread will be used.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesNLM_THREAD_NAME = Example IPC Callback Handler Module
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# If this is specified, it will override VERSION value in
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesNLM_VERSION =
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# If this is specified, it will override the default of 64K
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwroweNLM_STACK_SIZE = 8192
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# If this is specified it will be used by the link '-entry' directive
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesNLM_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
8113dac419143273351446c3ad653f3fe5ba5cfdwroweNLM_CHECK_SYM =
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# If these are specified it will be used by the link '-flags' directive
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# If this is specified it will be linked in with the XDCData option in the def
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# by setting APACHE_UNIPROC in the environment
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovener# If there is an NLM target, put it here
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovenerTARGET_nlm = \
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovener# If there is an LIB target, put it here
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesTARGET_lib = \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# These are the OBJ files needed to create the NLM target above.
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovener# Paths must all use the '/' character
8113dac419143273351446c3ad653f3fe5ba5cfdwroweFILES_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 = \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes $(PRELUDE) \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# These are the modules that the above NLM target depends on to load.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# These will be added as a module command in the link.opt file.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesFILES_nlm_modules = \
8113dac419143273351446c3ad653f3fe5ba5cfdwrowe# If the nlm has a msg file, put it's path here
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesFILE_nlm_msg =
9ad7b260be233be7d7b5576979825cac72e15498rederpj# If the nlm has a hlp file put it's path here
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesFILE_nlm_hlp =
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# If this is specified, it will override $(NWOS)\copyright.txt.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesFILE_nlm_copyright =
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes# Any additional imports go here
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesFILES_nlm_Ximports = \
e8f95a682820a599fe41b22977010636be5c2717jim# Any symbols exported to here
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovenerFILES_nlm_exports = \
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovener example_ipc_module \
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovener# These are the OBJ files needed to create the LIB target above.
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovener# Paths must all use the '/' character
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovenerFILES_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
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovener# Any specialized rules here
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovener# Include the 'tail' makefile that has targets that depend on variables defined
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovener# in this makefile
4e9c24785b525d2956e6e381015c0f2bd0a72f4bcovenerinclude $(APBUILD)/NWGNUtail.inc