Release 1.3.9.
[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 = $(AM_V_GEN)perl \
41 $(srcdir)/make-manpage <$(srcdir)/fwd.1.in
42EXTRA_DIST += fwd.1.in make-manpage
43
44## The manual page.
45man_MANS += fwd.1
46CLEANFILES += fwd.1
47
48fwd.1: fwd.1.in make-manpage
49 $(make_manpage) man >$@.new && mv $@.new $@
50
51## The grammar summary.
52MAINTAINERCLEANFILES += $(srcdir)/GRAMMAR
53EXTRA_DIST += GRAMMAR
54
55$(srcdir)/GRAMMAR: fwd.1.in make-manpage
56 $(make_manpage) text >$@.new && mv $@.new $@
57
58###--------------------------------------------------------------------------
59### The main port forwarder.
60
61bin_PROGRAMS += fwd
62fwd_SOURCES =
63fwd_LDADD = $(mLib_LIBS)
64
65## Main program.
66fwd_SOURCES += fwd.c fwd.h
67
68fwd_SOURCES += chan.c
69fwd_SOURCES += endpt.c
70fwd_SOURCES += source.c
71fwd_SOURCES += target.c
72
73fwd_SOURCES += conf.c
74fwd_SOURCES += scan.c
75fwd_SOURCES += fattr.c
76
77fwd_SOURCES += reffd.c
78
79## Sockets.
80fwd_SOURCES += socket.c
81
82fwd_SOURCES += un.c
83
84fwd_SOURCES += inet.c
85fwd_SOURCES += acl.c
86fwd_SOURCES += identify.c
87fwd_SOURCES += privconn.c
88
89## Files.
90fwd_SOURCES += file.c
91
92## Executables.
93fwd_SOURCES += exec.c
94
95## Documentation.
96fwd_SOURCES += mantext.c
97CLEANFILES += mantext.c
98BUILT_SOURCES += mantext.c
99
100mantext.c: fwd.1.in make-manpage
101 $(make_manpage) c >$@.new && mv $@.new $@
102
103###--------------------------------------------------------------------------
104### The blast tool.
105
106noinst_PROGRAMS += blast
107blast_SOURCES = blast.c
108blast_LDADD = $(mLib_LIBS)
109
110###--------------------------------------------------------------------------
111### Other infrastructure.
112
113## Set the release number.
114dist-hook:
115 echo "$(VERSION)" >$(distdir)/RELEASE
116
117###--------------------------------------------------------------------------
118### Debian.
119
120## Main Debian files.
121EXTRA_DIST += debian/rules
122EXTRA_DIST += debian/changelog
123EXTRA_DIST += debian/compat
124EXTRA_DIST += debian/control
125EXTRA_DIST += debian/copyright
126
127## Run the daemon automatically.
128EXTRA_DIST += debian/fwd.init
129EXTRA_DIST += debian/fwd.postinst
130
131###----- That's all, folks --------------------------------------------------