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