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