chiark / gitweb /
Use autoconf to find -linnstorage etc., and link statically
[innduct.git] / Makefile.am
index 693c90fbbf79ea8c4ece1df075c8a8b40cc9f3f2..7850d48f11fdabb0c96c8b4828c0f498529b832b 100644 (file)
@@ -24,7 +24,7 @@
 
 AUTOMAKE_OPTIONS=foreign
 
-AM_CPPFLAGS = -I/usr/include/inn
+AM_CPPFLAGS = -I/usr/include/inn $(CMDLINE_CPPFLAGS)
 
 WERROR = -Werror
 CMDLINE_CFLAGS =
@@ -37,7 +37,7 @@ WARNINGS= \
        -Wmissing-format-attribute -Wredundant-decls -Wnested-externs \
        -Wno-pointer-sign
 
-CFLAGS = @CFLAGS@ $(WARNINGS) $(WERROR) $(CMDLINE_CFLAGS)
+AM_CFLAGS = $(WARNINGS) $(WERROR) $(CMDLINE_CFLAGS)
 
 bin_PROGRAMS = innduct
 bin_SCRIPTS = innduct-stats-report innduct-forall
@@ -45,14 +45,11 @@ 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 __oop-read-copy.c
 
-innduct_LDADD = -L/usr/lib/news -lstorage -linn -lm -loop
+dist_doc_DATA = README.states README.statistics
 
-autoconf:
-       aclocal-1.4
-       autoheader2.50
-       autoconf2.50
-       automake-1.4
-       perl -i.bak -pe '$$_="" if m/^(?:Makefile|config\.h):/..m/^$$/' \
-               Makefile.in
+innduct_LDADD = -lm -loop
+
+autogen autoconf:
+       ./autogen.sh
 
 MAINTAINERCLEANFILES = configure config.h.in Makefile.in