Commit | Line | Data |
---|---|---|
5d9fd22a MW |
1 | ### -*-makefile-*- |
2 | ### | |
9155ea97 | 3 | ### Makefile for fwd |
5d9fd22a MW |
4 | ### |
5 | ### (c) 1999 Mark Wooding | |
6 | ### | |
8cf7c7c2 | 7 | |
5d9fd22a MW |
8 | ###----- Licensing notice --------------------------------------------------- |
9 | ### | |
9155ea97 | 10 | ### This file is part of the `fwd' port forwarder. |
5d9fd22a | 11 | ### |
9155ea97 | 12 | ### `fwd' is free software; you can redistribute it and/or modify |
5d9fd22a MW |
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 | ### | |
9155ea97 | 17 | ### `fwd' is distributed in the hope that it will be useful, |
5d9fd22a MW |
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 | |
9155ea97 | 23 | ### along with `fwd'; if not, write to the Free Software Foundation, |
5d9fd22a MW |
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 | ||
9155ea97 MW |
39 | make_manpage = perl $(srcdir)/make-manpage <$(srcdir)/fwd.1.in |
40 | EXTRA_DIST += fwd.1.in make-manpage | |
5d9fd22a MW |
41 | |
42 | ## The manual page. | |
9155ea97 MW |
43 | man_MANS += fwd.1 |
44 | CLEANFILES += fwd.1 | |
8cf7c7c2 | 45 | |
9155ea97 | 46 | fwd.1: fwd.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 | ||
9155ea97 | 53 | $(srcdir)/GRAMMAR: fwd.1.in make-manpage |
5d9fd22a MW |
54 | $(make_manpage) text >$@.new && mv $@.new $@ |
55 | ||
56 | ###-------------------------------------------------------------------------- | |
57 | ### The main port forwarder. | |
58 | ||
9155ea97 MW |
59 | bin_PROGRAMS += fwd |
60 | fwd_SOURCES = | |
61 | fwd_LDADD = $(mLib_LIBS) | |
5d9fd22a MW |
62 | |
63 | ## Main program. | |
9155ea97 | 64 | fwd_SOURCES += fwd.c fwd.h |
5d9fd22a | 65 | |
9155ea97 MW |
66 | fwd_SOURCES += chan.c |
67 | fwd_SOURCES += endpt.c | |
68 | fwd_SOURCES += source.c | |
5d9fd22a | 69 | |
9155ea97 MW |
70 | fwd_SOURCES += conf.c |
71 | fwd_SOURCES += scan.c | |
72 | fwd_SOURCES += fattr.c | |
5d9fd22a | 73 | |
9155ea97 | 74 | fwd_SOURCES += reffd.c |
5d9fd22a MW |
75 | |
76 | ## Sockets. | |
9155ea97 | 77 | fwd_SOURCES += socket.c |
5d9fd22a | 78 | |
9155ea97 | 79 | fwd_SOURCES += un.c |
5d9fd22a | 80 | |
9155ea97 MW |
81 | fwd_SOURCES += inet.c |
82 | fwd_SOURCES += acl.c | |
83 | fwd_SOURCES += identify.c | |
84 | fwd_SOURCES += privconn.c | |
5d9fd22a MW |
85 | |
86 | ## Files. | |
9155ea97 | 87 | fwd_SOURCES += file.c |
5d9fd22a MW |
88 | |
89 | ## Executables. | |
9155ea97 MW |
90 | fwd_SOURCES += exec.c |
91 | fwd_SOURCES += rlimits.h | |
5d9fd22a MW |
92 | |
93 | ## Documentation. | |
9155ea97 | 94 | fwd_SOURCES += mantext.c |
5d9fd22a MW |
95 | CLEANFILES += mantext.c |
96 | BUILT_SOURCES += mantext.c | |
8cf7c7c2 | 97 | |
9155ea97 | 98 | mantext.c: fwd.1.in make-manpage |
5d9fd22a MW |
99 | $(make_manpage) c >$@.new && mv $@.new $@ |
100 | ||
101 | ###-------------------------------------------------------------------------- | |
102 | ### Other infrastructure. | |
103 | ||
104 | ## Set the release number. | |
105 | dist-hook: | |
106 | echo "$(VERSION)" >$(distdir)/RELEASE | |
107 | ||
108 | ###-------------------------------------------------------------------------- | |
109 | ### Debian. | |
110 | ||
c9731e8b | 111 | ## Main Debian files. |
5d9fd22a MW |
112 | EXTRA_DIST += debian/rules |
113 | EXTRA_DIST += debian/changelog | |
114 | EXTRA_DIST += debian/control | |
115 | EXTRA_DIST += debian/copyright | |
116 | ||
c9731e8b | 117 | ## Run the daemon automatically. |
9155ea97 MW |
118 | EXTRA_DIST += debian/fwd.init |
119 | EXTRA_DIST += debian/fwd.postinst | |
120 | ||
121 | ## Compatbility cruft. | |
122 | EXTRA_DIST += debian/fw.sh | |
123 | EXTRA_DIST += debian/fw.README.Debian | |
c9731e8b | 124 | |
5d9fd22a | 125 | ###----- That's all, folks -------------------------------------------------- |