xref: /aosp_15_r20/external/erofs-utils/lib/Makefile.am (revision 33b1fccf6a0fada2c2875d400ed01119b7676ee5)
1# SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0
2
3noinst_LTLIBRARIES = liberofs.la
4noinst_HEADERS = $(top_srcdir)/include/erofs_fs.h \
5      $(top_srcdir)/include/erofs/blobchunk.h \
6      $(top_srcdir)/include/erofs/block_list.h \
7      $(top_srcdir)/include/erofs/cache.h \
8      $(top_srcdir)/include/erofs/compress.h \
9      $(top_srcdir)/include/erofs/config.h \
10      $(top_srcdir)/include/erofs/decompress.h \
11      $(top_srcdir)/include/erofs/defs.h \
12      $(top_srcdir)/include/erofs/diskbuf.h \
13      $(top_srcdir)/include/erofs/err.h \
14      $(top_srcdir)/include/erofs/exclude.h \
15      $(top_srcdir)/include/erofs/flex-array.h \
16      $(top_srcdir)/include/erofs/hashmap.h \
17      $(top_srcdir)/include/erofs/hashtable.h \
18      $(top_srcdir)/include/erofs/inode.h \
19      $(top_srcdir)/include/erofs/internal.h \
20      $(top_srcdir)/include/erofs/io.h \
21      $(top_srcdir)/include/erofs/list.h \
22      $(top_srcdir)/include/erofs/print.h \
23      $(top_srcdir)/include/erofs/tar.h \
24      $(top_srcdir)/include/erofs/trace.h \
25      $(top_srcdir)/include/erofs/xattr.h \
26      $(top_srcdir)/include/erofs/compress_hints.h \
27      $(top_srcdir)/include/erofs/fragments.h \
28      $(top_srcdir)/include/erofs/rebuild.h \
29      $(top_srcdir)/lib/liberofs_private.h \
30      $(top_srcdir)/lib/xxhash.h
31
32noinst_HEADERS += compressor.h
33liberofs_la_SOURCES = config.c io.c cache.c super.c inode.c xattr.c exclude.c \
34		      namei.c data.c compress.c compressor.c zmap.c decompress.c \
35		      compress_hints.c hashmap.c sha256.c blobchunk.c dir.c \
36		      fragments.c dedupe.c uuid_unparse.c uuid.c tar.c \
37		      block_list.c xxhash.c rebuild.c diskbuf.c
38
39liberofs_la_CFLAGS = -Wall ${libuuid_CFLAGS} -I$(top_srcdir)/include
40if ENABLE_LZ4
41liberofs_la_CFLAGS += ${LZ4_CFLAGS}
42liberofs_la_SOURCES += compressor_lz4.c
43if ENABLE_LZ4HC
44liberofs_la_SOURCES += compressor_lz4hc.c
45endif
46endif
47if ENABLE_LIBLZMA
48liberofs_la_CFLAGS += ${liblzma_CFLAGS}
49liberofs_la_SOURCES += compressor_liblzma.c
50endif
51
52liberofs_la_SOURCES += kite_deflate.c compressor_deflate.c
53if ENABLE_LIBDEFLATE
54liberofs_la_SOURCES += compressor_libdeflate.c
55endif
56if ENABLE_LIBZSTD
57liberofs_la_SOURCES += compressor_libzstd.c
58endif
59if ENABLE_EROFS_MT
60liberofs_la_LDFLAGS = -lpthread
61liberofs_la_SOURCES += workqueue.c
62endif
63