NWGNUmakefile revision 0662ed52e814f8f08ef0e09956413a792584eddf
5c22aad0392c68f935e17cd0a1b14bd855a8080bMiroslav Osladil# Declare the sub-directories to be built here
5c22aad0392c68f935e17cd0a1b14bd855a8080bMiroslav Osladil# Get the 'head' of the build environment. This includes default targets and
5c22aad0392c68f935e17cd0a1b14bd855a8080bMiroslav Osladil# paths to tools
5c22aad0392c68f935e17cd0a1b14bd855a8080bMiroslav Osladil# build this level's files
5c22aad0392c68f935e17cd0a1b14bd855a8080bMiroslav Osladil# Make sure all needed macro's are defined
5c22aad0392c68f935e17cd0a1b14bd855a8080bMiroslav Osladil# These directories will be at the beginning of the include list, followed by
5c22aad0392c68f935e17cd0a1b14bd855a8080bMiroslav Osladil $(APR)/include \
5c22aad0392c68f935e17cd0a1b14bd855a8080bMiroslav Osladil $(APRUTIL)/include \
5c22aad0392c68f935e17cd0a1b14bd855a8080bMiroslav Osladil $(AP_WORK)/include \
5c22aad0392c68f935e17cd0a1b14bd855a8080bMiroslav Osladil# These flags will come after CFLAGS
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# These defines will come after DEFINES
5c22aad0392c68f935e17cd0a1b14bd855a8080bMiroslav Osladil# These flags will be added to the link.opt file
5c22aad0392c68f935e17cd0a1b14bd855a8080bMiroslav Osladil# These values will be appended to the correct variables based on the value of
5c22aad0392c68f935e17cd0a1b14bd855a8080bMiroslav Osladilifeq "$(RELEASE)" "debug"
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopesifeq "$(RELEASE)" "noopt"
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopesifeq "$(RELEASE)" "release"
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# These are used by the link target if an NLM is being generated
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# This is used by the link 'name' directive to name the nlm. If left blank
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# TARGET_nlm (see below) will be used.
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo LopesNLM_NAME = mod_DAV
5c22aad0392c68f935e17cd0a1b14bd855a8080bMiroslav Osladil# This is used by the link '-desc ' directive.
5c22aad0392c68f935e17cd0a1b14bd855a8080bMiroslav Osladil# If left blank, NLM_NAME will be used.
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo LopesNLM_DESCRIPTION = Apache $(VERSION_STR) DAV module
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# This is used by the '-threadname' directive. If left blank,
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# NLM_NAME Thread will be used.
5c22aad0392c68f935e17cd0a1b14bd855a8080bMiroslav OsladilNLM_THREAD_NAME = mod_DAV
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# If this is specified, it will override VERSION value in
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# If this is specified, it will override the default of 64K
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo LopesNLM_STACK_SIZE = 65536
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# If this is specified it will be used by the link '-entry' directive
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo LopesNLM_ENTRY_SYM =
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# If this is specified it will be used by the link '-exit' directive
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo LopesNLM_EXIT_SYM =
5c22aad0392c68f935e17cd0a1b14bd855a8080bMiroslav Osladil# If this is specified it will be used by the link '-check' directive
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo LopesNLM_CHECK_SYM =
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# If this is specified it will be used by the link '-flags' directive
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# If this is specified it will be linked in with the XDCData option in the def
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# by setting APACHE_UNIPROC in the environment
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# Declare all target files (you must add your files here)
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# If there is an NLM target, put it here
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo LopesTARGET_nlm = \
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# If there is an LIB target, put it here
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo LopesTARGET_lib = \
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# These are the OBJ files needed to create the NLM target above.
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# Paths must all use the '/' character
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo LopesFILES_nlm_objs = \
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# These are the LIB files needed to create the NLM target above.
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# These will be added as a library command in the link.opt file.
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo LopesFILES_nlm_libs = \
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# These are the modules that the above NLM target depends on to load.
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# These will be added as a module command in the link.opt file.
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo LopesFILES_nlm_modules = \
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# If the nlm has a msg file, put it's path here
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo LopesFILE_nlm_msg =
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# If the nlm has a hlp file put it's path here
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo LopesFILE_nlm_hlp =
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# If this is specified, it will override $(NWOS)\copyright.txt.
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo LopesFILE_nlm_copyright =
5c22aad0392c68f935e17cd0a1b14bd855a8080bMiroslav Osladil# Any additional imports go here
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo LopesFILES_nlm_Ximports = \
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# Any symbols exported to here
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo LopesFILES_nlm_exports = \
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# These are the OBJ files needed to create the LIB target above.
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# Paths must all use the '/' character
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo LopesFILES_lib_objs = \
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# implement targets and dependancies (leave this section alone)
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopeslibs :: $(OBJDIR) $(TARGET_lib)
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopesnlms :: libs $(TARGET_nlm)
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# Updated this target to create necessary directories and copy files to the
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopesinstall :: nlms FORCE
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes copy $(OBJDIR)\mod_dav.nlm $(INSTALL)\$(BASEDIR)\modules\*.*
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# Any specialized rules here
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# Include the 'tail' makefile that has targets that depend on variables defined
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopes# in this makefile
b6ada49236374a1f4ae462c384d69bab7e6f0a1dGustavo Lopesinclude $(APBUILD)/NWGNUtail.inc