Makefile 1.2 KB

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