2 # Copyright (C) 2002-2005 Thomas Ries <tries@gmx.net>
4 # This file is part of Siproxd.
6 # Siproxd is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # Siproxd is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with Siproxd; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 AM_CFLAGS = -Wall -D_GNU_SOURCE \
23 -DBUILDSTR="\"`cat .buildno`\""
28 sbin_PROGRAMS = siproxd
29 siproxd_SOURCES = siproxd.c proxy.c register.c sock.c utils.c \
30 sip_utils.c log.c readconf.c rtpproxy.c \
31 rtpproxy_relay.c accessctl.c route_processing.c \
32 security.c auth.c fwapi.c
35 # an example for a custom firewall control module
36 # that can be linked into siproxd (--with-custom-fwmodule)
38 noinst_LIBRARIES = libcustom_fw_module.a
39 libcustom_fw_module_a_SOURCES = custom_fw_module.c
42 noinst_HEADERS = log.h rewrite_rules.h siproxd.h digcalc.h rtpproxy.h \
48 # count BUILDs - each time increment by one and define the
49 # C macro BUILDNO. bind it to a file everybody includes (log.h)
51 log.h: increment_build
54 @echo "incrementing BUILD number"
55 @if [ -f .buildno ]; then \
57 bld=`expr $${bld} + 1`; \
61 echo "$${bld}" >.buildno;