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 | ### | |
11ad66c2 MW |
12 | ### TrIPE is free software: you can redistribute it and/or modify it under |
13 | ### the terms of the GNU General Public License as published by the Free | |
14 | ### Software Foundation; either version 3 of the License, or (at your | |
15 | ### option) any later version. | |
6b6ad670 | 16 | ### |
11ad66c2 MW |
17 | ### TrIPE is distributed in the hope that it will be useful, but WITHOUT |
18 | ### ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
19 | ### FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
20 | ### for more details. | |
6b6ad670 MW |
21 | ### |
22 | ### You should have received a copy of the GNU General Public License | |
11ad66c2 | 23 | ### along with TrIPE. If not, see <https://www.gnu.org/licenses/>. |
6b6ad670 MW |
24 | |
25 | include $(top_srcdir)/vars.am | |
26 | ||
27 | SUBDIRS = | |
28 | ||
29 | ###-------------------------------------------------------------------------- | |
30 | ### Subdirectories. | |
31 | ||
32 | ## Core components. | |
33 | SUBDIRS += common | |
49f86fe4 | 34 | SUBDIRS += uslip |
6b6ad670 | 35 | SUBDIRS += client |
388e0319 | 36 | SUBDIRS += priv |
6b6ad670 MW |
37 | SUBDIRS += server |
38 | SUBDIRS += proxy | |
39 | SUBDIRS += pkstream | |
40 | SUBDIRS += init | |
41 | ||
c64d8cd5 | 42 | ## Path MTU discovery. |
c64d8cd5 | 43 | SUBDIRS += pathmtu |
c64d8cd5 | 44 | |
6b6ad670 MW |
45 | ## Wireshark. |
46 | if HAVE_WIRESHARK | |
47 | SUBDIRS += wireshark | |
48 | endif | |
49 | ||
2aff5dbb MW |
50 | ## Services. |
51 | if HAVE_PYTHON | |
207f030a | 52 | if HAVE_PYMLIB |
2fa80010 | 53 | SUBDIRS += py |
207f030a | 54 | if HAVE_PYCDB |
6005ef9b | 55 | SUBDIRS += peerdb |
207f030a MW |
56 | SUBDIRS += svc |
57 | endif | |
58 | endif | |
2aff5dbb MW |
59 | endif |
60 | ||
6b6ad670 | 61 | ## Key-management. |
207f030a | 62 | if HAVE_PYTHON |
6b6ad670 MW |
63 | if HAVE_PYCATACOMB |
64 | SUBDIRS += keys | |
65 | endif | |
207f030a | 66 | endif |
6b6ad670 MW |
67 | |
68 | ## Graphical monitor. | |
207f030a MW |
69 | if HAVE_PYTHON |
70 | if HAVE_PYMLIB | |
6b6ad670 MW |
71 | if HAVE_PYGTK |
72 | SUBDIRS += mon | |
73 | endif | |
207f030a MW |
74 | endif |
75 | endif | |
6b6ad670 | 76 | |
a4f886c3 MW |
77 | ## Contributed stuff. |
78 | SUBDIRS += contrib | |
79 | ||
1c5f4539 MW |
80 | ## Testing. |
81 | SUBDIRS += t | |
82 | ||
6b6ad670 | 83 | ###-------------------------------------------------------------------------- |
4a363f56 | 84 | ### Package-configuration file. |
6b6ad670 | 85 | |
03e37cbc | 86 | pkgconfigdir = $(datadir)/pkgconfig |
6b6ad670 MW |
87 | pkgconfig_DATA = tripe.pc |
88 | EXTRA_DIST += tripe.pc.in | |
89 | CLEANFILES += tripe.pc | |
90 | ||
91 | tripe.pc: tripe.pc.in Makefile | |
2171b19e | 92 | $(SUBST) $(srcdir)/tripe.pc.in >$@.new $(SUBSTITUTIONS) && \ |
6b6ad670 MW |
93 | mv $@.new $@ |
94 | ||
95 | ###-------------------------------------------------------------------------- | |
4a363f56 | 96 | ### Distribution. |
6b6ad670 MW |
97 | |
98 | ## Distcheck tweaks. | |
09cedbd2 | 99 | DISTCHECK_TUNNELS = slip |
6b6ad670 MW |
100 | |
101 | DISTCHECK_CONFIGURE_FLAGS = \ | |
102 | --with-tunnel='$(DISTCHECK_TUNNELS)' \ | |
103 | --with-wireshark='$${libdir}/wireshark/plugins' | |
104 | ||
105 | ## Release number. | |
106 | dist-hook:: | |
107 | echo $(VERSION) >$(distdir)/RELEASE | |
108 | ||
109 | ## Additional build tools. | |
110 | EXTRA_DIST += config/confsubst | |
12475f48 | 111 | EXTRA_DIST += config/auto-version |
6b6ad670 MW |
112 | |
113 | ###-------------------------------------------------------------------------- | |
114 | ### Debian. | |
115 | ||
116 | ## General stuff. | |
117 | EXTRA_DIST += debian/rules | |
118 | EXTRA_DIST += debian/control | |
119 | EXTRA_DIST += debian/changelog | |
120 | EXTRA_DIST += debian/copyright | |
e01eeb5e | 121 | EXTRA_DIST += debian/compat |
4a054757 | 122 | EXTRA_DIST += debian/source/format |
6b6ad670 MW |
123 | |
124 | ## pkstream | |
125 | EXTRA_DIST += debian/pkstream.copyright | |
126 | EXTRA_DIST += debian/pkstream.install | |
127 | ||
c64d8cd5 MW |
128 | ## pathmtu |
129 | EXTRA_DIST += debian/pathmtu.copyright | |
130 | EXTRA_DIST += debian/pathmtu.install | |
131 | ||
6b6ad670 MW |
132 | ## server and client |
133 | EXTRA_DIST += debian/tripe.README | |
134 | EXTRA_DIST += debian/tripe.dirs | |
135 | EXTRA_DIST += debian/tripe.install | |
136 | EXTRA_DIST += debian/tripe.postinst | |
137 | EXTRA_DIST += debian/tripe.logrotate | |
138 | ||
49f86fe4 MW |
139 | ## uslip |
140 | EXTRA_DIST += debian/tripe-uslip.install | |
141 | ||
6b6ad670 MW |
142 | ## keys |
143 | EXTRA_DIST += debian/tripe-keys.install | |
144 | ||
2fa80010 MW |
145 | ## modules |
146 | EXTRA_DIST += debian/python-tripe.install | |
147 | ||
a62f8e8a | 148 | ## peer services |
a62f8e8a | 149 | EXTRA_DIST += debian/tripe-peer-services.install |
101acb51 | 150 | EXTRA_DIST += debian/tripe-peer-services.postinst |
a62f8e8a | 151 | |
6b6ad670 MW |
152 | ## monitor |
153 | EXTRA_DIST += debian/tripemon.install | |
154 | ||
155 | ## wireshark | |
156 | EXTRA_DIST += debian/tripe-wireshark.install | |
157 | ||
6b6ad670 | 158 | ###----- That's all, folks -------------------------------------------------- |