mobius_includedir = $(includedir)/mobius
nobase_mobius_include_HEADERS = *.h *.inc

lib_LTLIBRARIES = libmobius.la
libmobius_la_CXXFLAGS = -I$(top_srcdir)/src
libmobius_la_SOURCES =						\
	benchmark.cc						\
	bytearray.cc						\
	charset.cc						\
	exception.cc						\
	metadata.cc						\
	string_functions.cc					\
	unittest.cc

libmobius_la_LDFLAGS = -avoid-version
libmobius_la_LIBADD =						\
	core/libmobius-core.la					\
	crypt/libmobius-crypt.la				\
	database/libmobius-database.la				\
	datetime/libmobius-datetime.la				\
	decoder/libmobius-decoder.la				\
	disk/libmobius-disk.la					\
	encoder/libmobius-encoder.la				\
	imagefile/libmobius-imagefile.la			\
	io/libmobius-io.la					\
	model/libmobius-model.la				\
	os/libmobius-os.la					\
	partition/libmobius-partition.la			\
	pod/libmobius-pod.la					\
	system/libmobius-system.la				\
	turing/libmobius-turing.la				\
	ui/libmobius-ui.la					\
	vfs/libmobius-vfs.la

SUBDIRS =							\
	core							\
	crypt							\
	database						\
	datetime						\
	decoder							\
	disk							\
	encoder							\
	imagefile						\
	io							\
	model							\
	os							\
	partition						\
	pod							\
	system							\
	turing							\
	ui							\
	vfs

if HAVE_LIBZ
libmobius_la_SOURCES +=						\
	zlib_functions.h					\
	zlib_functions.cc
libmobius_la_CXXFLAGS += $(ZLIB_CXXFLAGS)
libmobius_la_LDFLAGS += $(ZLIB_LDFLAGS)
endif
