NWGNUauthndef revision 70953fb44a7140fe206c3a5f011e24209c8c5c6a
348346590dc302381df4daf372d6dc601b860eaeEwaryst Schulz# Make sure all needed macro's are defined
98890889ffb2e8f6f722b00e265a211f13b5a861Corneliu-Claudiu Prodescu# Get the 'head' of the build environment if necessary. This includes default
348346590dc302381df4daf372d6dc601b860eaeEwaryst Schulz# targets and paths to tools
348346590dc302381df4daf372d6dc601b860eaeEwaryst Schulzifndef EnvironmentDefined
1b353d403dbdb365ae93a568f32b3ebf5698cab5Ewaryst Schulzinclude $(AP_WORK)\build\NWGNUhead.inc
c73c3d0df595b7feab36cf441a1a31cd1a2c7c1dEwaryst Schulz# These directories will be at the beginning of the include list, followed by
c73c3d0df595b7feab36cf441a1a31cd1a2c7c1dEwaryst Schulz $(AP_WORK)/include \
c73c3d0df595b7feab36cf441a1a31cd1a2c7c1dEwaryst Schulz $(APR)/include \
c73c3d0df595b7feab36cf441a1a31cd1a2c7c1dEwaryst Schulz $(APRUTIL)/include \
348346590dc302381df4daf372d6dc601b860eaeEwaryst Schulz# These flags will come after CFLAGS
0850c3e5fb6285405ebaeb5aa433985203ac892dEwaryst Schulz# These defines will come after DEFINES
c208973c890b8f993297720fd0247bc7481d4304Christian Maeder# These flags will be added to the link.opt file
df0d1a7e7dfff3be40c24b25318a6a07c748be20Ewaryst Schulz# These values will be appended to the correct variables based on the value of
e77f7260babdf86b287a632f9676c601bd0db077Ewaryst Schulzifeq "$(RELEASE)" "debug"
938677803842b384a91fef21f58f86b8e3188b43Ewaryst Schulzifeq "$(RELEASE)" "noopt"
f58e5059e02c7e903059f3ec37bcb3b482afd63fEwaryst Schulzifeq "$(RELEASE)" "release"
f58e5059e02c7e903059f3ec37bcb3b482afd63fEwaryst Schulz# These are used by the link target if an NLM is being generated
f58e5059e02c7e903059f3ec37bcb3b482afd63fEwaryst Schulz# This is used by the link 'name' directive to name the nlm. If left blank
d1fddc394ac2af87a6210e7a3504bb565d088e7aEwaryst Schulz# TARGET_nlm (see below) will be used.
938677803842b384a91fef21f58f86b8e3188b43Ewaryst SchulzNLM_NAME = authndef
0850c3e5fb6285405ebaeb5aa433985203ac892dEwaryst Schulz# This is used by the link '-desc ' directive.
0850c3e5fb6285405ebaeb5aa433985203ac892dEwaryst Schulz# If left blank, NLM_NAME will be used.
3d3889e0cefcdce9b3f43c53aaa201943ac2e895Jonathan von SchroederNLM_DESCRIPTION = Apache $(VERSION_STR) Default Authentication Module
0850c3e5fb6285405ebaeb5aa433985203ac892dEwaryst Schulz# This is used by the '-threadname' directive. If left blank,
d1fddc394ac2af87a6210e7a3504bb565d088e7aEwaryst Schulz# NLM_NAME Thread will be used.
0850c3e5fb6285405ebaeb5aa433985203ac892dEwaryst SchulzNLM_THREAD_NAME = Authndef Module
0850c3e5fb6285405ebaeb5aa433985203ac892dEwaryst Schulz# If this is specified, it will override VERSION value in
f58e5059e02c7e903059f3ec37bcb3b482afd63fEwaryst Schulz# $(AP_WORK)\build\NWGNUenvironment.inc
699f8456142e7c89bd15acf3aa8790fd02f4420dEwaryst Schulz# If this is specified, it will override the default of 64K
f58e5059e02c7e903059f3ec37bcb3b482afd63fEwaryst SchulzNLM_STACK_SIZE = 8192
699f8456142e7c89bd15acf3aa8790fd02f4420dEwaryst Schulz# If this is specified it will be used by the link '-entry' directive
699f8456142e7c89bd15acf3aa8790fd02f4420dEwaryst SchulzNLM_ENTRY_SYM = _LibCPrelude
0850c3e5fb6285405ebaeb5aa433985203ac892dEwaryst Schulz# If this is specified it will be used by the link '-exit' directive
f58e5059e02c7e903059f3ec37bcb3b482afd63fEwaryst SchulzNLM_EXIT_SYM = _LibCPostlude
0850c3e5fb6285405ebaeb5aa433985203ac892dEwaryst Schulz# If this is specified it will be used by the link '-check' directive
699f8456142e7c89bd15acf3aa8790fd02f4420dEwaryst SchulzNLM_CHECK_SYM =
0850c3e5fb6285405ebaeb5aa433985203ac892dEwaryst Schulz# If these are specified it will be used by the link '-flags' directive
0850c3e5fb6285405ebaeb5aa433985203ac892dEwaryst SchulzNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
d1fddc394ac2af87a6210e7a3504bb565d088e7aEwaryst Schulz# If this is specified it will be linked in with the XDCData option in the def
f58e5059e02c7e903059f3ec37bcb3b482afd63fEwaryst Schulz# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
a413fff68823617afb1fa4fced0d7a8ec3880664Ewaryst Schulz# by setting APACHE_UNIPROC in the environment
f58e5059e02c7e903059f3ec37bcb3b482afd63fEwaryst Schulz# If there is an NLM target, put it here
f58e5059e02c7e903059f3ec37bcb3b482afd63fEwaryst SchulzTARGET_nlm = \
699f8456142e7c89bd15acf3aa8790fd02f4420dEwaryst Schulz# If there is an LIB target, put it here
5ca1fe655d7d4e35e59a082b5955b306643329d0Ewaryst SchulzTARGET_lib = \
938677803842b384a91fef21f58f86b8e3188b43Ewaryst Schulz# These are the OBJ files needed to create the NLM target above.
0850c3e5fb6285405ebaeb5aa433985203ac892dEwaryst Schulz# Paths must all use the '/' character
699f8456142e7c89bd15acf3aa8790fd02f4420dEwaryst SchulzFILES_nlm_objs = \
938677803842b384a91fef21f58f86b8e3188b43Ewaryst Schulz# These are the LIB files needed to create the NLM target above.
3d3889e0cefcdce9b3f43c53aaa201943ac2e895Jonathan von Schroeder# These will be added as a library command in the link.opt file.
938677803842b384a91fef21f58f86b8e3188b43Ewaryst SchulzFILES_nlm_libs = \
938677803842b384a91fef21f58f86b8e3188b43Ewaryst Schulz# These are the modules that the above NLM target depends on to load.
5ca1fe655d7d4e35e59a082b5955b306643329d0Ewaryst Schulz# These will be added as a module command in the link.opt file.
d1fddc394ac2af87a6210e7a3504bb565d088e7aEwaryst SchulzFILES_nlm_modules = \
3d3889e0cefcdce9b3f43c53aaa201943ac2e895Jonathan von Schroeder# If the nlm has a msg file, put it's path here
348346590dc302381df4daf372d6dc601b860eaeEwaryst SchulzFILE_nlm_msg =
d1fddc394ac2af87a6210e7a3504bb565d088e7aEwaryst Schulz# If the nlm has a hlp file put it's path here
0850c3e5fb6285405ebaeb5aa433985203ac892dEwaryst SchulzFILE_nlm_hlp =
c1d06b3018b34ede2b3fb6c7fe2ad28cd5ce5b68Christian Maeder# If this is specified, it will override $(NWOS)\copyright.txt.
cae4916b0844b837a4dd7e29730c56a3e26ef94dEwaryst SchulzFILE_nlm_copyright =
f58e5059e02c7e903059f3ec37bcb3b482afd63fEwaryst Schulz# Any additional imports go here
699f8456142e7c89bd15acf3aa8790fd02f4420dEwaryst SchulzFILES_nlm_Ximports = \
699f8456142e7c89bd15acf3aa8790fd02f4420dEwaryst Schulz# Any symbols exported to here
1a426f3cc3eedb6ed9736e9bde60c34273049137Ewaryst SchulzFILES_nlm_exports = \
1a426f3cc3eedb6ed9736e9bde60c34273049137Ewaryst Schulz authn_default_module \
1a426f3cc3eedb6ed9736e9bde60c34273049137Ewaryst Schulz# These are the OBJ files needed to create the LIB target above.
1a426f3cc3eedb6ed9736e9bde60c34273049137Ewaryst Schulz# Paths must all use the '/' character
cae4916b0844b837a4dd7e29730c56a3e26ef94dEwaryst SchulzFILES_lib_objs = \
0850c3e5fb6285405ebaeb5aa433985203ac892dEwaryst Schulz# implement targets and dependancies (leave this section alone)
1a426f3cc3eedb6ed9736e9bde60c34273049137Ewaryst Schulzlibs :: $(OBJDIR) $(TARGET_lib)
0850c3e5fb6285405ebaeb5aa433985203ac892dEwaryst Schulznlms :: libs $(TARGET_nlm)
cae4916b0844b837a4dd7e29730c56a3e26ef94dEwaryst Schulz# Updated this target to create necessary directories and copy files to the
cae4916b0844b837a4dd7e29730c56a3e26ef94dEwaryst Schulz# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
cae4916b0844b837a4dd7e29730c56a3e26ef94dEwaryst Schulzinstall :: nlms FORCE
cae4916b0844b837a4dd7e29730c56a3e26ef94dEwaryst Schulz# Any specialized rules here
cae4916b0844b837a4dd7e29730c56a3e26ef94dEwaryst Schulz# Include the 'tail' makefile that has targets that depend on variables defined
cae4916b0844b837a4dd7e29730c56a3e26ef94dEwaryst Schulz# in this makefile
699f8456142e7c89bd15acf3aa8790fd02f4420dEwaryst Schulzinclude $(AP_WORK)\build\NWGNUtail.inc