Nick Terrell | 73f3d1b | 2017-08-09 19:35:53 -0700 | [diff] [blame] | 1 | obj-$(CONFIG_ZSTD_COMPRESS) += zstd_compress.o |
| 2 | obj-$(CONFIG_ZSTD_DECOMPRESS) += zstd_decompress.o |
| 3 | |
| 4 | ccflags-y += -O3 |
| 5 | |
| 6 | # Object files unique to zstd_compress and zstd_decompress |
| 7 | zstd_compress-y := fse_compress.o huf_compress.o compress.o |
| 8 | zstd_decompress-y := huf_decompress.o decompress.o |
| 9 | |
| 10 | # These object files are shared between the modules. |
| 11 | # Always add them to zstd_compress. |
| 12 | # Unless both zstd_compress and zstd_decompress are built in |
| 13 | # then also add them to zstd_decompress. |
| 14 | zstd_compress-y += entropy_common.o fse_decompress.o zstd_common.o |
| 15 | |
| 16 | ifneq ($(CONFIG_ZSTD_COMPRESS)$(CONFIG_ZSTD_DECOMPRESS),yy) |
| 17 | zstd_decompress-y += entropy_common.o fse_decompress.o zstd_common.o |
| 18 | endif |