NWGNUmakefile revision 99e93b940fa004264fbf50595399b5fbfbd91537
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde# Declare the sub-directories to be built here
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde# Get the 'head' of the build environment. This includes default targets and
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde# paths to tools
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde# build this level's files
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo Sirainen# Make sure all needed macro's are defined
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo Sirainenifeq "$(wildcard $(APRUTIL)/include/apr_ldap.h)" "$(APRUTIL)/include/apr_ldap.h"
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo SirainenWITH_LDAP = $(shell $(AWK) '/^\#define APR_HAS_LDAP /{print $$3}' $(APRUTIL)/include/apr_ldap.h)
fc71e94957d0c2959a609450a2f303640d681858Sascha WildeWITH_LDAP = 0
4b1359bde7d32667197548652a4b4f540062e2acTimo Sirainen# These directories will be at the beginning of the include list, followed by
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde# These flags will come after CFLAGS
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo Sirainen# These defines will come after DEFINES
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo Sirainen# These flags will be added to the link.opt file
fc464e5b2b2ab4d415a5d5b90ce4475d34620a75Timo Sirainen# These values will be appended to the correct variables based on the value of
fc464e5b2b2ab4d415a5d5b90ce4475d34620a75Timo Sirainenifeq "$(RELEASE)" "debug"
4b1359bde7d32667197548652a4b4f540062e2acTimo Sirainenifeq "$(RELEASE)" "noopt"
fc71e94957d0c2959a609450a2f303640d681858Sascha WildeXDEFINES += \
fc71e94957d0c2959a609450a2f303640d681858Sascha Wildeifeq "$(RELEASE)" "release"
fc71e94957d0c2959a609450a2f303640d681858Sascha WildeXINCDIRS += \
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde# These are used by the link target if an NLM is being generated
64bfe7b4a42512971db154937905dfa2bdb9cf2cTimo Sirainen# This is used by the link 'name' directive to name the nlm. If left blank
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde# TARGET_nlm (see below) will be used.
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo Sirainen# This is used by the link '-desc ' directive.
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde# If left blank, NLM_NAME will be used.
fc71e94957d0c2959a609450a2f303640d681858Sascha WildeNLM_DESCRIPTION =
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo Sirainen# This is used by the '-threadname' directive. If left blank,
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo Sirainen# NLM_NAME Thread will be used.
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo SirainenNLM_THREAD_NAME =
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo Sirainen# If this is specified, it will override VERSION value in
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo Sirainen# If this is specified, it will override the default of 64K
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo SirainenNLM_STACK_SIZE =
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo Sirainen# If this is specified it will be used by the link '-entry' directive
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo SirainenNLM_ENTRY_SYM =
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo Sirainen# If this is specified it will be used by the link '-exit' directive
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo SirainenNLM_EXIT_SYM =
3b22894b8805b186c73d8b754001e8d7e944be85Timo Sirainen# If this is specified it will be used by the link '-check' directive
fc464e5b2b2ab4d415a5d5b90ce4475d34620a75Timo SirainenNLM_CHECK_SYM =
fc464e5b2b2ab4d415a5d5b90ce4475d34620a75Timo Sirainen# If these are specified it will be used by the link '-flags' directive
3b22894b8805b186c73d8b754001e8d7e944be85Timo Sirainen# If this is specified it will be linked in with the XDCData option in the def
3b22894b8805b186c73d8b754001e8d7e944be85Timo Sirainen# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
3b22894b8805b186c73d8b754001e8d7e944be85Timo Sirainen# by setting APACHE_UNIPROC in the environment
fc464e5b2b2ab4d415a5d5b90ce4475d34620a75Timo Sirainen# If there is an NLM target, put it here
fc464e5b2b2ab4d415a5d5b90ce4475d34620a75Timo SirainenTARGET_nlm = \
61767c7537efe3eb51f80d37cda12d69c67f3c05Timo Sirainen# If WITH_LDAP and LDAPSDK have been defined then build the authnz_ldap module
61767c7537efe3eb51f80d37cda12d69c67f3c05Timo Sirainenifeq "$(WITH_LDAP)" "1"
61767c7537efe3eb51f80d37cda12d69c67f3c05Timo Sirainenifneq "$(LDAPSDK)" ""
61767c7537efe3eb51f80d37cda12d69c67f3c05Timo SirainenTARGET_nlm += $(OBJDIR)/authnzldap.nlm
61767c7537efe3eb51f80d37cda12d69c67f3c05Timo Sirainen# If there is an LIB target, put it here
61767c7537efe3eb51f80d37cda12d69c67f3c05Timo SirainenTARGET_lib = \
31a574fda352ef4f71dbff9c30e15e4744e132c0Timo Sirainen# These are the OBJ files needed to create the NLM target above.
61767c7537efe3eb51f80d37cda12d69c67f3c05Timo Sirainen# Paths must all use the '/' character
61767c7537efe3eb51f80d37cda12d69c67f3c05Timo SirainenFILES_nlm_objs = \
9f10cc61ec303351b43e54155c86699ef53cb8beTimo Sirainen# These are the LIB files needed to create the NLM target above.
9f10cc61ec303351b43e54155c86699ef53cb8beTimo Sirainen# These will be added as a library command in the link.opt file.
3b22894b8805b186c73d8b754001e8d7e944be85Timo SirainenFILES_nlm_libs = \
3b22894b8805b186c73d8b754001e8d7e944be85Timo Sirainen# These are the modules that the above NLM target depends on to load.
3b22894b8805b186c73d8b754001e8d7e944be85Timo Sirainen# These will be added as a module command in the link.opt file.
3b22894b8805b186c73d8b754001e8d7e944be85Timo SirainenFILES_nlm_modules = \
3b22894b8805b186c73d8b754001e8d7e944be85Timo Sirainen# If the nlm has a msg file, put it's path here
3b22894b8805b186c73d8b754001e8d7e944be85Timo SirainenFILE_nlm_msg =
3b22894b8805b186c73d8b754001e8d7e944be85Timo Sirainen# If the nlm has a hlp file put it's path here
3b22894b8805b186c73d8b754001e8d7e944be85Timo SirainenFILE_nlm_hlp =
9f10cc61ec303351b43e54155c86699ef53cb8beTimo Sirainen# If this is specified, it will override $(NWOS)\copyright.txt.
61767c7537efe3eb51f80d37cda12d69c67f3c05Timo SirainenFILE_nlm_copyright =
fc464e5b2b2ab4d415a5d5b90ce4475d34620a75Timo Sirainen# Any additional imports go here
4b1359bde7d32667197548652a4b4f540062e2acTimo SirainenFILES_nlm_Ximports = \
5c0ab4cc4dff573940df683eb4b23bd6077153faTimo Sirainen# Any symbols exported to here
3c296d819c54e21ce05c3d2eeeedc79be42ac593Timo SirainenFILES_nlm_exports = \
5c0ab4cc4dff573940df683eb4b23bd6077153faTimo Sirainen# These are the OBJ files needed to create the LIB target above.
5c0ab4cc4dff573940df683eb4b23bd6077153faTimo Sirainen# Paths must all use the '/' character
5c0ab4cc4dff573940df683eb4b23bd6077153faTimo SirainenFILES_lib_objs = \
5c0ab4cc4dff573940df683eb4b23bd6077153faTimo Sirainen# implement targets and dependancies (leave this section alone)
5c0ab4cc4dff573940df683eb4b23bd6077153faTimo Sirainenlibs :: $(OBJDIR) $(TARGET_lib)
5c0ab4cc4dff573940df683eb4b23bd6077153faTimo Sirainennlms :: libs $(TARGET_nlm)
5c0ab4cc4dff573940df683eb4b23bd6077153faTimo Sirainen# Updated this target to create necessary directories and copy files to the
5c0ab4cc4dff573940df683eb4b23bd6077153faTimo Sirainen# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
5c0ab4cc4dff573940df683eb4b23bd6077153faTimo Siraineninstall :: nlms FORCE
5c0ab4cc4dff573940df683eb4b23bd6077153faTimo Sirainen $(call COPY,$(OBJDIR)/*.nlm, $(INSTALLBASE)/modules/)
5c0ab4cc4dff573940df683eb4b23bd6077153faTimo Sirainen# Any specialized rules here
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde# Include the 'tail' makefile that has targets that depend on variables defined
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde# in this makefile
4b1359bde7d32667197548652a4b4f540062e2acTimo Siraineninclude $(APBUILD)/NWGNUtail.inc