chiark / gitweb /
Build: Explicitly link against mLib or catacomb.
[tripe] / Makefile.am
1 ### -*-makefile-*-
2 ###
3 ### Makefile for TrIPE
4 ###
5 ### (c) 2001 Straylight/Edgeware
6 ###
7
8 ###----- Licensing notice ---------------------------------------------------
9 ###
10 ### This file is part of Trivial IP Encryption (TrIPE).
11 ###
12 ### TrIPE 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 ### TrIPE 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 TrIPE; if not, write to the Free Software Foundation,
24 ### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
26 include $(top_srcdir)/vars.am
27
28 SUBDIRS                  =
29
30 ###--------------------------------------------------------------------------
31 ### Subdirectories.
32
33 ## Core components.
34 SUBDIRS                 += common
35 SUBDIRS                 += uslip
36 SUBDIRS                 += client
37 SUBDIRS                 += server
38 SUBDIRS                 += proxy
39 SUBDIRS                 += pkstream
40 SUBDIRS                 += init
41
42 ## Wireshark.
43 if HAVE_WIRESHARK
44 SUBDIRS                 += wireshark
45 endif
46
47 ## Key-management.
48 if HAVE_PYCATACOMB
49 SUBDIRS                 += keys
50 endif
51
52 ## Graphical monitor.
53 if HAVE_PYGTK
54 SUBDIRS                 += mon
55 endif
56
57 ## Testing.
58 SUBDIRS                 += t
59
60 ###--------------------------------------------------------------------------
61 ### The pkg-config file.
62
63 pkgconfigdir             = $(libdir)/pkgconfig
64 pkgconfig_DATA           = tripe.pc
65 EXTRA_DIST              += tripe.pc.in
66 CLEANFILES              += tripe.pc
67
68 tripe.pc: tripe.pc.in Makefile
69         $(confsubst) $(srcdir)/tripe.pc.in >$@.new $(SUBSTITUTIONS) && \
70                 mv $@.new $@
71
72 ###--------------------------------------------------------------------------
73 ### Release tweaking.
74
75 ## Distcheck tweaks.
76 DISTCHECK_TUNNELS        = linux bsd unet slip
77
78 DISTCHECK_CONFIGURE_FLAGS = \
79         --with-tunnel='$(DISTCHECK_TUNNELS)' \
80         --with-wireshark='$${libdir}/wireshark/plugins'
81
82 ## Release number.
83 dist-hook::
84         echo $(VERSION) >$(distdir)/RELEASE
85
86 ## Manual page preamble.
87 EXTRA_DIST              += defs.man.in
88 CLEANFILES              += defs.man
89
90 ## Additional build tools.
91 EXTRA_DIST              += config/confsubst
92 EXTRA_DIST              += config/auto-version
93
94 ###--------------------------------------------------------------------------
95 ### Debian.
96
97 ## General stuff.
98 EXTRA_DIST              += debian/rules
99 EXTRA_DIST              += debian/control
100 EXTRA_DIST              += debian/changelog
101 EXTRA_DIST              += debian/copyright
102
103 ## pkstream
104 EXTRA_DIST              += debian/pkstream.copyright
105 EXTRA_DIST              += debian/pkstream.install
106
107 ## server and client
108 EXTRA_DIST              += debian/tripe.README
109 EXTRA_DIST              += debian/tripe.dirs
110 EXTRA_DIST              += debian/tripe.install
111 EXTRA_DIST              += debian/tripe.postinst
112 EXTRA_DIST              += debian/tripe.logrotate
113
114 ## uslip
115 EXTRA_DIST              += debian/tripe-uslip.install
116
117 ## keys
118 EXTRA_DIST              += debian/tripe-keys.install
119
120 ## monitor
121 EXTRA_DIST              += debian/tripemon.install
122
123 ## wireshark
124 EXTRA_DIST              += debian/tripe-wireshark.install
125
126
127 ###----- That's all, folks --------------------------------------------------