Commit | Line | Data |
---|---|---|
6b6ad670 MW |
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 | |
49f86fe4 | 35 | SUBDIRS += uslip |
6b6ad670 | 36 | SUBDIRS += client |
388e0319 | 37 | SUBDIRS += priv |
6b6ad670 MW |
38 | SUBDIRS += server |
39 | SUBDIRS += proxy | |
40 | SUBDIRS += pkstream | |
41 | SUBDIRS += init | |
42 | ||
c64d8cd5 | 43 | ## Path MTU discovery. |
c64d8cd5 | 44 | SUBDIRS += pathmtu |
c64d8cd5 | 45 | |
6b6ad670 MW |
46 | ## Wireshark. |
47 | if HAVE_WIRESHARK | |
48 | SUBDIRS += wireshark | |
49 | endif | |
50 | ||
2aff5dbb MW |
51 | ## Services. |
52 | if HAVE_PYTHON | |
207f030a | 53 | if HAVE_PYMLIB |
2fa80010 | 54 | SUBDIRS += py |
207f030a | 55 | if HAVE_PYCDB |
6005ef9b | 56 | SUBDIRS += peerdb |
207f030a MW |
57 | SUBDIRS += svc |
58 | endif | |
59 | endif | |
2aff5dbb MW |
60 | endif |
61 | ||
6b6ad670 | 62 | ## Key-management. |
207f030a | 63 | if HAVE_PYTHON |
6b6ad670 MW |
64 | if HAVE_PYCATACOMB |
65 | SUBDIRS += keys | |
66 | endif | |
207f030a | 67 | endif |
6b6ad670 MW |
68 | |
69 | ## Graphical monitor. | |
207f030a MW |
70 | if HAVE_PYTHON |
71 | if HAVE_PYMLIB | |
6b6ad670 MW |
72 | if HAVE_PYGTK |
73 | SUBDIRS += mon | |
74 | endif | |
207f030a MW |
75 | endif |
76 | endif | |
6b6ad670 | 77 | |
a4f886c3 MW |
78 | ## Contributed stuff. |
79 | SUBDIRS += contrib | |
80 | ||
1c5f4539 MW |
81 | ## Testing. |
82 | SUBDIRS += t | |
83 | ||
6b6ad670 | 84 | ###-------------------------------------------------------------------------- |
4a363f56 | 85 | ### Package-configuration file. |
6b6ad670 | 86 | |
03e37cbc | 87 | pkgconfigdir = $(datadir)/pkgconfig |
6b6ad670 MW |
88 | pkgconfig_DATA = tripe.pc |
89 | EXTRA_DIST += tripe.pc.in | |
90 | CLEANFILES += tripe.pc | |
91 | ||
92 | tripe.pc: tripe.pc.in Makefile | |
2171b19e | 93 | $(SUBST) $(srcdir)/tripe.pc.in >$@.new $(SUBSTITUTIONS) && \ |
6b6ad670 MW |
94 | mv $@.new $@ |
95 | ||
96 | ###-------------------------------------------------------------------------- | |
4a363f56 | 97 | ### Distribution. |
6b6ad670 MW |
98 | |
99 | ## Distcheck tweaks. | |
09cedbd2 | 100 | DISTCHECK_TUNNELS = slip |
6b6ad670 MW |
101 | |
102 | DISTCHECK_CONFIGURE_FLAGS = \ | |
103 | --with-tunnel='$(DISTCHECK_TUNNELS)' \ | |
104 | --with-wireshark='$${libdir}/wireshark/plugins' | |
105 | ||
106 | ## Release number. | |
107 | dist-hook:: | |
108 | echo $(VERSION) >$(distdir)/RELEASE | |
109 | ||
110 | ## Additional build tools. | |
111 | EXTRA_DIST += config/confsubst | |
12475f48 | 112 | EXTRA_DIST += config/auto-version |
6b6ad670 MW |
113 | |
114 | ###-------------------------------------------------------------------------- | |
115 | ### Debian. | |
116 | ||
117 | ## General stuff. | |
118 | EXTRA_DIST += debian/rules | |
119 | EXTRA_DIST += debian/control | |
120 | EXTRA_DIST += debian/changelog | |
121 | EXTRA_DIST += debian/copyright | |
e01eeb5e | 122 | EXTRA_DIST += debian/compat |
4a054757 | 123 | EXTRA_DIST += debian/source/format |
6b6ad670 MW |
124 | |
125 | ## pkstream | |
126 | EXTRA_DIST += debian/pkstream.copyright | |
127 | EXTRA_DIST += debian/pkstream.install | |
128 | ||
c64d8cd5 MW |
129 | ## pathmtu |
130 | EXTRA_DIST += debian/pathmtu.copyright | |
131 | EXTRA_DIST += debian/pathmtu.install | |
132 | ||
6b6ad670 MW |
133 | ## server and client |
134 | EXTRA_DIST += debian/tripe.README | |
135 | EXTRA_DIST += debian/tripe.dirs | |
136 | EXTRA_DIST += debian/tripe.install | |
137 | EXTRA_DIST += debian/tripe.postinst | |
138 | EXTRA_DIST += debian/tripe.logrotate | |
139 | ||
49f86fe4 MW |
140 | ## uslip |
141 | EXTRA_DIST += debian/tripe-uslip.install | |
142 | ||
6b6ad670 MW |
143 | ## keys |
144 | EXTRA_DIST += debian/tripe-keys.install | |
145 | ||
2fa80010 MW |
146 | ## modules |
147 | EXTRA_DIST += debian/python-tripe.install | |
148 | ||
a62f8e8a | 149 | ## peer services |
a62f8e8a | 150 | EXTRA_DIST += debian/tripe-peer-services.install |
101acb51 | 151 | EXTRA_DIST += debian/tripe-peer-services.postinst |
a62f8e8a | 152 | |
6b6ad670 MW |
153 | ## monitor |
154 | EXTRA_DIST += debian/tripemon.install | |
155 | ||
156 | ## wireshark | |
157 | EXTRA_DIST += debian/tripe-wireshark.install | |
158 | ||
6b6ad670 | 159 | ###----- That's all, folks -------------------------------------------------- |