From 2ac43d981859bda063e7067371c1cf246c7f81b0 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sat, 31 Aug 2019 16:59:50 +0200 Subject: Split libsquashfs.a into low seperate libraries The idea is to make libsquashfs.a independend of libfstree.a, so it becomes a general purpose squashfs manipulation library. All the high level glue code for libfstree.a and utilites that are overly specific with to tools are moved to a seperate librarby. This commit makes the first step by moving the stuff with dependencies on libfstree to a seperate library. Signed-off-by: David Oberhollenzer --- lib/Makemodule.am | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) (limited to 'lib/Makemodule.am') diff --git a/lib/Makemodule.am b/lib/Makemodule.am index dee2b8d..5905b26 100644 --- a/lib/Makemodule.am +++ b/lib/Makemodule.am @@ -24,17 +24,9 @@ libsquashfs_a_SOURCES += lib/sqfs/write_table.c include/highlevel.h libsquashfs_a_SOURCES += lib/sqfs/read_super.c lib/sqfs/meta_reader.c libsquashfs_a_SOURCES += include/meta_reader.h lib/sqfs/id_table_write.c libsquashfs_a_SOURCES += lib/sqfs/id_table_read.c lib/sqfs/read_inode.c -libsquashfs_a_SOURCES += lib/sqfs/readdir.c lib/sqfs/xattr_reader.c -libsquashfs_a_SOURCES += lib/sqfs/write_dir.c lib/sqfs/write_inode.c -libsquashfs_a_SOURCES += lib/sqfs/serialize_fstree.c lib/sqfs/xattr.c -libsquashfs_a_SOURCES += lib/sqfs/tree_node_from_inode.c -libsquashfs_a_SOURCES += lib/sqfs/deserialize_fstree.c -libsquashfs_a_SOURCES += lib/sqfs/data_writer.c lib/sqfs/write_xattr.c -libsquashfs_a_SOURCES += include/data_writer.h include/xattr_reader.h -libsquashfs_a_SOURCES += include/data_reader.h lib/sqfs/data_reader.c -libsquashfs_a_SOURCES += lib/sqfs/write_export_table.c -libsquashfs_a_SOURCES += lib/sqfs/read_table.c lib/sqfs/statistics.c -libsquashfs_a_SOURCES += lib/sqfs/sqfs_reader.c +libsquashfs_a_SOURCES += lib/sqfs/readdir.c +libsquashfs_a_SOURCES += lib/sqfs/xattr.c +libsquashfs_a_SOURCES += lib/sqfs/read_table.c libsquashfs_a_SOURCES += lib/sqfs/comp/compressor.c lib/sqfs/comp/internal.h libsquashfs_a_SOURCES += include/block_processor.h include/compress.h libsquashfs_a_SOURCES += lib/sqfs/comp/create_block.c @@ -42,6 +34,19 @@ libsquashfs_a_SOURCES += lib/sqfs/comp/process_block.c libsquashfs_a_CFLAGS = $(AM_CFLAGS) libsquashfs_a_CPPFLAGS = $(AM_CPPFLAGS) +libsqfshelper_a_SOURCES = lib/sqfshelper/deserialize_fstree.c +libsqfshelper_a_SOURCES += lib/sqfshelper/serialize_fstree.c +libsqfshelper_a_SOURCES += lib/sqfshelper/statistics.c +libsqfshelper_a_SOURCES += lib/sqfshelper/tree_node_from_inode.c +libsqfshelper_a_SOURCES += lib/sqfshelper/sqfs_reader.c +libsqfshelper_a_SOURCES += lib/sqfshelper/write_dir.c +libsqfshelper_a_SOURCES += lib/sqfshelper/write_inode.c +libsqfshelper_a_SOURCES += lib/sqfshelper/write_export_table.c +libsqfshelper_a_SOURCES += lib/sqfshelper/xattr_reader.c +libsqfshelper_a_SOURCES += include/data_reader.h lib/sqfshelper/data_reader.c +libsqfshelper_a_SOURCES += include/data_writer.h lib/sqfshelper/data_writer.c +libsqfshelper_a_SOURCES += include/xattr_reader.h lib/sqfshelper/write_xattr.c + libutil_a_SOURCES = lib/util/canonicalize_name.c lib/util/write_data.c libutil_a_SOURCES += lib/util/read_data.c include/util.h libutil_a_SOURCES += lib/util/print_version.c lib/util/mkdir_p.c @@ -104,4 +109,4 @@ libfstree_a_CFLAGS += $(LIBSELINUX_CFLAGS) libfstree_a_CPPFLAGS += -DWITH_SELINUX endif -noinst_LIBRARIES += libfstree.a libutil.a libsquashfs.a libtar.a +noinst_LIBRARIES += libfstree.a libutil.a libsquashfs.a libtar.a libsqfshelper.a -- cgit v1.2.3