xref: /linux/lib/zstd/Makefile (revision 7ae9fb1b7ecbb5d85d07857943f677fd1a559b18)
1e0c1b49fSNick Terrell# SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
2e0c1b49fSNick Terrell# ################################################################
3e0c1b49fSNick Terrell# Copyright (c) Facebook, Inc.
4e0c1b49fSNick Terrell# All rights reserved.
5e0c1b49fSNick Terrell#
6e0c1b49fSNick Terrell# This source code is licensed under both the BSD-style license (found in the
7e0c1b49fSNick Terrell# LICENSE file in the root directory of this source tree) and the GPLv2 (found
8e0c1b49fSNick Terrell# in the COPYING file in the root directory of this source tree).
9e0c1b49fSNick Terrell# You may select, at your option, one of the above-listed licenses.
10e0c1b49fSNick Terrell# ################################################################
1173f3d1b4SNick Terrellobj-$(CONFIG_ZSTD_COMPRESS) += zstd_compress.o
1273f3d1b4SNick Terrellobj-$(CONFIG_ZSTD_DECOMPRESS) += zstd_decompress.o
13637a642fSAlexey Kardashevskiyobj-$(CONFIG_ZSTD_COMMON) += zstd_common.o
1473f3d1b4SNick Terrell
15e0c1b49fSNick Terrellzstd_compress-y := \
16e0c1b49fSNick Terrell		zstd_compress_module.o \
17e0c1b49fSNick Terrell		compress/fse_compress.o \
18e0c1b49fSNick Terrell		compress/hist.o \
19e0c1b49fSNick Terrell		compress/huf_compress.o \
20e0c1b49fSNick Terrell		compress/zstd_compress.o \
21e0c1b49fSNick Terrell		compress/zstd_compress_literals.o \
22e0c1b49fSNick Terrell		compress/zstd_compress_sequences.o \
23e0c1b49fSNick Terrell		compress/zstd_compress_superblock.o \
24e0c1b49fSNick Terrell		compress/zstd_double_fast.o \
25e0c1b49fSNick Terrell		compress/zstd_fast.o \
26e0c1b49fSNick Terrell		compress/zstd_lazy.o \
27e0c1b49fSNick Terrell		compress/zstd_ldm.o \
28e0c1b49fSNick Terrell		compress/zstd_opt.o \
29e0c1b49fSNick Terrell
30e0c1b49fSNick Terrellzstd_decompress-y := \
31e0c1b49fSNick Terrell		zstd_decompress_module.o \
32637a642fSAlexey Kardashevskiy		decompress/huf_decompress.o \
33637a642fSAlexey Kardashevskiy		decompress/zstd_ddict.o \
34637a642fSAlexey Kardashevskiy		decompress/zstd_decompress.o \
35637a642fSAlexey Kardashevskiy		decompress/zstd_decompress_block.o \
36637a642fSAlexey Kardashevskiy
37637a642fSAlexey Kardashevskiyzstd_common-y := \
38*4782c725SNick Terrell		zstd_common_module.o \
39e0c1b49fSNick Terrell		common/debug.o \
40e0c1b49fSNick Terrell		common/entropy_common.o \
41e0c1b49fSNick Terrell		common/error_private.o \
42e0c1b49fSNick Terrell		common/fse_decompress.o \
43e0c1b49fSNick Terrell		common/zstd_common.o \
44