chiark / gitweb /
a36afeb8f7370451aaa343e9888fc8a31b804caf
[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                 += priv
38 SUBDIRS                 += server
39 SUBDIRS                 += proxy
40 SUBDIRS                 += pkstream
41 SUBDIRS                 += init
42
43 ## Path MTU discovery.
44 if PATHMTU
45 SUBDIRS                 += pathmtu
46 endif
47
48 ## Wireshark.
49 if HAVE_WIRESHARK
50 SUBDIRS                 += wireshark
51 endif
52
53 ## Key-management.
54 if HAVE_PYCATACOMB
55 SUBDIRS                 += keys
56 endif
57
58 ## Graphical monitor.
59 if HAVE_PYGTK
60 SUBDIRS                 += mon
61 endif
62
63 ## Testing.
64 SUBDIRS                 += t
65
66 ###--------------------------------------------------------------------------
67 ### The pkg-config file.
68
69 pkgconfigdir             = $(libdir)/pkgconfig
70 pkgconfig_DATA           = tripe.pc
71 EXTRA_DIST              += tripe.pc.in
72 CLEANFILES              += tripe.pc
73
74 tripe.pc: tripe.pc.in Makefile
75         $(confsubst) $(srcdir)/tripe.pc.in >$@.new $(SUBSTITUTIONS) && \
76                 mv $@.new $@
77
78 ###--------------------------------------------------------------------------
79 ### Release tweaking.
80
81 ## Distcheck tweaks.
82 DISTCHECK_TUNNELS        = linux bsd unet slip
83
84 DISTCHECK_CONFIGURE_FLAGS = \
85         --with-tunnel='$(DISTCHECK_TUNNELS)' \
86         --with-wireshark='$${libdir}/wireshark/plugins'
87
88 ## Release number.
89 dist-hook::
90         echo $(VERSION) >$(distdir)/RELEASE
91
92 ## Additional build tools.
93 EXTRA_DIST              += config/confsubst
94 EXTRA_DIST              += config/auto-version
95
96 ###--------------------------------------------------------------------------
97 ### Debian.
98
99 ## General stuff.
100 EXTRA_DIST              += debian/rules
101 EXTRA_DIST              += debian/control
102 EXTRA_DIST              += debian/changelog
103 EXTRA_DIST              += debian/copyright
104
105 ## pkstream
106 EXTRA_DIST              += debian/pkstream.copyright
107 EXTRA_DIST              += debian/pkstream.install
108
109 ## pathmtu
110 EXTRA_DIST              += debian/pathmtu.copyright
111 EXTRA_DIST              += debian/pathmtu.install
112
113 ## server and client
114 EXTRA_DIST              += debian/tripe.README
115 EXTRA_DIST              += debian/tripe.dirs
116 EXTRA_DIST              += debian/tripe.install
117 EXTRA_DIST              += debian/tripe.postinst
118 EXTRA_DIST              += debian/tripe.logrotate
119
120 ## uslip
121 EXTRA_DIST              += debian/tripe-uslip.install
122
123 ## keys
124 EXTRA_DIST              += debian/tripe-keys.install
125
126 ## monitor
127 EXTRA_DIST              += debian/tripemon.install
128
129 ## wireshark
130 EXTRA_DIST              += debian/tripe-wireshark.install
131
132 ###----- That's all, folks --------------------------------------------------