xref: /openbmc/linux/lib/zstd/Makefile (revision 240e6d25)
1# SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
2# ################################################################
3# Copyright (c) Facebook, Inc.
4# All rights reserved.
5#
6# This source code is licensed under both the BSD-style license (found in the
7# LICENSE file in the root directory of this source tree) and the GPLv2 (found
8# in the COPYING file in the root directory of this source tree).
9# You may select, at your option, one of the above-listed licenses.
10# ################################################################
11obj-$(CONFIG_ZSTD_COMPRESS) += zstd_compress.o
12obj-$(CONFIG_ZSTD_DECOMPRESS) += zstd_decompress.o
13
14ccflags-y += -O3
15
16zstd_compress-y := \
17		zstd_compress_module.o \
18		common/debug.o \
19		common/entropy_common.o \
20		common/error_private.o \
21		common/fse_decompress.o \
22		common/zstd_common.o \
23		compress/fse_compress.o \
24		compress/hist.o \
25		compress/huf_compress.o \
26		compress/zstd_compress.o \
27		compress/zstd_compress_literals.o \
28		compress/zstd_compress_sequences.o \
29		compress/zstd_compress_superblock.o \
30		compress/zstd_double_fast.o \
31		compress/zstd_fast.o \
32		compress/zstd_lazy.o \
33		compress/zstd_ldm.o \
34		compress/zstd_opt.o \
35
36zstd_decompress-y := \
37		zstd_decompress_module.o \
38		common/debug.o \
39		common/entropy_common.o \
40		common/error_private.o \
41		common/fse_decompress.o \
42		common/zstd_common.o \
43		decompress/huf_decompress.o \
44		decompress/zstd_ddict.o \
45		decompress/zstd_decompress.o \
46		decompress/zstd_decompress_block.o \
47