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