chiark / gitweb /
changelog: Finalise 2.2
[innduct.git] / Makefile.am
index 27835cd98603754143a59902599fd6eeddd90fcf..c9a87c353ce2302bfffa98e0f25f41eb6cae51a9 100644 (file)
@@ -1,17 +1,40 @@
+#  innduct
+#  tailing reliable realtime streaming feeder for inn
+#  Makefile.am
+#
+#  Copyright Ian Jackson <ijackson@chiark.greenend.org.uk>
+#  and contributors; see LICENCE.txt.
+#  SPDX-License-Identifier: GPL-3.0-or-later
+
 AUTOMAKE_OPTIONS=foreign
 
-INCLUDES = -I/usr/include/inn
+AM_CPPFLAGS = -I/usr/include/inn $(CMDLINE_CPPFLAGS)
+
+WERROR = -Werror
+CMDLINE_CFLAGS =
+
+WARNINGS= \
+       -Wall -Wformat=2 -Wno-format-zero-length \
+       -Wshadow -Wpointer-arith -Wbad-function-cast \
+       -Wwrite-strings -Wsign-compare -Wstrict-prototypes \
+       -Wmissing-prototypes -Wmissing-declarations \
+       -Wmissing-format-attribute -Wredundant-decls -Wnested-externs \
+       -Wno-pointer-sign
+
+AM_CFLAGS = $(WARNINGS) $(WERROR) $(CMDLINE_CFLAGS)
 
 bin_PROGRAMS = innduct
-innduct_SOURCES = innduct.c __oop-read-copy.c
-innduct_LDADD = -L/usr/lib/news -lstorage -linn -lm -loop
-
-autoconf:
-       aclocal-1.4
-       autoheader2.50
-       autoconf2.50
-       automake-1.4
-       perl -i.bak -pe '$$_="" if m/^(?:Makefile|config\.h):/..m/^$$/' \
-               Makefile.in
+bin_SCRIPTS = innduct-stats-report innduct-forall
+man_MANS = innduct.8 innduct-stats-report.8
+innduct_SOURCES = duct.c conn.c filemon.c infile.c recv.c xmit.c \
+               cli.c defer.c help.c statemc.c
+
+dist_doc_DATA = README.states README.statistics README.example \
+               LICENCE.txt
+
+innduct_LDADD = -lm -loop
+
+autogen autoconf:
+       ./autogen.sh
 
 MAINTAINERCLEANFILES = configure config.h.in Makefile.in