| 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 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. |
| 16 | ### |
| 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. |
| 21 | ### |
| 22 | ### You should have received a copy of the GNU General Public License |
| 23 | ### along with TrIPE. If not, see <https://www.gnu.org/licenses/>. |
| 24 | |
| 25 | include $(top_srcdir)/vars.am |
| 26 | |
| 27 | SUBDIRS = |
| 28 | |
| 29 | ###-------------------------------------------------------------------------- |
| 30 | ### Subdirectories. |
| 31 | |
| 32 | ## Core components. |
| 33 | SUBDIRS += common |
| 34 | SUBDIRS += uslip |
| 35 | SUBDIRS += client |
| 36 | SUBDIRS += priv |
| 37 | SUBDIRS += server |
| 38 | SUBDIRS += proxy |
| 39 | SUBDIRS += pkstream |
| 40 | SUBDIRS += init |
| 41 | |
| 42 | ## Path MTU discovery. |
| 43 | SUBDIRS += pathmtu |
| 44 | |
| 45 | ## Wireshark. |
| 46 | if HAVE_WIRESHARK |
| 47 | SUBDIRS += wireshark |
| 48 | endif |
| 49 | |
| 50 | ## Services. |
| 51 | if HAVE_PYTHON |
| 52 | if HAVE_PYMLIB |
| 53 | SUBDIRS += py |
| 54 | if HAVE_PYCDB |
| 55 | SUBDIRS += peerdb |
| 56 | SUBDIRS += svc |
| 57 | endif |
| 58 | endif |
| 59 | endif |
| 60 | |
| 61 | ## Key-management. |
| 62 | if HAVE_PYTHON |
| 63 | if HAVE_PYCATACOMB |
| 64 | SUBDIRS += keys |
| 65 | endif |
| 66 | endif |
| 67 | |
| 68 | ## Graphical monitor. |
| 69 | if HAVE_PYTHON |
| 70 | if HAVE_PYMLIB |
| 71 | if HAVE_PYGTK |
| 72 | SUBDIRS += mon |
| 73 | endif |
| 74 | endif |
| 75 | endif |
| 76 | |
| 77 | ## Contributed stuff. |
| 78 | SUBDIRS += contrib |
| 79 | |
| 80 | ## Testing. |
| 81 | SUBDIRS += t |
| 82 | |
| 83 | ###-------------------------------------------------------------------------- |
| 84 | ### Package-configuration file. |
| 85 | |
| 86 | pkgconfigdir = $(datadir)/pkgconfig |
| 87 | pkgconfig_DATA = tripe.pc |
| 88 | EXTRA_DIST += tripe.pc.in |
| 89 | CLEANFILES += tripe.pc |
| 90 | |
| 91 | tripe.pc: tripe.pc.in Makefile |
| 92 | $(SUBST) $(srcdir)/tripe.pc.in >$@.new $(SUBSTITUTIONS) && \ |
| 93 | mv $@.new $@ |
| 94 | |
| 95 | ###-------------------------------------------------------------------------- |
| 96 | ### Distribution. |
| 97 | |
| 98 | ## Distcheck tweaks. |
| 99 | DISTCHECK_TUNNELS = slip |
| 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 |
| 111 | EXTRA_DIST += config/auto-version |
| 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 |
| 121 | EXTRA_DIST += debian/compat |
| 122 | EXTRA_DIST += debian/source/format |
| 123 | |
| 124 | ## pkstream |
| 125 | EXTRA_DIST += debian/pkstream.copyright |
| 126 | EXTRA_DIST += debian/pkstream.install |
| 127 | |
| 128 | ## pathmtu |
| 129 | EXTRA_DIST += debian/pathmtu.copyright |
| 130 | EXTRA_DIST += debian/pathmtu.install |
| 131 | |
| 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 | |
| 139 | ## uslip |
| 140 | EXTRA_DIST += debian/tripe-uslip.install |
| 141 | |
| 142 | ## keys |
| 143 | EXTRA_DIST += debian/tripe-keys.install |
| 144 | |
| 145 | ## modules |
| 146 | EXTRA_DIST += debian/python-tripe.install |
| 147 | |
| 148 | ## peer services |
| 149 | EXTRA_DIST += debian/tripe-peer-services.install |
| 150 | EXTRA_DIST += debian/tripe-peer-services.postinst |
| 151 | |
| 152 | ## monitor |
| 153 | EXTRA_DIST += debian/tripemon.install |
| 154 | |
| 155 | ## wireshark |
| 156 | EXTRA_DIST += debian/tripe-wireshark.install |
| 157 | |
| 158 | ###----- That's all, folks -------------------------------------------------- |