SUBDIRS =
###--------------------------------------------------------------------------
-### The main library.
+### Top-level library.
lib_LTLIBRARIES = libcatacomb.la
-libcatacomb_la_LDFLAGS = -version-info $(LIBTOOL_VERSION_INFO)
-libcatacomb_la_LIBADD = $(CATACOMB_LIBS) $(mLib_LIBS)
+libcatacomb_la_LDFLAGS = -version-info $(LIBTOOL_VERSION_INFO) \
+ -no-undefined
libcatacomb_la_SOURCES =
+libcatacomb_la_LIBADD = $(MATHLIBS) $(PIXIE_LIBS) $(CATACOMB_LIBS) \
+ $(mLib_LIBS)
+
+###--------------------------------------------------------------------------
+### Package-configuration file.
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = catacomb.pc
+EXTRA_DIST += catacomb.pc.in
+CLEANFILES += catacomb.pc
+
+catacomb.pc: catacomb.pc.in Makefile
+ $(SUBST) $(srcdir)/catacomb.pc.in >$@.new $(SUBSTITUTIONS) && \
+ mv $@.new $@
+
+###--------------------------------------------------------------------------
+### Subdirectories.
+###
+### Note: There are implicit dependencies between the subdirectories. Be
+### careful about reordering them.
## Basic utilities.
SUBDIRS += base
SUBDIRS += progs
###--------------------------------------------------------------------------
-### The pkg-config file.
-
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = catacomb.pc
-EXTRA_DIST += catacomb.pc.in
-CLEANFILES += catacomb.pc
-
-catacomb.pc: catacomb.pc.in Makefile
- $(SUBST) $(srcdir)/catacomb.pc.in >$@.new $(SUBSTITUTIONS) && \
- mv $@.new $@
-
-###--------------------------------------------------------------------------
-### Release tweaking.
+### Distribution.
## Release number.
dist-hook::
echo $(VERSION) >$(distdir)/RELEASE
## Additional build tools.
+EXTRA_DIST += build-setup
EXTRA_DIST += config/auto-version
EXTRA_DIST += config/confsubst
+## Documentation files.
+EXTRA_DIST += README.cipher
+EXTRA_DIST += README.hash
+EXTRA_DIST += README.mp
+EXTRA_DIST += README.random
+
###--------------------------------------------------------------------------
### Debian.
EXTRA_DIST += debian/changelog
EXTRA_DIST += debian/copyright
EXTRA_DIST += debian/compat
+EXTRA_DIST += debian/source/format
## catacomb2
EXTRA_DIST += debian/catacomb2.install
+EXTRA_DIST += debian/catacomb2.symbols
## catacomb-bin
EXTRA_DIST += debian/catacomb-bin.install
EXTRA_DIST += debian/catacomb-bin.config
EXTRA_DIST += debian/catacomb-bin.templates
+## catacomb-data
+EXTRA_DIST += debian/catacomb-data.install
+
## catacomb-dev
EXTRA_DIST += debian/catacomb-dev.install