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