.gitignore: Autoconf machinery banished to the `config' directory.
[fwd] / Makefile.am
... / ...
CommitLineData
1### -*-makefile-*-
2###
3### Makefile for fwd
4###
5### (c) 1999 Mark Wooding
6###
7
8###----- Licensing notice ---------------------------------------------------
9###
10### This file is part of the `fwd' port forwarder.
11###
12### `fwd' is free software; you can redistribute it and/or modify
13### it under the terms of the GNU General Public License as published by
14### the Free Software Foundation; either version 2 of the License, or
15### (at your option) any later version.
16###
17### `fwd' is distributed in the hope that it will be useful,
18### but WITHOUT ANY WARRANTY; without even the implied warranty of
19### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20### GNU General Public License for more details.
21###
22### You should have received a copy of the GNU General Public License
23### along with `fwd'; if not, write to the Free Software Foundation,
24### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
26bin_PROGRAMS =
27noinst_PROGRAMS =
28man_MANS =
29
30EXTRA_DIST =
31BUILT_SOURCES =
32CLEANFILES =
33MAINTAINERCLEANFILES =
34
35AM_CFLAGS = $(mLib_CFLAGS)
36
37###--------------------------------------------------------------------------
38### Documentation.
39
40make_manpage = perl $(srcdir)/make-manpage <$(srcdir)/fwd.1.in
41EXTRA_DIST += fwd.1.in make-manpage
42
43## The manual page.
44man_MANS += fwd.1
45CLEANFILES += fwd.1
46
47fwd.1: fwd.1.in make-manpage
48 $(make_manpage) man >$@.new && mv $@.new $@
49
50## The grammar summary.
51MAINTAINERCLEANFILES += $(srcdir)/GRAMMAR
52EXTRA_DIST += GRAMMAR
53
54$(srcdir)/GRAMMAR: fwd.1.in make-manpage
55 $(make_manpage) text >$@.new && mv $@.new $@
56
57###--------------------------------------------------------------------------
58### The main port forwarder.
59
60bin_PROGRAMS += fwd
61fwd_SOURCES =
62fwd_LDADD = $(mLib_LIBS)
63
64## Main program.
65fwd_SOURCES += fwd.c fwd.h
66
67fwd_SOURCES += chan.c
68fwd_SOURCES += endpt.c
69fwd_SOURCES += source.c
70
71fwd_SOURCES += conf.c
72fwd_SOURCES += scan.c
73fwd_SOURCES += fattr.c
74
75fwd_SOURCES += reffd.c
76
77## Sockets.
78fwd_SOURCES += socket.c
79
80fwd_SOURCES += un.c
81
82fwd_SOURCES += inet.c
83fwd_SOURCES += acl.c
84fwd_SOURCES += identify.c
85fwd_SOURCES += privconn.c
86
87## Files.
88fwd_SOURCES += file.c
89
90## Executables.
91fwd_SOURCES += exec.c
92fwd_SOURCES += rlimits.h
93
94## Documentation.
95fwd_SOURCES += mantext.c
96CLEANFILES += mantext.c
97BUILT_SOURCES += mantext.c
98
99mantext.c: fwd.1.in make-manpage
100 $(make_manpage) c >$@.new && mv $@.new $@
101
102###--------------------------------------------------------------------------
103### The blast tool.
104
105noinst_PROGRAMS += blast
106blast_SOURCES = blast.c
107blast_LDADD = $(mLib_LIBS)
108
109###--------------------------------------------------------------------------
110### Other infrastructure.
111
112## Set the release number.
113dist-hook:
114 echo "$(VERSION)" >$(distdir)/RELEASE
115
116###--------------------------------------------------------------------------
117### Debian.
118
119## Main Debian files.
120EXTRA_DIST += debian/rules
121EXTRA_DIST += debian/changelog
122EXTRA_DIST += debian/control
123EXTRA_DIST += debian/copyright
124
125## Run the daemon automatically.
126EXTRA_DIST += debian/fwd.init
127EXTRA_DIST += debian/fwd.postinst
128
129## Compatbility cruft.
130EXTRA_DIST += debian/fw.sh
131EXTRA_DIST += debian/fw.README.Debian
132
133###----- That's all, folks --------------------------------------------------