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