chiark / gitweb /
changelog: Finalise 2.2
[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 AM_CPPFLAGS = -I/usr/include/inn $(CMDLINE_CPPFLAGS)
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 AM_CFLAGS = $(WARNINGS) $(WERROR) $(CMDLINE_CFLAGS)
41
42 bin_PROGRAMS = innduct
43 bin_SCRIPTS = innduct-stats-report innduct-forall
44 man_MANS = innduct.8 innduct-stats-report.8
45 innduct_SOURCES = duct.c conn.c filemon.c infile.c recv.c xmit.c \
46                 cli.c defer.c help.c statemc.c __oop-read-copy.c
47
48 dist_doc_DATA = README.states README.statistics
49
50 innduct_LDADD = -L/usr/lib/news -lstorage -linn -lm -loop
51
52 autogen autoconf:
53         ./autogen.sh
54
55 MAINTAINERCLEANFILES = configure config.h.in Makefile.in