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