chiark / gitweb /
Legal notice if no arguments supplied
[innduct.git] / Makefile.am
1 #  innduct
2 #  tailing reliable realtime streaming feeder for inn
3 #  Makefile.am
4 #
5 #  Copyright (C) 2010 Ian Jackson <ijackson@chiark.greenend.org.uk>
6
7 #  This program is free software: you can redistribute it and/or modify
8 #  it under the terms of the GNU General Public License as published by
9 #  the Free Software Foundation, either version 3 of the License, or
10 #  (at your option) any later version.
11
12 #  This program is distributed in the hope that it will be useful,
13 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
14 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 #  GNU General Public License for more details.
16
17 #  You should have received a copy of the GNU General Public License
18 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
19 #
20 #  (I believe that when you compile and link this as part of the inn2
21 #  build, with the Makefile runes I have provided, all the libraries
22 #  and files which end up included in innduct are licence-compatible
23 #  with GPLv3.  If not then please let me know.  -Ian Jackson.)
24
25 AUTOMAKE_OPTIONS=foreign
26
27 INCLUDES = -I/usr/include/inn
28
29 WERROR = -Werror
30 CMDLINE_CFLAGS =
31
32 WARNINGS= \
33         -Wall -Wformat=2 -Wno-format-zero-length \
34         -Wshadow -Wpointer-arith -Wbad-function-cast \
35         -Wwrite-strings -Wsign-compare -Wstrict-prototypes \
36         -Wmissing-prototypes -Wmissing-declarations \
37         -Wmissing-format-attribute -Wredundant-decls -Wnested-externs \
38         -Wno-pointer-sign
39
40 CFLAGS = @CFLAGS@ $(WARNINGS) $(WERROR) $(CMDLINE_CFLAGS)
41
42 bin_PROGRAMS = innduct
43 man_MANS = innduct.8
44 innduct_SOURCES = duct.c conn.c filemon.c infile.c recv.c xmit.c \
45                 cli.c defer.c help.c statemc.c __oop-read-copy.c
46
47 innduct_LDADD = -L/usr/lib/news -lstorage -linn -lm -loop
48
49 autoconf:
50         aclocal-1.4
51         autoheader2.50
52         autoconf2.50
53         automake-1.4
54         perl -i.bak -pe '$$_="" if m/^(?:Makefile|config\.h):/..m/^$$/' \
55                 Makefile.in
56
57 MAINTAINERCLEANFILES = configure config.h.in Makefile.in