NWGNUauthdigt revision 70953fb44a7140fe206c3a5f011e24209c8c5c6a
e01a15b71e18bf2008aec7e75041ffa42eb80b80Kay Sievers# Make sure all needed macro's are defined
80037e4d17d0c8f28d0ff610902babc9e2b4e2f9Kay Sievers# Get the 'head' of the build environment if necessary. This includes default
ebcd5d3acd4c470668bbcd945a5aa42f0af5ccf0Kay Sievers# targets and paths to tools
c904f64d84db8c4eebedf210ba10893f19ba05edLennart Poetteringifndef EnvironmentDefined
c904f64d84db8c4eebedf210ba10893f19ba05edLennart Poetteringinclude $(AP_WORK)\build\NWGNUhead.inc
ddd88763921a1534081ed28e36f6712a85449005Lennart Poettering# These directories will be at the beginning of the include list, followed by
f957632b960a0a42999b38ded7089fa602b41745Kay SieversXINCDIRS += \
f957632b960a0a42999b38ded7089fa602b41745Kay Sievers $(AP_WORK)/include \
a40593a0d0d740efa387e35411e1e456a6c5aba7Lennart Poettering $(APR)/include \
20ffc4c4a9226b0e45cc02ad9c0108981626c0bbKay Sievers $(APRUTIL)/include \
7b63bde1ed0d4f30c799c9b4737fa926465929f9Lennart Poettering# These flags will come after CFLAGS
06e2968ea6e3d8f90eb715b4a8e8a43b3d7449abLennart Poettering# These defines will come after DEFINES
1ab27db89064b7f9f2f6d50566642fce803a2617Lennart Poettering# These flags will be added to the link.opt file
b86fa936ce36976cd6a96034cf14ea267695bcb2Lennart Poettering# These values will be appended to the correct variables based on the value of
b86fa936ce36976cd6a96034cf14ea267695bcb2Lennart Poetteringifeq "$(RELEASE)" "debug"
a26336da875a6657d404d1e44b86ae067c34b110Kay SieversXDEFINES += \
465349c06d994dd2cc6b6fc4109ac0b9952d500aLennart Poetteringifeq "$(RELEASE)" "noopt"
7e2668c6fd5720ae4d2d55eb8a062739687516afLennart Poetteringifeq "$(RELEASE)" "release"
20ffc4c4a9226b0e45cc02ad9c0108981626c0bbKay Sievers# These are used by the link target if an NLM is being generated
f25626edf4c39bb9409cb165e6ce9551dd130661Lennart Poettering# This is used by the link 'name' directive to name the nlm. If left blank
a0a3844815b0f346dba03f41245c620f432e462fLennart Poettering# TARGET_nlm (see below) will be used.
9efaf380a7c7fa16f44b1aa15b967e99f331203aLennart PoetteringNLM_NAME = authdigt
9efaf380a7c7fa16f44b1aa15b967e99f331203aLennart Poettering# This is used by the link '-desc ' directive.
4ee717820208a4c8e92383d0dbefa401827fab38Kay Sievers# If left blank, NLM_NAME will be used.
5ba2dc259f3cdd8fddef68cfd28380a32534e49aKay SieversNLM_DESCRIPTION = Apache $(VERSION_STR) Digest Authentication Module
5ba2dc259f3cdd8fddef68cfd28380a32534e49aKay Sievers# This is used by the '-threadname' directive. If left blank,
20ffc4c4a9226b0e45cc02ad9c0108981626c0bbKay Sievers# NLM_NAME Thread will be used.
b8217b7bd5fd171916a095b150fad4c3a37f5a41Kay SieversNLM_THREAD_NAME = Digest Module
b45f770f0049fbdf3f6c9db0ab11deeff4ccd86dKay Sievers# If this is specified, it will override VERSION value in
b8217b7bd5fd171916a095b150fad4c3a37f5a41Kay Sievers# $(AP_WORK)\build\NWGNUenvironment.inc
b070e7f3c9ed680c821bd89d42506695f2438506Lennart Poettering# If this is specified, it will override the default of 64K
231931ffba1bca9d8759bbd6f797e56f8c6971faLennart PoetteringNLM_STACK_SIZE = 8192
6ba383fa49e01302dfeae1f5083bb942b055628bLennart Poettering# If this is specified it will be used by the link '-entry' directive
bd08f2422491169e92dc0899d5ba848fcae4c15cLennart PoetteringNLM_ENTRY_SYM = _LibCPrelude
d3c7d7dd77b2b72315164b672462825cef6c0f9aKay Sievers# If this is specified it will be used by the link '-exit' directive
fb0864e7b9c6d26269ccea6ec5c0fd921c029781Lennart PoetteringNLM_EXIT_SYM = _LibCPostlude
18da49531e4c6b31bd2439b4d738dc1bb9660af1Lennart Poettering# If this is specified it will be used by the link '-check' directive
9586cdfab6a2638078702b7fea7e16b3a71899e2Lennart PoetteringNLM_CHECK_SYM =
6b80b9b8ee6d372e00ece51e6a11c6d31899aaecLennart Poettering# If these are specified it will be used by the link '-flags' directive
7f110ff9b8828b477e87de7b28c708cf69a3d008Lennart PoetteringNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
7f110ff9b8828b477e87de7b28c708cf69a3d008Lennart Poettering# If this is specified it will be linked in with the XDCData option in the def
7d900eb6f58ca76a0f742c6e1823aa7317d4471fLennart Poettering# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
7d900eb6f58ca76a0f742c6e1823aa7317d4471fLennart Poettering# by setting APACHE_UNIPROC in the environment
144f0fc0c8a5e2f6b72179e2b5fb992474da24adLennart Poettering# If there is an NLM target, put it here
6edd7ca1624f89c9a36067b721a0280e748acb17Kay Sievers# If there is an LIB target, put it here
353e12c2f4a9e96a47eb80b80d2ffb7bc1d44a1bLennart Poettering# These are the OBJ files needed to create the NLM target above.
353e12c2f4a9e96a47eb80b80d2ffb7bc1d44a1bLennart Poettering# Paths must all use the '/' character
680a1dbc354b2f437b4e06e27d4c43217977efdfLennart PoetteringFILES_nlm_objs = \
36e43bddd0a4526e77cdae2c922bb29f67bd74adLennart Poettering# These are the LIB files needed to create the NLM target above.
36e43bddd0a4526e77cdae2c922bb29f67bd74adLennart Poettering# These will be added as a library command in the link.opt file.
b61c90514e134dc781617d172961f25e7352f53bLennart PoetteringFILES_nlm_libs = \
a558d00381291afd6a81f7df07269fe76eeae556Lennart Poettering# These are the modules that the above NLM target depends on to load.
a558d00381291afd6a81f7df07269fe76eeae556Lennart Poettering# These will be added as a module command in the link.opt file.
a558d00381291afd6a81f7df07269fe76eeae556Lennart PoetteringFILES_nlm_modules = \
a558d00381291afd6a81f7df07269fe76eeae556Lennart Poettering# If the nlm has a msg file, put it's path here
62f21ec91ad8e7e24079962f4df066b0094fe68dLennart Poettering# If the nlm has a hlp file put it's path here
62f21ec91ad8e7e24079962f4df066b0094fe68dLennart Poettering# If this is specified, it will override $(NWOS)\copyright.txt.
62f21ec91ad8e7e24079962f4df066b0094fe68dLennart PoetteringFILE_nlm_copyright =
87a8baa35d6d65ac3b58ae8e26e338e67f8ae8edLennart Poettering# Any additional imports go here
0716c60e37d2083325cd5316caf4310f0acc9a89Lennart PoetteringFILES_nlm_Ximports = \
7f3e62571a63ac90de6ac5eefeeb8d3e9aa6f49eLennart Poettering# Any symbols exported to here
7f3e62571a63ac90de6ac5eefeeb8d3e9aa6f49eLennart PoetteringFILES_nlm_exports = \
4cbd9ecf45f64c3a9acc99d473fbf3be3687ae24Lennart Poettering auth_digest_module \
a6eb9147a820d1c08b315867373a21bd0ece2f05Lennart Poettering# These are the OBJ files needed to create the LIB target above.
a6eb9147a820d1c08b315867373a21bd0ece2f05Lennart Poettering# Paths must all use the '/' character
b011116d1829bde044a638cbabfb070a7e0e8fa7Kay SieversFILES_lib_objs = \
7ef5875d142f01ab4fe8d35412d48c10723ae2d4Lennart Poettering# implement targets and dependancies (leave this section alone)
f957632b960a0a42999b38ded7089fa602b41745Kay Sieverslibs :: $(OBJDIR) $(TARGET_lib)
a2f5666d06fe8233025738047115bb9e3959df3eLennart Poetteringnlms :: libs $(TARGET_nlm)
ad740100d108282d0244d5739d4dcc86fe4c5fdeLennart Poettering# Updated this target to create necessary directories and copy files to the
c821bd28c2ecce8d35248d61949fe1c0c3030b6cLennart Poettering# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
de6c78f8795743894431a099d26ec562a8acf3dfLennart Poetteringinstall :: nlms FORCE
14e639ae7a1dbf156273ce697d30fbc6c6594209Lennart Poettering# Any specialized rules here
72b9ed828bd22f3ddd74b6853c183eebf006d6d8Lennart Poettering# Include the 'tail' makefile that has targets that depend on variables defined
1d6702e8d3877c0bebf3ac817dc45ff72f5ecfa9Lennart Poettering# in this makefile
71092d70af35567dd154d3de2ce04ce62e157a7cLennart Poetteringinclude $(AP_WORK)\build\NWGNUtail.inc