summaryrefslogtreecommitdiff
path: root/lib/sqfs
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-11 19:46:58 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-11 19:46:58 +0200
commit8e9e170b8f4b15fcf3522cdc1a5fd76e51c16dd3 (patch)
tree099796d6c64f54d790d2db83ba6c49dc955d5e17 /lib/sqfs
parentcd662fccc563e18762e2e6a16d040e0474b6e5f9 (diff)
Cleanup Automake file for libraries
Split the signel file up into several small ones and use a variable for the public headers instead of duplicating them. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs')
-rw-r--r--lib/sqfs/Makemodule.am58
1 files changed, 58 insertions, 0 deletions
diff --git a/lib/sqfs/Makemodule.am b/lib/sqfs/Makemodule.am
new file mode 100644
index 0000000..5a07806
--- /dev/null
+++ b/lib/sqfs/Makemodule.am
@@ -0,0 +1,58 @@
+LIBSQFS_HEARDS = include/sqfs/data.h include/sqfs/meta_writer.h \
+ include/sqfs/meta_reader.h include/sqfs/id_table.h \
+ include/sqfs/compress.h include/sqfs/block_processor.h \
+ include/sqfs/super.h include/sqfs/inode.h \
+ include/sqfs/dir.h include/sqfs/xattr.h \
+ include/sqfs/table.h include/sqfs/predef.h \
+ include/sqfs/error.h include/sqfs/io.h
+
+libsquashfs_la_SOURCES = $(LIBSQFS_HEARDS) lib/sqfs/id_table.c lib/sqfs/super.c
+libsquashfs_la_SOURCES += lib/sqfs/readdir.c lib/sqfs/io.c lib/sqfs/xattr.c
+libsquashfs_la_SOURCES += lib/sqfs/write_table.c lib/sqfs/meta_writer.c
+libsquashfs_la_SOURCES += lib/sqfs/read_super.c lib/sqfs/meta_reader.c
+libsquashfs_la_SOURCES += lib/sqfs/read_inode.c lib/sqfs/write_inode.c
+libsquashfs_la_SOURCES += lib/sqfs/dir_writer.c lib/sqfs/xattr_reader.c
+libsquashfs_la_SOURCES += lib/sqfs/read_table.c lib/sqfs/comp/compressor.c
+libsquashfs_la_SOURCES += lib/sqfs/process_block.c lib/sqfs/comp/internal.h
+libsquashfs_la_CPPFLAGS = $(AM_CPPFLAGS)
+libsquashfs_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) $(ZLIB_CFLAGS)
+libsquashfs_la_CFLAGS += $(XZ_CFLAGS) $(LZO_CFLAGS) $(LZ4_CFLAGS)
+libsquashfs_la_CFLAGS += $(ZSTD_CFLAGS) $(PTHREAD_CFLAGS)
+libsquashfs_la_LIBADD = $(XZ_LIBS) $(ZLIB_LIBS) $(LZO_LIBS) $(LZ4_LIBS)
+libsquashfs_la_LIBADD += $(ZSTD_LIBS) $(PTHREAD_LIBS) libutil.la
+
+if HAVE_PTHREAD
+libsquashfs_la_SOURCES += lib/sqfs/block_processor_parallel.c
+else
+libsquashfs_la_SOURCES += lib/sqfs/block_processor.c
+endif
+
+if WITH_GZIP
+libsquashfs_la_SOURCES += lib/sqfs/comp/gzip.c
+libsquashfs_la_CPPFLAGS += -DWITH_GZIP
+endif
+
+if WITH_XZ
+libsquashfs_la_SOURCES += lib/sqfs/comp/xz.c
+libsquashfs_la_CPPFLAGS += -DWITH_XZ
+endif
+
+if WITH_LZO
+libsquashfs_la_SOURCES += lib/sqfs/comp/lzo.c
+libsquashfs_la_CPPFLAGS += -DWITH_LZO
+endif
+
+if WITH_LZ4
+libsquashfs_la_SOURCES += lib/sqfs/comp/lz4.c
+libsquashfs_la_CPPFLAGS += -DWITH_LZ4
+endif
+
+if WITH_ZSTD
+libsquashfs_la_SOURCES += lib/sqfs/comp/zstd.c
+libsquashfs_la_CPPFLAGS += -DWITH_ZSTD
+endif
+
+sqfsincludedir = $(includedir)/sqfs
+sqfsinclude_HEADERS = $(LIBSQFS_HEARDS)
+
+lib_LTLIBRARIES += libsquashfs.la