Lines Matching full:zstd
10 # zstd : Command Line Utility, supporting gzip-like arguments
11 # zstd32 : Same as zstd, but forced to compile in 32-bits mode
12 # zstd-nolegacy : zstd without support of decompression of legacy versions
13 # zstd-small : minimal zstd without dictionary builder and benchmark
14 # zstd-compress : compressor-only version of zstd
15 # zstd-decompress : decompressor-only version of zstd
19 default: zstd-release
78 NO_ZLIB_MSG := ==> no zlib, building zstd without .gz support
81 ZLIB_MSG := ==> building zstd with .gz compression support
89 NO_LZMA_MSG := ==> no liblzma, building zstd without .xz/.lzma support
92 LZMA_MSG := ==> building zstd with .xz/.lzma compression support
100 NO_LZ4_MSG := ==> no liblz4, building zstd without .lz4 support
103 LZ4_MSG := ==> building zstd with .lz4 compression support
132 all: zstd
135 allVariants: zstd zstd-compress zstd-decompress zstd-small zstd-frugal zstd-nolegacy zstd-dictBuild…
137 .PHONY: zstd # must always be run
138 zstd : CPPFLAGS += $(THREAD_CPP) $(ZLIBCPP) $(LZMACPP) $(LZ4CPP) target
139 zstd : LDFLAGS += $(THREAD_LD) $(DEBUGFLAGS_LD) target
140 zstd : LDLIBS += $(ZLIBLD) $(LZMALD) $(LZ4LD) target
141 zstd : CPPFLAGS += -DZSTD_LEGACY_SUPPORT=$(ZSTD_LEGACY_SUPPORT) target
143 zstd : $(RES_FILE) target
149 zstd: target
156 $(BUILD_DIR)/zstd : $(ZSTD_OBJ)
165 SRCBIN_HASH = $(shell cat $(BUILD_DIR)/zstd$(EXT) 2> $(VOID) | $(HASH) | cut -f 1 -d " ")
166 DSTBIN_HASH = $(shell cat zstd$(EXT) 2> $(VOID) | $(HASH) | cut -f 1 -d " ")
172 zstd : $(BUILD_DIR)/zstd target
175 echo zstd build completed; \
177 echo zstd already built; \
183 .PHONY: zstd-release
184 zstd-release: DEBUGFLAGS := -DBACKTRACE_ENABLE=0
185 zstd-release: DEBUGFLAGS_LD :=
186 zstd-release: zstd
197 ## zstd-nolegacy: same scope as zstd, with just support of legacy formats removed
198 zstd-nolegacy : LDFLAGS += $(THREAD_LD) $(ZLIBLD) $(LZMALD) $(LZ4LD) $(DEBUGFLAGS_LD)
199 zstd-nolegacy : CPPFLAGS += -UZSTD_LEGACY_SUPPORT -DZSTD_LEGACY_SUPPORT=0
200 zstd-nolegacy : $(ZSTDLIB_CORE_SRC) $(ZDICT_SRC) $(ZSTD_CLI_OBJ)
203 .PHONY: zstd-nomt
204 zstd-nomt : THREAD_CPP :=
205 zstd-nomt : THREAD_LD :=
206 zstd-nomt : THREAD_MSG := - multi-threading disabled
207 zstd-nomt : zstd
209 .PHONY: zstd-nogz
210 zstd-nogz : ZLIBCPP :=
211 zstd-nogz : ZLIBLD :=
212 zstd-nogz : ZLIB_MSG := - gzip support is disabled
213 zstd-nogz : zstd
215 .PHONY: zstd-noxz
216 zstd-noxz : LZMACPP :=
217 zstd-noxz : LZMALD :=
218 zstd-noxz : LZMA_MSG := - xz/lzma support is disabled
219 zstd-noxz : zstd
221 ## zstd-dll: zstd executable linked to dynamic library libzstd (must have same version)
222 .PHONY: zstd-dll
223 zstd-dll : LDFLAGS+= -L$(LIBZSTD)
224 zstd-dll : LDLIBS += -lzstd
225 zstd-dll : ZSTDLIB_LOCAL_SRC = xxhash.c
226 zstd-dll : zstd
229 ## zstd-pgo: zstd executable optimized with PGO.
230 .PHONY: zstd-pgo
231 zstd-pgo :
233 $(MAKE) zstd MOREFLAGS=-fprofile-generate
234 ./zstd -b19i1 $(PROFILE_WITH)
235 ./zstd -b16i1 $(PROFILE_WITH)
236 ./zstd -b9i2 $(PROFILE_WITH)
237 ./zstd -b $(PROFILE_WITH)
238 ./zstd -b7i2 $(PROFILE_WITH)
239 ./zstd -b5 $(PROFILE_WITH)
240 $(RM) zstd *.o
242 $(MAKE) zstd MOREFLAGS=-fprofile-use
244 ## zstd-small: minimal target, supporting only zstd compression and decompression. no bench. no leg…
245 zstd-small: CFLAGS = -Os -s
246 zstd-frugal zstd-small: $(ZSTDLIB_CORE_SRC) zstdcli.c util.c timefn.c fileio.c
249 zstd-decompress: $(ZSTDLIB_COMMON_SRC) $(ZSTDLIB_DECOMPRESS_SRC) zstdcli.c util.c timefn.c fileio.c
252 zstd-compress: $(ZSTDLIB_COMMON_SRC) $(ZSTDLIB_COMPRESS_SRC) zstdcli.c util.c timefn.c fileio.c
255 ## zstd-dictBuilder: executable supporting dictionary creation and compression (only)
256 zstd-dictBuilder: $(ZSTDLIB_COMMON_SRC) $(ZSTDLIB_COMPRESS_SRC) $(ZDICT_SRC) zstdcli.c util.c timef…
259 zstdmt: zstd
260 ln -sf zstd zstdmt
268 $(RES64_FILE): windres/zstd.rc
270 $(RES32_FILE): windres/zstd.rc
277 zstd$(EXT) zstd32$(EXT) zstd-dll$(EXT) \
278 zstd-compress$(EXT) zstd-decompress$(EXT) \
279 zstd-small$(EXT) zstd-frugal$(EXT) zstd-nolegacy$(EXT) zstd4$(EXT) \
280 zstd-dictBuilder$(EXT) \
286 MD2ROFF_FLAGS = --roff --warnings --manual="User Commands" --organization="zstd $(ZSTD_VERSION)"
288 zstd.1: zstd.1.md ../lib/zstd.h
291 zstdgrep.1: zstdgrep.1.md ../lib/zstd.h
294 zstdless.1: zstdless.1.md ../lib/zstd.h
298 man: zstd.1 zstdgrep.1 zstdless.1
302 $(RM) zstd.1
308 man ./zstd.1
401 # generate zstd only if not already present
402 [ -e zstd ] || $(MAKE) zstd-release
406 $(INSTALL_PROGRAM) zstd$(EXT) $(DESTDIR)$(BINDIR)/zstd$(EXT)
407 ln -sf zstd$(EXT) $(DESTDIR)$(BINDIR)/zstdcat$(EXT)
408 ln -sf zstd$(EXT) $(DESTDIR)$(BINDIR)/unzstd$(EXT)
409 ln -sf zstd$(EXT) $(DESTDIR)$(BINDIR)/zstdmt$(EXT)
413 $(INSTALL_MAN) zstd.1 $(DESTDIR)$(MAN1DIR)/zstd.1
414 ln -sf zstd.1 $(DESTDIR)$(MAN1DIR)/zstdcat.1
415 ln -sf zstd.1 $(DESTDIR)$(MAN1DIR)/unzstd.1
418 @echo zstd installation completed
427 $(RM) $(DESTDIR)$(BINDIR)/zstd
432 $(RM) $(DESTDIR)$(MAN1DIR)/zstd.1
433 @echo zstd programs successfully uninstalled