NWGNUmakefile revision ac7985784d08a3655291f24f711812b4d8b1cbcf
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen# Declare the sub-directories to be built here
adb6413686e52e00dded4932babcc08ff041876bTimo Sirainen# Get the 'head' of the build environment. This includes default targets and
37847ec8eaec9ad55c9df10ae109efe7b37ac573Timo Sirainen# paths to tools
37847ec8eaec9ad55c9df10ae109efe7b37ac573Timo Siraineninclude $(AP_WORK)\build\NWGNUhead.inc
ef50336eefcb9ba99f73c6af37420eaf8857a39bTimo Sirainen# build this level's files
37847ec8eaec9ad55c9df10ae109efe7b37ac573Timo Sirainen# Make sure all needed macro's are defined
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen# These directories will be at the beginning of the include list, followed by
5694eeb99b69dea8033ca77ad69743c6b4871370Timo Sirainen $(APR)/include \
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen $(APRUTIL)/include \
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen $(AP_WORK)/include \
de486b59018016977015ef42e6071155b60e82e1Timo Sirainen# These flags will come after CFLAGS
de486b59018016977015ef42e6071155b60e82e1Timo Sirainen# These defines will come after DEFINES
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen# These flags will be added to the link.opt file
8a0ad174adb1eb5108511b90e97f4e5f9089b0eeTimo Sirainen# These values will be appended to the correct variables based on the value of
8a0ad174adb1eb5108511b90e97f4e5f9089b0eeTimo Sirainenifeq "$(RELEASE)" "debug"
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainenifeq "$(RELEASE)" "noopt"
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainenifeq "$(RELEASE)" "release"
2615df45a8027948a474abe5e817b34b0499c171Timo Sirainen# These are used by the link target if an NLM is being generated
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen# This is used by the link 'name' directive to name the nlm. If left blank
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen# TARGET_nlm (see below) will be used.
37847ec8eaec9ad55c9df10ae109efe7b37ac573Timo SirainenNLM_NAME = mod_DAV
2615df45a8027948a474abe5e817b34b0499c171Timo Sirainen# This is used by the link '-desc ' directive.
2615df45a8027948a474abe5e817b34b0499c171Timo Sirainen# If left blank, NLM_NAME will be used.
2615df45a8027948a474abe5e817b34b0499c171Timo SirainenNLM_DESCRIPTION = Apache $(VERSION_STR) DAV module
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen# This is used by the '-threadname' directive. If left blank,
2dd39e478269d6fb0bb26d12b394aa30ee965e38Timo Sirainen# NLM_NAME Thread will be used.
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo SirainenNLM_THREAD_NAME = mod_DAV
1701e3f91107051b1704721bf1dc1e32491faaf9Timo Sirainen# If this is specified, it will override VERSION value in
2615df45a8027948a474abe5e817b34b0499c171Timo Sirainen# $(AP_WORK)\build\NWGNUenvironment.inc
2615df45a8027948a474abe5e817b34b0499c171Timo Sirainen# If this is specified, it will override the default of 64K
2615df45a8027948a474abe5e817b34b0499c171Timo SirainenNLM_STACK_SIZE = 65536
2615df45a8027948a474abe5e817b34b0499c171Timo Sirainen# If this is specified it will be used by the link '-entry' directive
2615df45a8027948a474abe5e817b34b0499c171Timo SirainenNLM_ENTRY_SYM = _LibCPrelude
2615df45a8027948a474abe5e817b34b0499c171Timo Sirainen# If this is specified it will be used by the link '-exit' directive
2615df45a8027948a474abe5e817b34b0499c171Timo SirainenNLM_EXIT_SYM = _LibCPostlude
2615df45a8027948a474abe5e817b34b0499c171Timo Sirainen# If this is specified it will be used by the link '-check' directive
6bc5fed79741503437c6d46d9f282b66bd029c6bTimo SirainenNLM_CHECK_SYM =
2615df45a8027948a474abe5e817b34b0499c171Timo Sirainen# If this is specified it will be used by the link '-flags' directive
2615df45a8027948a474abe5e817b34b0499c171Timo SirainenNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
2615df45a8027948a474abe5e817b34b0499c171Timo Sirainen# If this is specified it will be linked in with the XDCData option in the def
2615df45a8027948a474abe5e817b34b0499c171Timo Sirainen# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
2615df45a8027948a474abe5e817b34b0499c171Timo Sirainen# by setting APACHE_UNIPROC in the environment
2615df45a8027948a474abe5e817b34b0499c171Timo Sirainen# Declare all target files (you must add your files here)
2615df45a8027948a474abe5e817b34b0499c171Timo Sirainen# If there is an NLM target, put it here
2615df45a8027948a474abe5e817b34b0499c171Timo SirainenTARGET_nlm = \
2615df45a8027948a474abe5e817b34b0499c171Timo Sirainen# If there is an LIB target, put it here
2615df45a8027948a474abe5e817b34b0499c171Timo SirainenTARGET_lib = \
37847ec8eaec9ad55c9df10ae109efe7b37ac573Timo Sirainen# These are the OBJ files needed to create the NLM target above.
37847ec8eaec9ad55c9df10ae109efe7b37ac573Timo Sirainen# Paths must all use the '/' character
37847ec8eaec9ad55c9df10ae109efe7b37ac573Timo SirainenFILES_nlm_objs = \
adb6413686e52e00dded4932babcc08ff041876bTimo Sirainen# These are the LIB files needed to create the NLM target above.
adb6413686e52e00dded4932babcc08ff041876bTimo Sirainen# These will be added as a library command in the link.opt file.
94b0ff77495c3ed14bdd4b5d7ae1eb37e8c9efb5Timo SirainenFILES_nlm_libs = \
94b0ff77495c3ed14bdd4b5d7ae1eb37e8c9efb5Timo Sirainen# These are the modules that the above NLM target depends on to load.
94b0ff77495c3ed14bdd4b5d7ae1eb37e8c9efb5Timo Sirainen# These will be added as a module command in the link.opt file.
94b0ff77495c3ed14bdd4b5d7ae1eb37e8c9efb5Timo SirainenFILES_nlm_modules = \
94b0ff77495c3ed14bdd4b5d7ae1eb37e8c9efb5Timo Sirainen# If the nlm has a msg file, put it's path here
02e61e13a8360a9d3ec92c5fa5ae60c0f0181b71Timo SirainenFILE_nlm_msg =
c1d19144dd7b1de6822df6ed1d10af0c9cb38840Timo Sirainen# If the nlm has a hlp file put it's path here
c1d19144dd7b1de6822df6ed1d10af0c9cb38840Timo SirainenFILE_nlm_hlp =
c1d19144dd7b1de6822df6ed1d10af0c9cb38840Timo Sirainen# If this is specified, it will override $(NWOS)\copyright.txt.
c1d19144dd7b1de6822df6ed1d10af0c9cb38840Timo SirainenFILE_nlm_copyright =
c1d19144dd7b1de6822df6ed1d10af0c9cb38840Timo Sirainen# Any additional imports go here
c1d19144dd7b1de6822df6ed1d10af0c9cb38840Timo SirainenFILES_nlm_Ximports = \
adb6413686e52e00dded4932babcc08ff041876bTimo Sirainen# Any symbols exported to here
2615df45a8027948a474abe5e817b34b0499c171Timo SirainenFILES_nlm_exports = \
2615df45a8027948a474abe5e817b34b0499c171Timo Sirainen# These are the OBJ files needed to create the LIB target above.
2615df45a8027948a474abe5e817b34b0499c171Timo Sirainen# Paths must all use the '/' character
adb6413686e52e00dded4932babcc08ff041876bTimo SirainenFILES_lib_objs = \
94b0ff77495c3ed14bdd4b5d7ae1eb37e8c9efb5Timo Sirainen# implement targets and dependancies (leave this section alone)
adb6413686e52e00dded4932babcc08ff041876bTimo Sirainenlibs :: $(OBJDIR) $(TARGET_lib)
c1d19144dd7b1de6822df6ed1d10af0c9cb38840Timo Sirainennlms :: libs $(TARGET_nlm)
c1d19144dd7b1de6822df6ed1d10af0c9cb38840Timo Sirainen# Updated this target to create necessary directories and copy files to the
adb6413686e52e00dded4932babcc08ff041876bTimo Sirainen# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
c1d19144dd7b1de6822df6ed1d10af0c9cb38840Timo Siraineninstall :: nlms FORCE
adb6413686e52e00dded4932babcc08ff041876bTimo Sirainen copy $(OBJDIR)\mod_dav.nlm $(INSTALL)\$(BASEDIR)\modules\*.*
adb6413686e52e00dded4932babcc08ff041876bTimo Sirainen# Any specialized rules here
adb6413686e52e00dded4932babcc08ff041876bTimo Sirainen# Include the 'tail' makefile that has targets that depend on variables defined
02e61e13a8360a9d3ec92c5fa5ae60c0f0181b71Timo Sirainen# in this makefile
adb6413686e52e00dded4932babcc08ff041876bTimo Siraineninclude $(AP_WORK)\build\NWGNUtail.inc