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