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-y += zstd_decompress.o
12obj-y += zstd_common.o
13
14ifeq ($(CONFIG_ZSTD_LIB_MINIFY),y)
15ccflags-y += -DHUF_FORCE_DECOMPRESS_X1
16ccflags-y += -DZSTD_FORCE_DECOMPRESS_SEQUENCES_SHORT
17ccflags-y += -DZSTD_NO_INLINE
18ccflags-y += -DZSTD_STRIP_ERROR_STRINGS
19ccflags-y += -DDYNAMIC_BMI2=0
20endif
21
22zstd_decompress-y := \
23		zstd_decompress_module.o \
24		decompress/huf_decompress.o \
25		decompress/zstd_ddict.o \
26		decompress/zstd_decompress.o \
27		decompress/zstd_decompress_block.o \
28		zstd.o \
29
30zstd_common-y := \
31		zstd_common_module.o \
32		common/debug.o \
33		common/entropy_common.o \
34		common/error_private.o \
35		common/fse_decompress.o \
36		common/zstd_common.o \
37