chiark / gitweb /
REORG remove old/ directory
[inn-innduct.git] / Makefile.am
index d81c8e597f2ffd9d5d5951688186915cd0f08e0b..b3a424942be11c7aceecc0bdc18ed348676a2d92 100644 (file)
@@ -2,8 +2,24 @@ AUTOMAKE_OPTIONS=foreign
 
 INCLUDES = -I/usr/include/inn
 
+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
+
+CFLAGS = @CFLAGS@ $(WARNINGS) $(WERROR) $(CMDLINE_CFLAGS)
+
 bin_PROGRAMS = innduct
-innduct_SOURCES = innduct.c __oop-read-copy.c
+man_MANS = innduct.8
+innduct_SOURCES = duct.c conn.c filemon.c infile.c recv.c xmit.c \
+               cli.c defer.c help.c statemc.c __oop-read-copy.c
+
 innduct_LDADD = -L/usr/lib/news -lstorage -linn -lm -loop
 
 autoconf:
@@ -14,4 +30,4 @@ autoconf:
        perl -i.bak -pe '$$_="" if m/^(?:Makefile|config\.h):/..m/^$$/' \
                Makefile.in
 
-GENERATED_SHIP = configure config.h.in Makefile.in
+MAINTAINERCLEANFILES = configure config.h.in Makefile.in