NWGNUxml2enc revision 770af025f2fda969947de47957afcbef1d31eb9d
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch# Declare the sub-directories to be built here
de0181258ab66b527ad8dc7e51a8efa76b4658d0Stephan Bosch# Get the 'head' of the build environment. This includes default targets and
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch# paths to tools
30f35cf5d1e1374d7fab4231e86144fc106a8e79Stephan Bosch# build this level's files
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch# Make sure all needed macro's are defined
1d048c5050f03c24251e5af8087e640de21b2d62Timo Sirainen# These directories will be at the beginning of the include list, followed by
1d048c5050f03c24251e5af8087e640de21b2d62Timo Sirainen $(LIBXML2SDK)/include \
1d048c5050f03c24251e5af8087e640de21b2d62Timo Sirainen $(APR)/include \
1d048c5050f03c24251e5af8087e640de21b2d62Timo Sirainen $(APRUTIL)/include \
1d048c5050f03c24251e5af8087e640de21b2d62Timo Sirainen $(AP_WORK)/include \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch# These flags will come after CFLAGS
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch# These defines will come after DEFINES
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch# These flags will be added to the link.opt file
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch -L$(LIBXML2SDK)/lib -llibxml2.lib \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch# These values will be appended to the correct variables based on the value of
7384b4e78eaab44693c985192276e31322155e32Stephan Boschifeq "$(RELEASE)" "debug"
7abab3b191860a3d77af5192b0649833c8a0c803Stephan Boschifeq "$(RELEASE)" "noopt"
7384b4e78eaab44693c985192276e31322155e32Stephan Boschifeq "$(RELEASE)" "release"
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch# These are used by the link target if an NLM is being generated
4219de12b28f1936219e27501b9c4b27a4f8d53cStephan Bosch# This is used by the link 'name' directive to name the nlm. If left blank
4219de12b28f1936219e27501b9c4b27a4f8d53cStephan Bosch# TARGET_nlm (see below) will be used.
4219de12b28f1936219e27501b9c4b27a4f8d53cStephan BoschNLM_NAME = xml2enc
4219de12b28f1936219e27501b9c4b27a4f8d53cStephan Bosch# This is used by the link '-desc ' directive.
4219de12b28f1936219e27501b9c4b27a4f8d53cStephan Bosch# If left blank, NLM_NAME will be used.
f74dbd3ff682fea040f60383e001620d1f1b09d3Stephan BoschNLM_DESCRIPTION = Apache $(VERSION_STR) xml2enc Module
4219de12b28f1936219e27501b9c4b27a4f8d53cStephan Bosch# This is used by the '-threadname' directive. If left blank,
4219de12b28f1936219e27501b9c4b27a4f8d53cStephan Bosch# NLM_NAME Thread will be used.
4219de12b28f1936219e27501b9c4b27a4f8d53cStephan BoschNLM_THREAD_NAME = Substitute Module
4219de12b28f1936219e27501b9c4b27a4f8d53cStephan Bosch# If this is specified, it will override VERSION value in
4219de12b28f1936219e27501b9c4b27a4f8d53cStephan Bosch# If this is specified, it will override the default of 64K
30f35cf5d1e1374d7fab4231e86144fc106a8e79Stephan BoschNLM_STACK_SIZE = 8192
a62fe4b300e2f591e939993aec4cac1e7ae30ad1Stephan Bosch# If this is specified it will be used by the link '-entry' directive
a62fe4b300e2f591e939993aec4cac1e7ae30ad1Stephan BoschNLM_ENTRY_SYM =
e46130f48a6962734bfde7e71906d3894bedf45bStephan Bosch# If this is specified it will be used by the link '-exit' directive
e46130f48a6962734bfde7e71906d3894bedf45bStephan BoschNLM_EXIT_SYM =
e46130f48a6962734bfde7e71906d3894bedf45bStephan Bosch# If this is specified it will be used by the link '-check' directive
e46130f48a6962734bfde7e71906d3894bedf45bStephan BoschNLM_CHECK_SYM =
e46130f48a6962734bfde7e71906d3894bedf45bStephan Bosch# If these are specified it will be used by the link '-flags' directive
e46130f48a6962734bfde7e71906d3894bedf45bStephan Bosch# If this is specified it will be linked in with the XDCData option in the def
e46130f48a6962734bfde7e71906d3894bedf45bStephan Bosch# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
e46130f48a6962734bfde7e71906d3894bedf45bStephan Bosch# by setting APACHE_UNIPROC in the environment
e46130f48a6962734bfde7e71906d3894bedf45bStephan Bosch# If there is an NLM target, put it here
e46130f48a6962734bfde7e71906d3894bedf45bStephan BoschTARGET_nlm = \
e46130f48a6962734bfde7e71906d3894bedf45bStephan Bosch $(OBJDIR)/$(NLM_NAME).nlm \
e46130f48a6962734bfde7e71906d3894bedf45bStephan Bosch# If there is an LIB target, put it here
a62fe4b300e2f591e939993aec4cac1e7ae30ad1Stephan BoschTARGET_lib = \
a62fe4b300e2f591e939993aec4cac1e7ae30ad1Stephan Bosch# These are the OBJ files needed to create the NLM target above.
a62fe4b300e2f591e939993aec4cac1e7ae30ad1Stephan Bosch# Paths must all use the '/' character
a62fe4b300e2f591e939993aec4cac1e7ae30ad1Stephan BoschFILES_nlm_objs = \
a62fe4b300e2f591e939993aec4cac1e7ae30ad1Stephan Bosch# These are the LIB files needed to create the NLM target above.
f74dbd3ff682fea040f60383e001620d1f1b09d3Stephan Bosch# These will be added as a library command in the link.opt file.
e47c2f17d8136c4d972d1074a3f84ba2ecef4fdcStephan BoschFILES_nlm_libs = \
e47c2f17d8136c4d972d1074a3f84ba2ecef4fdcStephan Bosch# These are the modules that the above NLM target depends on to load.
e47c2f17d8136c4d972d1074a3f84ba2ecef4fdcStephan Bosch# These will be added as a module command in the link.opt file.
e47c2f17d8136c4d972d1074a3f84ba2ecef4fdcStephan BoschFILES_nlm_modules = \
e47c2f17d8136c4d972d1074a3f84ba2ecef4fdcStephan Bosch# If the nlm has a msg file, put it's path here
e47c2f17d8136c4d972d1074a3f84ba2ecef4fdcStephan BoschFILE_nlm_msg =
4219de12b28f1936219e27501b9c4b27a4f8d53cStephan Bosch# If the nlm has a hlp file put it's path here
6ab81c81be13f33486746deeffe02a1ef2bcc821Stephan BoschFILE_nlm_hlp =
6ab81c81be13f33486746deeffe02a1ef2bcc821Stephan Bosch# If this is specified, it will override $(NWOS)\copyright.txt.
6ab81c81be13f33486746deeffe02a1ef2bcc821Stephan BoschFILE_nlm_copyright =
6ab81c81be13f33486746deeffe02a1ef2bcc821Stephan Bosch# Any additional imports go here
6ab81c81be13f33486746deeffe02a1ef2bcc821Stephan BoschFILES_nlm_Ximports = \
6ab81c81be13f33486746deeffe02a1ef2bcc821Stephan Bosch# Any symbols exported to here
6ab81c81be13f33486746deeffe02a1ef2bcc821Stephan BoschFILES_nlm_exports = \
6ab81c81be13f33486746deeffe02a1ef2bcc821Stephan Bosch xml2enc_module \
6ab81c81be13f33486746deeffe02a1ef2bcc821Stephan Bosch# These are the OBJ files needed to create the LIB target above.
6ab81c81be13f33486746deeffe02a1ef2bcc821Stephan Bosch# Paths must all use the '/' character
7384b4e78eaab44693c985192276e31322155e32Stephan BoschFILES_lib_objs = \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch# implement targets and dependancies (leave this section alone)
7384b4e78eaab44693c985192276e31322155e32Stephan Boschlibs :: $(OBJDIR) $(TARGET_lib)
7384b4e78eaab44693c985192276e31322155e32Stephan Boschnlms :: libs $(TARGET_nlm)
d1f964d3f1dd9c5868b134c4f44dd63f3722eef7Timo Sirainen# Updated this target to create necessary directories and copy files to the
d1f964d3f1dd9c5868b134c4f44dd63f3722eef7Timo Sirainen# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
d1f964d3f1dd9c5868b134c4f44dd63f3722eef7Timo Siraineninstall :: nlms FORCE
79f8a20424633e806447bc9375a5ab403aabc758Stephan Bosch# Any specialized rules here
b66def5dadd3e7c250313a938d26ad113663f86bStephan Bosch# Include the 'tail' makefile that has targets that depend on variables defined
b66def5dadd3e7c250313a938d26ad113663f86bStephan Bosch# in this makefile
fe681e6db72f30bd754b622005bbe298e5ca775aTimo Siraineninclude $(APBUILD)/NWGNUtail.inc