X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=innduct.git;a=blobdiff_plain;f=Makefile.in;h=f61647fc9a87592c17eb9ffde806a391c38fe445;hp=4cc2775203c97f5573a173c0fa1ca50664a0a17d;hb=43dfc9f9c53eed2702dbc3701265027fbc522d0d;hpb=68be9a916b628ef3bd5051e4276a58474a5e2d22 diff --git a/Makefile.in b/Makefile.in index 4cc2775..f61647f 100644 --- a/Makefile.in +++ b/Makefile.in @@ -10,6 +10,30 @@ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. +# innduct +# tailing reliable realtime streaming feeder for inn +# Makefile.am +# +# Copyright (C) 2010 Ian Jackson +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +# (I believe that when you compile and link this as part of the inn2 +# build, with the Makefile runes I have provided, all the libraries +# and files which end up included in innduct are licence-compatible +# with GPLv3. If not then please let me know. -Ian Jackson.) + SHELL = @SHELL@ @@ -71,9 +95,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 +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 __oop-read-copy.c + + innduct_LDADD = -L/usr/lib/news -lstorage -linn -lm -loop + +MAINTAINERCLEANFILES = configure config.h.in Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/autoconf-aux/mkinstalldirs CONFIG_HEADER = config.h @@ -85,13 +123,19 @@ DEFS = @DEFS@ -I. -I$(srcdir) -I. CPPFLAGS = @CPPFLAGS@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ -innduct_OBJECTS = innduct.o __oop-read-copy.o +innduct_OBJECTS = duct.o conn.o filemon.o infile.o recv.o xmit.o cli.o \ +defer.o help.o statemc.o __oop-read-copy.o innduct_DEPENDENCIES = innduct_LDFLAGS = -CFLAGS = @CFLAGS@ +SCRIPTS = $(bin_SCRIPTS) + COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ +man8dir = $(mandir)/man8 +MANS = $(man_MANS) + +NROFF = nroff DIST_COMMON = ./stamp-h.in Makefile.am Makefile.in aclocal.m4 \ config.h.in configure configure.in @@ -100,7 +144,9 @@ DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = tar GZIP_ENV = --best -DEP_FILES = .deps/__oop-read-copy.P .deps/innduct.P +DEP_FILES = .deps/__oop-read-copy.P .deps/cli.P .deps/conn.P \ +.deps/defer.P .deps/duct.P .deps/filemon.P .deps/help.P .deps/infile.P \ +.deps/recv.P .deps/statemc.P .deps/xmit.P SOURCES = $(innduct_SOURCES) OBJECTS = $(innduct_OBJECTS) @@ -172,6 +218,64 @@ innduct: $(innduct_OBJECTS) $(innduct_DEPENDENCIES) @rm -f innduct $(LINK) $(innduct_LDFLAGS) $(innduct_OBJECTS) $(innduct_LDADD) $(LIBS) +install-binSCRIPTS: $(bin_SCRIPTS) + @$(NORMAL_INSTALL) + $(mkinstalldirs) $(DESTDIR)$(bindir) + @list='$(bin_SCRIPTS)'; for p in $$list; do \ + if test -f $$p; then \ + echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \ + $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \ + else if test -f $(srcdir)/$$p; then \ + echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \ + $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \ + else :; fi; fi; \ + done + +uninstall-binSCRIPTS: + @$(NORMAL_UNINSTALL) + list='$(bin_SCRIPTS)'; for p in $$list; do \ + rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \ + done + +install-man8: + $(mkinstalldirs) $(DESTDIR)$(man8dir) + @list='$(man8_MANS)'; \ + l2='$(man_MANS)'; for i in $$l2; do \ + case "$$i" in \ + *.8*) list="$$list $$i" ;; \ + esac; \ + done; \ + for i in $$list; do \ + if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ + else file=$$i; fi; \ + ext=`echo $$i | sed -e 's/^.*\\.//'`; \ + inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ + inst=`echo $$inst | sed '$(transform)'`.$$ext; \ + echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man8dir)/$$inst"; \ + $(INSTALL_DATA) $$file $(DESTDIR)$(man8dir)/$$inst; \ + done + +uninstall-man8: + @list='$(man8_MANS)'; \ + l2='$(man_MANS)'; for i in $$l2; do \ + case "$$i" in \ + *.8*) list="$$list $$i" ;; \ + esac; \ + done; \ + for i in $$list; do \ + ext=`echo $$i | sed -e 's/^.*\\.//'`; \ + inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ + inst=`echo $$inst | sed '$(transform)'`.$$ext; \ + echo " rm -f $(DESTDIR)$(man8dir)/$$inst"; \ + rm -f $(DESTDIR)$(man8dir)/$$inst; \ + done +install-man: $(MANS) + @$(NORMAL_INSTALL) + $(MAKE) $(AM_MAKEFLAGS) install-man8 +uninstall-man: + @$(NORMAL_UNINSTALL) + $(MAKE) $(AM_MAKEFLAGS) uninstall-man8 + tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) @@ -297,23 +401,24 @@ installcheck: installcheck-am all-recursive-am: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive -install-exec-am: install-binPROGRAMS +install-exec-am: install-binPROGRAMS install-binSCRIPTS install-exec: install-exec-am -install-data-am: +install-data-am: install-man install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am -uninstall-am: uninstall-binPROGRAMS +uninstall-am: uninstall-binPROGRAMS uninstall-binSCRIPTS uninstall-man uninstall: uninstall-am -all-am: Makefile $(PROGRAMS) config.h +all-am: Makefile $(PROGRAMS) $(SCRIPTS) $(MANS) config.h all-redirect: all-am install-strip: $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install installdirs: - $(mkinstalldirs) $(DESTDIR)$(bindir) + $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(bindir) \ + $(DESTDIR)$(mandir)/man8 mostlyclean-generic: @@ -325,6 +430,7 @@ distclean-generic: -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) mostlyclean-am: mostlyclean-hdr mostlyclean-binPROGRAMS \ mostlyclean-compile mostlyclean-tags mostlyclean-depend \ mostlyclean-generic @@ -357,12 +463,14 @@ maintainer-clean: maintainer-clean-am mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \ maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \ mostlyclean-compile distclean-compile clean-compile \ -maintainer-clean-compile tags mostlyclean-tags distclean-tags \ -clean-tags maintainer-clean-tags distdir mostlyclean-depend \ -distclean-depend clean-depend maintainer-clean-depend info-am info \ -dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \ -install-exec-am install-exec install-data-am install-data install-am \ -install uninstall-am uninstall all-redirect all-am all installdirs \ +maintainer-clean-compile uninstall-binSCRIPTS install-binSCRIPTS \ +install-man8 uninstall-man8 install-man uninstall-man tags \ +mostlyclean-tags distclean-tags clean-tags maintainer-clean-tags \ +distdir mostlyclean-depend distclean-depend clean-depend \ +maintainer-clean-depend info-am info dvi-am dvi check check-am \ +installcheck-am installcheck all-recursive-am install-exec-am \ +install-exec install-data-am install-data install-am install \ +uninstall-am uninstall all-redirect all-am all installdirs \ mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean