Whitespace fixing.
[fwd] / Makefile.am
index a6daaa0..055a217 100644 (file)
-## -*-makefile-*-
-##
-## $Id: Makefile.am,v 1.3 1999/07/26 23:30:06 mdw Exp $
-##
-## Makefile for fw
-##
-## (c) 1999 Mark Wooding
-##
-
-##----- Licensing notice ----------------------------------------------------
-##
-## This file is part of the `fw' port forwarder.
-##
-## `fw' 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 2 of the License, or
-## (at your option) any later version.
-## 
-## `fw' 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 `fw'; if not, write to the Free Software Foundation,
-## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-##----- Revision history ----------------------------------------------------
-##
-## $Log: Makefile.am,v $
-## Revision 1.3  1999/07/26 23:30:06  mdw
-## Lots of changes to source files for new design.
-##
-## Revision 1.2  1999/07/03 13:53:27  mdw
-## Install and distribute new manual page.
-##
-## Revision 1.1.1.1  1999/07/01 08:56:23  mdw
-## Initial revision.
-##
-
-AUTOMAKE_OPTIONS = foreign
-
-SUBDIRS = mLib
-
-bin_PROGRAMS = fw
-man_MANS = fw.1
-LDADD = mLib/libmLib.a
-INCLUDES = -I$(srcdir)/mLib
-
-EXTRA_DIST = $(man_MANS)
-
-fw_SOURCES = \
-       chan.c conf.c endpt.c fw.c reffd.c scan.c \
-       chan.h conf.h endpt.h fw.h reffd.h scan.h \
-       \
-       source.c source.h target.h \
-         exec.c file.c socket.c \
-         exec.h file.h socket.h \
-       \
-       addr.h \
-         inet.c un.c \
-         inet.h un.h \
-       \
-       acl.c bres.c fattr.c ident.c identify.c \
-       acl.h bres.h fattr.h ident.h identify.h rlimits.h
-
-##----- That's all, folks ---------------------------------------------------
+### -*-makefile-*-
+###
+### Makefile for fwd
+###
+### (c) 1999 Mark Wooding
+###
+
+###----- Licensing notice ---------------------------------------------------
+###
+### This file is part of the `fwd' port forwarder.
+###
+### `fwd' 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 2 of the License, or
+### (at your option) any later version.
+###
+### `fwd' 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 `fwd'; if not, write to the Free Software Foundation,
+### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+bin_PROGRAMS            =
+noinst_PROGRAMS                 =
+man_MANS                =
+
+EXTRA_DIST              =
+BUILT_SOURCES           =
+CLEANFILES              =
+MAINTAINERCLEANFILES    =
+
+AM_CFLAGS               = $(mLib_CFLAGS)
+
+###--------------------------------------------------------------------------
+### Documentation.
+
+make_manpage            = $(AM_V_GEN)perl \
+                               $(srcdir)/make-manpage <$(srcdir)/fwd.1.in
+EXTRA_DIST             += fwd.1.in make-manpage
+
+## The manual page.
+man_MANS               += fwd.1
+CLEANFILES             += fwd.1
+
+fwd.1: fwd.1.in make-manpage
+       $(make_manpage) man >$@.new && mv $@.new $@
+
+## The grammar summary.
+MAINTAINERCLEANFILES   += $(srcdir)/GRAMMAR
+EXTRA_DIST             += GRAMMAR
+
+$(srcdir)/GRAMMAR: fwd.1.in make-manpage
+       $(make_manpage) text >$@.new && mv $@.new $@
+
+###--------------------------------------------------------------------------
+### The main port forwarder.
+
+bin_PROGRAMS           += fwd
+fwd_SOURCES             =
+fwd_LDADD               = $(mLib_LIBS)
+
+## Main program.
+fwd_SOURCES            += fwd.c fwd.h
+
+fwd_SOURCES            += chan.c
+fwd_SOURCES            += endpt.c
+fwd_SOURCES            += source.c
+
+fwd_SOURCES            += conf.c
+fwd_SOURCES            += scan.c
+fwd_SOURCES            += fattr.c
+
+fwd_SOURCES            += reffd.c
+
+## Sockets.
+fwd_SOURCES            += socket.c
+
+fwd_SOURCES            += un.c
+
+fwd_SOURCES            += inet.c
+fwd_SOURCES            += acl.c
+fwd_SOURCES            += identify.c
+fwd_SOURCES            += privconn.c
+
+## Files.
+fwd_SOURCES            += file.c
+
+## Executables.
+fwd_SOURCES            += exec.c
+
+## Documentation.
+fwd_SOURCES            += mantext.c
+CLEANFILES             += mantext.c
+BUILT_SOURCES          += mantext.c
+
+mantext.c: fwd.1.in make-manpage
+       $(make_manpage) c >$@.new && mv $@.new $@
+
+###--------------------------------------------------------------------------
+### The blast tool.
+
+noinst_PROGRAMS                += blast
+blast_SOURCES           = blast.c
+blast_LDADD             = $(mLib_LIBS)
+
+###--------------------------------------------------------------------------
+### Other infrastructure.
+
+## Set the release number.
+dist-hook:
+       echo "$(VERSION)" >$(distdir)/RELEASE
+
+###--------------------------------------------------------------------------
+### Debian.
+
+## Main Debian files.
+EXTRA_DIST             += debian/rules
+EXTRA_DIST             += debian/changelog
+EXTRA_DIST             += debian/compat
+EXTRA_DIST             += debian/control
+EXTRA_DIST             += debian/copyright
+
+## Run the daemon automatically.
+EXTRA_DIST             += debian/fwd.init
+EXTRA_DIST             += debian/fwd.postinst
+
+###----- That's all, folks --------------------------------------------------