Commit | Line | Data |
---|---|---|
5d9fd22a MW |
1 | ### -*-makefile-*- |
2 | ### | |
3 | ### Makefile for fw | |
4 | ### | |
5 | ### (c) 1999 Mark Wooding | |
6 | ### | |
8cf7c7c2 | 7 | |
5d9fd22a MW |
8 | ###----- Licensing notice --------------------------------------------------- |
9 | ### | |
10 | ### This file is part of the `fw' port forwarder. | |
11 | ### | |
12 | ### `fw' 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 | ### `fw' 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 `fw'; if not, write to the Free Software Foundation, | |
24 | ### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
25 | ||
26 | bin_PROGRAMS = | |
27 | man_MANS = | |
28 | ||
29 | EXTRA_DIST = | |
30 | BUILT_SOURCES = | |
31 | CLEANFILES = | |
32 | MAINTAINERCLEANFILES = | |
33 | ||
34 | AM_CFLAGS = $(mLib_CFLAGS) | |
35 | ||
36 | ###-------------------------------------------------------------------------- | |
37 | ### Documentation. | |
38 | ||
39 | make_manpage = perl $(srcdir)/make-manpage <$(srcdir)/fw.1.in | |
40 | EXTRA_DIST += fw.1.in make-manpage | |
41 | ||
42 | ## The manual page. | |
43 | man_MANS += fw.1 | |
44 | CLEANFILES += fw.1 | |
8cf7c7c2 MW |
45 | |
46 | fw.1: fw.1.in make-manpage | |
5d9fd22a MW |
47 | $(make_manpage) man >$@.new && mv $@.new $@ |
48 | ||
49 | ## The grammar summary. | |
50 | MAINTAINERCLEANFILES += $(srcdir)/GRAMMAR | |
51 | EXTRA_DIST += GRAMMAR | |
52 | ||
53 | $(srcdir)/GRAMMAR: fw.1.in make-manpage | |
54 | $(make_manpage) text >$@.new && mv $@.new $@ | |
55 | ||
56 | ###-------------------------------------------------------------------------- | |
57 | ### The main port forwarder. | |
58 | ||
59 | bin_PROGRAMS += fw | |
60 | fw_SOURCES = | |
61 | fw_LDADD = $(mLib_LIBS) | |
62 | ||
63 | ## Main program. | |
64 | fw_SOURCES += fw.c fw.h | |
65 | ||
66 | fw_SOURCES += chan.c chan.h | |
67 | fw_SOURCES += endpt.c endpt.h | |
68 | fw_SOURCES += source.c source.h | |
69 | fw_SOURCES += target.h | |
70 | ||
71 | fw_SOURCES += conf.c conf.h | |
72 | fw_SOURCES += scan.c scan.h | |
73 | fw_SOURCES += fattr.c fattr.h | |
74 | ||
75 | fw_SOURCES += reffd.c reffd.h | |
76 | ||
77 | ## Sockets. | |
78 | fw_SOURCES += socket.c socket.h | |
79 | fw_SOURCES += addr.h | |
80 | ||
81 | fw_SOURCES += un.c un.h | |
82 | ||
83 | fw_SOURCES += inet.c inet.h | |
84 | fw_SOURCES += acl.c acl.h | |
85 | fw_SOURCES += identify.c identify.h | |
86 | fw_SOURCES += privconn.c privconn.h | |
87 | ||
88 | ## Files. | |
89 | fw_SOURCES += file.c file.h | |
90 | ||
91 | ## Executables. | |
92 | fw_SOURCES += exec.c exec.h | |
93 | fw_SOURCES += rlimits.h | |
94 | ||
95 | ## Documentation. | |
96 | fw_SOURCES += mantext.c mantext.h | |
97 | CLEANFILES += mantext.c | |
98 | BUILT_SOURCES += mantext.c | |
8cf7c7c2 MW |
99 | |
100 | mantext.c: fw.1.in make-manpage | |
5d9fd22a MW |
101 | $(make_manpage) c >$@.new && mv $@.new $@ |
102 | ||
103 | ###-------------------------------------------------------------------------- | |
104 | ### Other infrastructure. | |
105 | ||
106 | ## Set the release number. | |
107 | dist-hook: | |
108 | echo "$(VERSION)" >$(distdir)/RELEASE | |
109 | ||
110 | ###-------------------------------------------------------------------------- | |
111 | ### Debian. | |
112 | ||
113 | EXTRA_DIST += debian/rules | |
114 | EXTRA_DIST += debian/changelog | |
115 | EXTRA_DIST += debian/control | |
116 | EXTRA_DIST += debian/copyright | |
117 | ||
118 | ###----- That's all, folks -------------------------------------------------- |