| 1 | # |
| 2 | # Asterisk -- An open source telephony toolkit. |
| 3 | # |
| 4 | # Makefile for dialplan functions |
| 5 | # |
| 6 | # Copyright (C) 2005-2006, Digium, Inc. |
| 7 | # |
| 8 | # This program is free software, distributed under the terms of |
| 9 | # the GNU General Public License |
| 10 | # |
| 11 | |
| 12 | -include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps |
| 13 | |
| 14 | MODULE_PREFIX=func |
| 15 | MENUSELECT_CATEGORY=FUNCS |
| 16 | MENUSELECT_DESCRIPTION=Dialplan Functions |
| 17 | |
| 18 | all: _all |
| 19 | |
| 20 | include $(ASTTOPDIR)/Makefile.moddir_rules |
| 21 | |
| 22 | # the SPRINTF() function in func_sprintf accepts format specifiers |
| 23 | # and thus passes them to snprintf() as non-literal strings; the compiler |
| 24 | # can't check the string and arguments to ensure they match, so this |
| 25 | # warning must be disabled; for safety reasons, SPRINTF() is kept in |
| 26 | # a separate module so that as little code as possible is left unchecked |
| 27 | func_sprintf.o: _ASTCFLAGS+=-Wno-format-nonliteral |
| 28 | |
| 29 | func_groupcount.o: _ASTCFLAGS+=$(AST_NO_FORMAT_TRUNCATION) |