## -*-makefile-*-
##
-## $Id: Makefile.am,v 1.2 1999/07/03 13:53:27 mdw Exp $
-##
## Makefile for fw
##
## (c) 1999 Mark Wooding
## 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.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)
+EXTRA_DIST = \
+ fw.1.in GRAMMAR \
+ make-manpage \
+ debian/changelog debian/copyright debian/control debian/rules
+
+BUILT_SOURCES = mantext.c
+
+$(srcdir)/GRAMMAR: fw.1.in make-manpage
+ perl $(srcdir)/make-manpage text <$(srcdir)/fw.1.in >$@.new
+ mv $@.new $@
+
+fw.1: fw.1.in make-manpage
+ perl $(srcdir)/make-manpage man <$(srcdir)/fw.1.in >$@.new
+ mv $@.new $@
+
+mantext.c: fw.1.in make-manpage
+ perl $(srcdir)/make-manpage c <$(srcdir)/fw.1.in >$@.new
+ mv $@.new $@
fw_SOURCES = \
- acl.c bres.c chan.c conf.c forward.c fw.c \
- ident.c identify.c listener.c scan.c \
- acl.h bres.h chan.h conf.h forward.h fw.h \
- ident.h identify.h listener.h scan.h
+ chan.c conf.c endpt.c fw.c mantext.c reffd.c scan.c \
+ chan.h conf.h endpt.h fw.h mantext.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 fattr.c identify.c privconn.c \
+ acl.h fattr.h identify.h privconn.h rlimits.h
+
+CLEANFILES = $(BUILT_SOURCES) fw.1
+MAINTAINERCLEANFILES = $(srcdir)/GRAMMAR
##----- That's all, folks ---------------------------------------------------