NWGNUratelimit revision 44f575c8cb19a7a5cd61664a7848be6bc197df02
c63ebf815c8a874525cf18670ad74847f7fc7b26Christian Maeder# Declare the sub-directories to be built here
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# Get the 'head' of the build environment. This includes default targets and
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# paths to tools
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# build this level's files
a53841f6d6e86ac751c12a33dc8aadf53f59d977Klaus Luettich# Make sure all needed macro's are defined
68d10d143f29fcff3c637ba24f90e983995ceae6Christian Maeder# These directories will be at the beginning of the include list, followed by
9dac90ec2be2a72e03893095461960d483fe2fc2Christian Maeder $(APR)/include \
a6db617ca58eb6a0587b6366e913107dfecb71b5Heng Jiang $(APRUTIL)/include \
ce8b15da31cd181b7e90593cbbca98f47eda29d6Till Mossakowski $(SRC)/include \
a1ed34933c266ce85066acb0d7b20c90cb8eb213Christian Maeder# These flags will come after CFLAGS
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich# These defines will come after DEFINES
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich# These flags will be added to the link.opt file
8d97ef4f234681b11bb5924bd4d03adef858d2d2Christian Maeder# These values will be appended to the correct variables based on the value of
e593b89bfd4952698dc37feced21cefe869d87a2Christian Maederifeq "$(RELEASE)" "debug"
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian Maederifeq "$(RELEASE)" "noopt"
79e80c4b3f0ebb337d84415a50f29ccfc793e68bChristian Maederifeq "$(RELEASE)" "release"
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# These are used by the link target if an NLM is being generated
d3ae0072823e2ef0d41d4431fcc768e66489c20eChristian Maeder# This is used by the link 'name' directive to name the nlm. If left blank
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder# TARGET_nlm (see below) will be used.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederNLM_NAME = ratelimit
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder# This is used by the link '-desc ' directive.
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder# If left blank, NLM_NAME will be used.
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederNLM_DESCRIPTION = Apache $(VERSION_STR) Rate Limit Module
a6082d6cfdfbdc6a4e70430bb25638dfa4f0db9bHeng Jiang# This is used by the '-threadname' directive. If left blank,
a6082d6cfdfbdc6a4e70430bb25638dfa4f0db9bHeng Jiang# NLM_NAME Thread will be used.
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederNLM_THREAD_NAME = ratelimit
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder# If this is specified, it will override VERSION value in
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder# If this is specified, it will override the default of 64K
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederNLM_STACK_SIZE = 8192
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder# If this is specified it will be used by the link '-entry' directive
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederNLM_ENTRY_SYM =
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# If this is specified it will be used by the link '-exit' directive
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederNLM_EXIT_SYM =
bc8cbf12aa172bf5673b92a9e7a0151d4aa4c315Christian Maeder# If this is specified it will be used by the link '-check' directive
2d130d212db7208777ca896a7ecad619a8944971Christian MaederNLM_CHECK_SYM =
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder# If these are specified it will be used by the link '-flags' directive
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder# If this is specified it will be linked in with the XDCData option in the def
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder# by setting APACHE_UNIPROC in the environment
a9b59eb2ce961014974276cdae0e9df4419bd212Christian Maeder# If there is an NLM target, put it here
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederTARGET_nlm = \
a3c6d8e0670bf2aa71bc8e2a3b1f45d56dd65e4cChristian Maeder# If there is an LIB target, put it here
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederTARGET_lib = \
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder# These are the OBJ files needed to create the NLM target above.
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder# Paths must all use the '/' character
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederFILES_nlm_objs = \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder# These are the LIB files needed to create the NLM target above.
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich# These will be added as a library command in the link.opt file.
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederFILES_nlm_libs = \
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder# These are the modules that the above NLM target depends on to load.
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder# These will be added as a module command in the link.opt file.
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian MaederFILES_nlm_modules = \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder# If the nlm has a msg file, put it's path here
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederFILE_nlm_msg =
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder# If the nlm has a hlp file put it's path here
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian MaederFILE_nlm_hlp =
e6d5dbbc3308f05197868806e0b860f4f53875f1Christian Maeder# If this is specified, it will override $(NWOS)\copyright.txt.
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederFILE_nlm_copyright =
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder# Any additional imports go here
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederFILES_nlm_Ximports = \
74ed33551361b268c9dec050abd9af0da6db482bChristian Maeder# Any symbols exported to here
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederFILES_nlm_exports = \
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder ratelimit_module \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# These are the OBJ files needed to create the LIB target above.
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder# Paths must all use the '/' character
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederFILES_lib_objs = \
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder# implement targets and dependancies (leave this section alone)
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maederlibs :: $(OBJDIR) $(TARGET_lib)
06dd4e7c29f33f6122a910719e3bd9062256e397Andy Gimblettnlms :: libs $(TARGET_nlm)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers# Updated this target to create necessary directories and copy files to the
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maeder# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederinstall :: nlms FORCE
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder# Any specialized rules here
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder# Include the 'tail' makefile that has targets that depend on variables defined
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder# in this makefile
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maederinclude $(APBUILD)/NWGNUtail.inc