| 1 | ### -*-makefile-*- |
| 2 | ### |
| 3 | ### Build script for Catacomb |
| 4 | ### |
| 5 | ### (c) 2013 Straylight/Edgeware |
| 6 | ### |
| 7 | |
| 8 | ###----- Licensing notice --------------------------------------------------- |
| 9 | ### |
| 10 | ### This file is part of Catacomb. |
| 11 | ### |
| 12 | ### Catacomb is free software; you can redistribute it and/or modify |
| 13 | ### it under the terms of the GNU Library General Public License as |
| 14 | ### published by the Free Software Foundation; either version 2 of the |
| 15 | ### License, or (at your option) any later version. |
| 16 | ### |
| 17 | ### Catacomb 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 Library General Public License for more details. |
| 21 | ### |
| 22 | ### You should have received a copy of the GNU Library General Public |
| 23 | ### License along with Catacomb; if not, write to the Free |
| 24 | ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, |
| 25 | ### MA 02111-1307, USA. |
| 26 | |
| 27 | include $(top_srcdir)/vars.am |
| 28 | ACLOCAL_AMFLAGS = -Im4 |
| 29 | |
| 30 | SUBDIRS = |
| 31 | |
| 32 | ###-------------------------------------------------------------------------- |
| 33 | ### Top-level library. |
| 34 | |
| 35 | lib_LTLIBRARIES = libcatacomb.la |
| 36 | libcatacomb_la_LDFLAGS = -version-info $(LIBTOOL_VERSION_INFO) \ |
| 37 | -no-undefined |
| 38 | libcatacomb_la_SOURCES = |
| 39 | libcatacomb_la_LIBADD = $(MATHLIBS) $(PIXIE_LIBS) $(CATACOMB_LIBS) \ |
| 40 | $(mLib_LIBS) |
| 41 | |
| 42 | ###-------------------------------------------------------------------------- |
| 43 | ### Package-configuration file. |
| 44 | |
| 45 | pkgconfigdir = $(libdir)/pkgconfig |
| 46 | pkgconfig_DATA = catacomb.pc |
| 47 | EXTRA_DIST += catacomb.pc.in |
| 48 | CLEANFILES += catacomb.pc |
| 49 | |
| 50 | catacomb.pc: catacomb.pc.in Makefile |
| 51 | $(SUBST) $(srcdir)/catacomb.pc.in >$@.new $(SUBSTITUTIONS) && \ |
| 52 | mv $@.new $@ |
| 53 | |
| 54 | ###-------------------------------------------------------------------------- |
| 55 | ### Subdirectories. |
| 56 | ### |
| 57 | ### Note: There are implicit dependencies between the subdirectories. Be |
| 58 | ### careful about reordering them. |
| 59 | |
| 60 | ## Basic utilities. |
| 61 | SUBDIRS += base |
| 62 | libcatacomb_la_LIBADD += base/libbase.la |
| 63 | |
| 64 | ## Mathematical infrastructure. |
| 65 | SUBDIRS += math |
| 66 | libcatacomb_la_LIBADD += math/libmath.la |
| 67 | |
| 68 | ## Symmetric cryptography. |
| 69 | SUBDIRS += symm |
| 70 | libcatacomb_la_LIBADD += symm/libsymm.la |
| 71 | |
| 72 | ## Key management. |
| 73 | SUBDIRS += key |
| 74 | libcatacomb_la_LIBADD += key/libkey.la |
| 75 | |
| 76 | ## Miscellaneous cryptography. |
| 77 | SUBDIRS += misc |
| 78 | libcatacomb_la_LIBADD += misc/libmisc.la |
| 79 | |
| 80 | ## Public-key cryptography. |
| 81 | SUBDIRS += pub |
| 82 | libcatacomb_la_LIBADD += pub/libpub.la |
| 83 | |
| 84 | ## Random number generators and related functionality. |
| 85 | SUBDIRS += rand |
| 86 | libcatacomb_la_LIBADD += rand/librand.la |
| 87 | |
| 88 | ## At this point, we should construct the library. |
| 89 | SUBDIRS += . |
| 90 | |
| 91 | ###-------------------------------------------------------------------------- |
| 92 | ### Ancillary programs. |
| 93 | |
| 94 | SUBDIRS += progs |
| 95 | |
| 96 | ###-------------------------------------------------------------------------- |
| 97 | ### Distribution. |
| 98 | |
| 99 | ## Release number. |
| 100 | dist-hook:: |
| 101 | echo $(VERSION) >$(distdir)/RELEASE |
| 102 | |
| 103 | ## Additional build tools. |
| 104 | EXTRA_DIST += build-setup |
| 105 | EXTRA_DIST += config/auto-version |
| 106 | EXTRA_DIST += config/confsubst |
| 107 | |
| 108 | ## Documentation files. |
| 109 | EXTRA_DIST += README.cipher |
| 110 | EXTRA_DIST += README.hash |
| 111 | EXTRA_DIST += README.mp |
| 112 | EXTRA_DIST += README.random |
| 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 |
| 122 | EXTRA_DIST += debian/compat |
| 123 | EXTRA_DIST += debian/source/format |
| 124 | |
| 125 | ## catacomb2 |
| 126 | EXTRA_DIST += debian/catacomb2.install |
| 127 | |
| 128 | ## catacomb-bin |
| 129 | EXTRA_DIST += debian/catacomb-bin.install |
| 130 | EXTRA_DIST += debian/catacomb-bin.prerm |
| 131 | EXTRA_DIST += debian/catacomb-bin.postinst |
| 132 | EXTRA_DIST += debian/catacomb-bin.config |
| 133 | EXTRA_DIST += debian/catacomb-bin.templates |
| 134 | |
| 135 | ## catacomb-data |
| 136 | EXTRA_DIST += debian/catacomb-data.install |
| 137 | |
| 138 | ## catacomb-dev |
| 139 | EXTRA_DIST += debian/catacomb-dev.install |
| 140 | |
| 141 | ###----- That's all, folks -------------------------------------------------- |