chiark / gitweb /
wip split into multiple files and make compile
[inn-innduct.git] / Makefile.am
index 27835cd98603754143a59902599fd6eeddd90fcf..cf76515103a64e91d243badd17704ba2f3a9ea96 100644 (file)
@@ -2,8 +2,23 @@ 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
+innduct_SOURCES = innduct.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: