NWGNUmakefile revision be5bd52e27f7609ecfa7b472935e1fb422f02c09
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen# Declare the sub-directories to be built here
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen# Get the 'head' of the build environment. This includes default targets and
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen# paths to tools
fb08a91e3f2949ecefb647fa38206ca9aad5307fTimo Siraineninclude $(AP_WORK)\build\NWGNUhead.inc
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen# build this level's files
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen# Make sure all needed macro's are defined
b2ed2b25c4c457ec1c99ebe5e9bd66a2e2f89cfdTimo Sirainen# These directories will be at the beginning of the include list, followed by
f6edc54aa72596af8da681c07223108c322712d5Timo Sirainen# These flags will come after CFLAGS
d8552f9f65e5ff64be5de9faf9a8171799a0bbecTimo Sirainen# These defines will come after DEFINES
c0e5c6a86e1de5d4f5591d39b4aa921a23c807d7Timo Sirainen# These flags will be added to the link.opt file
f6edc54aa72596af8da681c07223108c322712d5Timo Sirainen# These values will be appended to the correct variables based on the value of
f6edc54aa72596af8da681c07223108c322712d5Timo Sirainenifeq "$(RELEASE)" "debug"
d8552f9f65e5ff64be5de9faf9a8171799a0bbecTimo Sirainenifeq "$(RELEASE)" "noopt"
d8552f9f65e5ff64be5de9faf9a8171799a0bbecTimo Sirainenifeq "$(RELEASE)" "release"
d8552f9f65e5ff64be5de9faf9a8171799a0bbecTimo Sirainen# These are used by the link target if an NLM is being generated
d8552f9f65e5ff64be5de9faf9a8171799a0bbecTimo Sirainen# This is used by the link 'name' directive to name the nlm. If left blank
d8552f9f65e5ff64be5de9faf9a8171799a0bbecTimo Sirainen# TARGET_nlm (see below) will be used.
d8552f9f65e5ff64be5de9faf9a8171799a0bbecTimo Sirainen# This is used by the link '-desc ' directive.
d8552f9f65e5ff64be5de9faf9a8171799a0bbecTimo Sirainen# If left blank, NLM_NAME will be used.
c0e5c6a86e1de5d4f5591d39b4aa921a23c807d7Timo SirainenNLM_DESCRIPTION =
d8552f9f65e5ff64be5de9faf9a8171799a0bbecTimo Sirainen# This is used by the '-threadname' directive. If left blank,
d8552f9f65e5ff64be5de9faf9a8171799a0bbecTimo Sirainen# NLM_NAME Thread will be used.
c05d0937e228c2817fa2295fc53e8cb81ae5cb8aTimo SirainenNLM_THREAD_NAME =
d8552f9f65e5ff64be5de9faf9a8171799a0bbecTimo Sirainen# If this is specified, it will override VERSION value in
d8552f9f65e5ff64be5de9faf9a8171799a0bbecTimo Sirainen# $(AP_WORK)\build\NWGNUenvironment.inc
d8552f9f65e5ff64be5de9faf9a8171799a0bbecTimo Sirainen# If this is specified, it will override the default of 64K
9cd232cda7563ad81c01776e5ebc5ed2b3cef898Timo SirainenNLM_STACK_SIZE =
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen# If this is specified it will be used by the link '-entry' directive
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo SirainenNLM_ENTRY_SYM =
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen# If this is specified it will be used by the link '-exit' directive
9cd232cda7563ad81c01776e5ebc5ed2b3cef898Timo SirainenNLM_EXIT_SYM =
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen# If this is specified it will be used by the link '-check' directive
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo SirainenNLM_CHECK_SYM =
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen# If these are specified it will be used by the link '-flags' directive
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen# If this is specified it will be linked in with the XDCData option in the def
f6edc54aa72596af8da681c07223108c322712d5Timo Sirainen# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen# by setting APACHE_UNIPROC in the environment
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen# If there is an NLM target, put it here
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo SirainenTARGET_nlm = \
9cd232cda7563ad81c01776e5ebc5ed2b3cef898Timo Sirainen# If there is an LIB target, put it here
9cd232cda7563ad81c01776e5ebc5ed2b3cef898Timo SirainenTARGET_lib = \
9cd232cda7563ad81c01776e5ebc5ed2b3cef898Timo Sirainen# These are the OBJ files needed to create the NLM target above.
9cd232cda7563ad81c01776e5ebc5ed2b3cef898Timo Sirainen# Paths must all use the '/' character
9cd232cda7563ad81c01776e5ebc5ed2b3cef898Timo SirainenFILES_nlm_objs = \
9cd232cda7563ad81c01776e5ebc5ed2b3cef898Timo Sirainen# These are the LIB files needed to create the NLM target above.
1c7b0cbdb08cccbd25c19ae0fb69abe8ed9ee9b4Timo Sirainen# These will be added as a library command in the link.opt file.
9cd232cda7563ad81c01776e5ebc5ed2b3cef898Timo SirainenFILES_nlm_libs = \
9cd232cda7563ad81c01776e5ebc5ed2b3cef898Timo Sirainen# These are the modules that the above NLM target depends on to load.
9cd232cda7563ad81c01776e5ebc5ed2b3cef898Timo Sirainen# These will be added as a module command in the link.opt file.
9cd232cda7563ad81c01776e5ebc5ed2b3cef898Timo SirainenFILES_nlm_modules = \
9cd232cda7563ad81c01776e5ebc5ed2b3cef898Timo Sirainen# If the nlm has a msg file, put it's path here
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo SirainenFILE_nlm_msg =
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen# If the nlm has a hlp file put it's path here
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo SirainenFILE_nlm_hlp =
b2ed2b25c4c457ec1c99ebe5e9bd66a2e2f89cfdTimo Sirainen# If this is specified, it will override $(NWOS)\copyright.txt.
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo SirainenFILE_nlm_copyright =
acef354e742a39416b0697e1554f5d49b0369850Timo Sirainen# Any additional imports go here
acef354e742a39416b0697e1554f5d49b0369850Timo SirainenFILES_nlm_Ximports = \
acef354e742a39416b0697e1554f5d49b0369850Timo Sirainen# Any symbols exported to here
acef354e742a39416b0697e1554f5d49b0369850Timo SirainenFILES_nlm_exports = \
acef354e742a39416b0697e1554f5d49b0369850Timo Sirainen# These are the OBJ files needed to create the LIB target above.
acef354e742a39416b0697e1554f5d49b0369850Timo Sirainen# Paths must all use the '/' character
acef354e742a39416b0697e1554f5d49b0369850Timo SirainenFILES_lib_objs = \
acef354e742a39416b0697e1554f5d49b0369850Timo Sirainen# implement targets and dependancies (leave this section alone)
acef354e742a39416b0697e1554f5d49b0369850Timo Sirainenlibs :: $(OBJDIR) $(TARGET_lib)
acef354e742a39416b0697e1554f5d49b0369850Timo Sirainennlms :: libs $(TARGET_nlm)
6fdfa4d4cf14d1d7764d7faa8258f112e39c8dbeTimo Sirainen# Updated this target to create necessary directories and copy files to the
f7f13e206c9839f6e868088034b0b59d1d9be13aTimo Sirainen# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
f7f13e206c9839f6e868088034b0b59d1d9be13aTimo Siraineninstall :: nlms FORCE
f7f13e206c9839f6e868088034b0b59d1d9be13aTimo Sirainen copy $(OBJDIR)\*.nlm $(INSTALL)\Apache2\modules\*.*
6fdfa4d4cf14d1d7764d7faa8258f112e39c8dbeTimo Sirainen# Any specialized rules here
6fdfa4d4cf14d1d7764d7faa8258f112e39c8dbeTimo Sirainen# Include the 'tail' makefile that has targets that depend on variables defined
699b27536eeb446e05ed9c9c1ab35cc6174ac0aaTimo Sirainen# in this makefile
6fdfa4d4cf14d1d7764d7faa8258f112e39c8dbeTimo Siraineninclude $(AP_WORK)\build\NWGNUtail.inc