http://downloads.netgear.com/files/GPL/GPL_Source_V361j_DM111PSP_series_consumer_rele...
[bcm963xx.git] / userapps / opensource / siproxd / src / Makefile.am
1 #
2 #    Copyright (C) 2002-2005  Thomas Ries <tries@gmx.net>
3 #
4 #    This file is part of Siproxd.
5 #    
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.
10 #    
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.
15 #    
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 
19 #
20
21
22 AM_CFLAGS = -Wall -D_GNU_SOURCE \
23             -DBUILDSTR="\"`cat .buildno`\""
24
25 #
26 # Siproxd itself
27 #
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
33
34 #
35 # an example for a custom firewall control module
36 # that can be linked into siproxd (--with-custom-fwmodule)
37 #
38 noinst_LIBRARIES = libcustom_fw_module.a
39 libcustom_fw_module_a_SOURCES = custom_fw_module.c
40
41
42 noinst_HEADERS = log.h rewrite_rules.h siproxd.h digcalc.h rtpproxy.h \
43                  fwapi.h
44
45 EXTRA_DIST = .buildno
46
47 #
48 # count BUILDs - each time increment by one and define the
49 # C macro BUILDNO. bind it to a file everybody includes (log.h)
50 #
51 log.h: increment_build
52
53 increment_build:
54         @echo "incrementing BUILD number"
55         @if [ -f .buildno ]; then \
56           bld=`cat .buildno`; \
57           bld=`expr $${bld} + 1`; \
58         else \
59           bld=1; \
60         fi; \
61         echo "$${bld}" >.buildno;