NWGNUmakefile revision ac7985784d08a3655291f24f711812b4d8b1cbcf
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
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesinclude $(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 \
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes $(AP_WORK)/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.
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_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.
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesNLM_THREAD_NAME = modDAVLK Thread
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# If this is specified, it will override VERSION value in
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# $(AP_WORK)\build\NWGNUenvironment.inc
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
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesNLM_ENTRY_SYM = _LibCPrelude
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# If this is specified it will be used by the link '-exit' directive
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesNLM_EXIT_SYM = _LibCPostlude
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
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# Declare all target files (you must add your files here)
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# If there is an NLM target, put it here
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesTARGET_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 = \
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
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesinstall :: nlms FORCE
f2f3f241c00a7a4bd597e57a19023940e072918abnicholes copy $(OBJDIR)\moddavlk.nlm $(INSTALL)\$(BASEDIR)\modules
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# Any specialized rules here
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# Include the 'tail' makefile that has targets that depend on variables defined
420bfee669b4ac21320f24c5d92e9857866b710ebnicholes# in this makefile
420bfee669b4ac21320f24c5d92e9857866b710ebnicholesinclude $(AP_WORK)\build\NWGNUtail.inc