420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# Declare the sub-directories to be built here
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# Get the 'head' of the build environment. This includes default targets and
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# paths to tools
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(AP_WORK)/build/NWGNUhead.inc
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# build this level's files
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# Make sure all needed macro's are defined
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# These directories will be at the beginning of the include list, followed by
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesXINCDIRS += \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(APR)/include \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(APRUTIL)/include \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(SRC)/include \
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# These flags will come after CFLAGS
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# These defines will come after DEFINES
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesXDEFINES += \
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# These flags will be added to the link.opt file
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# These values will be appended to the correct variables based on the value of
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesifeq "$(RELEASE)" "debug"
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesXINCDIRS += \
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesXDEFINES += \
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesifeq "$(RELEASE)" "noopt"
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesXINCDIRS += \
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesXDEFINES += \
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesifeq "$(RELEASE)" "release"
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesXINCDIRS += \
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesXDEFINES += \
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# These are used by the link target if an NLM is being generated
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# This is used by the link 'name' directive to name the nlm. If left blank
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# TARGET_nlm (see below) will be used.
311f02e5de127612b92a450204ab4bb26f90f6cefuankgNLM_NAME = moddavlk
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# This is used by the link '-desc ' directive.
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# If left blank, NLM_NAME will be used.
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesNLM_DESCRIPTION = Apache $(VERSION_STR) DAV Database Lock Sub-Module
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# This is used by the '-threadname' directive. If left blank,
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# NLM_NAME Thread will be used.
311f02e5de127612b92a450204ab4bb26f90f6cefuankgNLM_THREAD_NAME = $(NLM_NAME) Thread
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# If this is specified, it will override VERSION value in
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_VERSION =
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# If this is specified, it will override the default of 64K
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesNLM_STACK_SIZE = 65536
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# If this is specified it will be used by the link '-entry' directive
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_ENTRY_SYM =
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# If this is specified it will be used by the link '-exit' directive
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_EXIT_SYM =
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# If this is specified it will be used by the link '-check' directive
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesNLM_CHECK_SYM =
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# If this is specified it will be used by the link '-flags' directive
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# Declare all target files (you must add your files here)
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# If there is an NLM target, put it here
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesTARGET_nlm = \
311f02e5de127612b92a450204ab4bb26f90f6cefuankg $(OBJDIR)/$(NLM_NAME).nlm \
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# If there is an LIB target, put it here
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesTARGET_lib = \
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# These are the OBJ files needed to create the NLM target above.
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# Paths must all use the '/' character
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesFILES_nlm_objs = \
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# These are the LIB files needed to create the NLM target above.
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# These will be added as a library command in the link.opt file.
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesFILES_nlm_libs = \
cf7ca2f9eaa6523fefcccba4287b91637391fb51fuankg $(PRELUDE) \
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# These are the modules that the above NLM target depends on to load.
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# These will be added as a module command in the link.opt file.
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesFILES_nlm_modules = \
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# If the nlm has a msg file, put it's path here
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesFILE_nlm_msg =
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# If the nlm has a hlp file put it's path here
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesFILE_nlm_hlp =
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# If this is specified, it will override $(NWOS)\copyright.txt.
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesFILE_nlm_copyright =
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# Any additional imports go here
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesFILES_nlm_Ximports = \
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# Any symbols exported to here
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesFILES_nlm_exports = \
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes dav_lock_module \
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# These are the OBJ files needed to create the LIB target above.
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# Paths must all use the '/' character
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesFILES_lib_objs = \
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# implement targets and dependancies (leave this section alone)
420bfee669b4ac21320f24c5d92e9857866b710ebnicholeslibs :: $(OBJDIR) $(TARGET_lib)
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesnlms :: libs $(TARGET_nlm)
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# Updated this target to create necessary directories and copy files to the
0662ed52e814f8f08ef0e09956413a792584eddffuankg# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesinstall :: nlms FORCE
00d1c0c914426a97022d8205a875c48b211001c2fuankg $(call COPY,$(OBJDIR)/*.nlm, $(INSTALLBASE)/modules/)
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# Any specialized rules here
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# Include the 'tail' makefile that has targets that depend on variables defined
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# in this makefile
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(APBUILD)/NWGNUtail.inc