git subrepo pull (merge) --force deps/libchdr
[pcsx_rearmed.git] / deps / libchdr / deps / zstd-1.5.5 / programs / Makefile
CommitLineData
648db22b 1# ################################################################
2# Copyright (c) Meta Platforms, Inc. and affiliates.
3# All rights reserved.
4#
5# This source code is licensed under both the BSD-style license (found in the
6# LICENSE file in the root directory of this source tree) and the GPLv2 (found
7# in the COPYING file in the root directory of this source tree).
8# You may select, at your option, one of the above-listed licenses.
9# ##########################################################################
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
16# ##########################################################################
17
18.PHONY: default
19default: zstd-release
20
21LIBZSTD := ../lib
22
23include $(LIBZSTD)/libzstd.mk
24
25ifeq ($(shell $(CC) -v 2>&1 | $(GREP) -c "gcc version "), 1)
26 ALIGN_LOOP = -falign-loops=32
27else
28 ALIGN_LOOP =
29endif
30
31ZSTDLIB_COMMON_SRC := $(sort $(ZSTD_COMMON_FILES))
32ZSTDLIB_COMPRESS_SRC := $(sort $(ZSTD_COMPRESS_FILES))
33ZSTDLIB_DECOMPRESS_SRC := $(sort $(ZSTD_DECOMPRESS_FILES))
34ZSTDLIB_CORE_SRC := $(sort $(ZSTD_DECOMPRESS_FILES) $(ZSTD_COMMON_FILES) $(ZSTD_COMPRESS_FILES))
35ZDICT_SRC := $(sort $(ZSTD_DICTBUILDER_FILES))
36ZSTDLEGACY_SRC := $(sort $(ZSTD_LEGACY_FILES))
37
38# Sort files in alphabetical order for reproducible builds
39ZSTDLIB_FULL_SRC = $(sort $(ZSTDLIB_CORE_SRC) $(ZSTDLEGACY_SRC) $(ZDICT_SRC))
40ZSTDLIB_LOCAL_SRC = $(notdir $(ZSTDLIB_FULL_SRC))
41ZSTDLIB_LOCAL_OBJ0 := $(ZSTDLIB_LOCAL_SRC:.c=.o)
42ZSTDLIB_LOCAL_OBJ := $(ZSTDLIB_LOCAL_OBJ0:.S=.o)
43
44ZSTD_CLI_SRC := $(sort $(wildcard *.c))
45ZSTD_CLI_OBJ := $(ZSTD_CLI_SRC:.c=.o)
46
47ZSTD_ALL_SRC = $(ZSTDLIB_LOCAL_SRC) $(ZSTD_CLI_SRC)
48ZSTD_ALL_OBJ0 := $(ZSTD_ALL_SRC:.c=.o)
49ZSTD_ALL_OBJ := $(ZSTD_ALL_OBJ0:.S=.o)
50
51# Define *.exe as extension for Windows systems
52ifneq (,$(filter Windows%,$(OS)))
53 EXT =.exe
54 RES64_FILE = windres/zstd64.res
55 RES32_FILE = windres/zstd32.res
56ifneq (,$(filter x86_64%,$(shell $(CC) -dumpmachine)))
57 RES_FILE = $(RES64_FILE)
58else
59 RES_FILE = $(RES32_FILE)
60endif
61else
62 EXT =
63endif
64
65# thread detection
66NO_THREAD_MSG := ==> no threads, building without multithreading support
67HAVE_PTHREAD := $(shell printf '$(NUM_SYMBOL)include <pthread.h>\nint main(void) { return 0; }' > have_pthread.c && $(CC) $(FLAGS) -o have_pthread$(EXT) have_pthread.c -pthread 2> $(VOID) && rm have_pthread$(EXT) && echo 1 || echo 0; rm have_pthread.c)
68HAVE_THREAD := $(shell [ "$(HAVE_PTHREAD)" -eq "1" -o -n "$(filter Windows%,$(OS))" ] && echo 1 || echo 0)
69ifeq ($(HAVE_THREAD), 1)
70 THREAD_MSG := ==> building with threading support
71 THREAD_CPP := -DZSTD_MULTITHREAD
72 THREAD_LD := -pthread
73else
74 THREAD_MSG := $(NO_THREAD_MSG)
75endif
76
77# zlib detection
78NO_ZLIB_MSG := ==> no zlib, building zstd without .gz support
79HAVE_ZLIB ?= $(shell printf '$(NUM_SYMBOL)include <zlib.h>\nint main(void) { return 0; }' > have_zlib.c && $(CC) $(FLAGS) -o have_zlib$(EXT) have_zlib.c -lz 2> $(VOID) && rm have_zlib$(EXT) && echo 1 || echo 0; rm have_zlib.c)
80ifeq ($(HAVE_ZLIB), 1)
81 ZLIB_MSG := ==> building zstd with .gz compression support
82 ZLIBCPP = -DZSTD_GZCOMPRESS -DZSTD_GZDECOMPRESS
83 ZLIBLD = -lz
84else
85 ZLIB_MSG := $(NO_ZLIB_MSG)
86endif
87
88# lzma detection
89NO_LZMA_MSG := ==> no liblzma, building zstd without .xz/.lzma support
90HAVE_LZMA ?= $(shell printf '$(NUM_SYMBOL)include <lzma.h>\nint main(void) { return 0; }' > have_lzma.c && $(CC) $(FLAGS) -o have_lzma$(EXT) have_lzma.c -llzma 2> $(VOID) && rm have_lzma$(EXT) && echo 1 || echo 0; rm have_lzma.c)
91ifeq ($(HAVE_LZMA), 1)
92 LZMA_MSG := ==> building zstd with .xz/.lzma compression support
93 LZMACPP = -DZSTD_LZMACOMPRESS -DZSTD_LZMADECOMPRESS
94 LZMALD = -llzma
95else
96 LZMA_MSG := $(NO_LZMA_MSG)
97endif
98
99# lz4 detection
100NO_LZ4_MSG := ==> no liblz4, building zstd without .lz4 support
101HAVE_LZ4 ?= $(shell printf '$(NUM_SYMBOL)include <lz4frame.h>\n$(NUM_SYMBOL)include <lz4.h>\nint main(void) { return 0; }' > have_lz4.c && $(CC) $(FLAGS) -o have_lz4$(EXT) have_lz4.c -llz4 2> $(VOID) && rm have_lz4$(EXT) && echo 1 || echo 0; rm have_lz4.c)
102ifeq ($(HAVE_LZ4), 1)
103 LZ4_MSG := ==> building zstd with .lz4 compression support
104 LZ4CPP = -DZSTD_LZ4COMPRESS -DZSTD_LZ4DECOMPRESS
105 LZ4LD = -llz4
106else
107 LZ4_MSG := $(NO_LZ4_MSG)
108endif
109
110# explicit backtrace enable/disable for Linux & Darwin
111ifeq ($(BACKTRACE), 0)
112 DEBUGFLAGS += -DBACKTRACE_ENABLE=0
113endif
114ifeq (,$(filter Windows%, $(OS)))
115ifeq ($(BACKTRACE), 1)
116 DEBUGFLAGS += -DBACKTRACE_ENABLE=1
117 DEBUGFLAGS_LD += -rdynamic
118endif
119endif
120
121SET_CACHE_DIRECTORY = \
122 +$(MAKE) --no-print-directory $@ \
123 BUILD_DIR=obj/$(HASH_DIR) \
124 CPPFLAGS="$(CPPFLAGS)" \
125 CFLAGS="$(CFLAGS)" \
126 LDFLAGS="$(LDFLAGS)" \
127 LDLIBS="$(LDLIBS)" \
128 ZSTD_ALL_SRC="$(ZSTD_ALL_SRC)"
129
130
131.PHONY: all
132all: zstd zstd-compress zstd-decompress zstd-small
133
134.PHONY: allVariants
135allVariants: all zstd-frugal zstd-nolegacy zstd-dictBuilder
136
137.PHONY: zstd # must always be run
138zstd : CPPFLAGS += $(THREAD_CPP) $(ZLIBCPP) $(LZMACPP) $(LZ4CPP)
139zstd : LDFLAGS += $(THREAD_LD) $(DEBUGFLAGS_LD)
140zstd : LDLIBS += $(ZLIBLD) $(LZMALD) $(LZ4LD)
141zstd : CPPFLAGS += -DZSTD_LEGACY_SUPPORT=$(ZSTD_LEGACY_SUPPORT)
142ifneq (,$(filter Windows%,$(OS)))
143zstd : $(RES_FILE)
144endif
145
146ifndef BUILD_DIR
147# generate BUILD_DIR from flags
148
149zstd:
150 $(SET_CACHE_DIRECTORY)
151
152else
153# BUILD_DIR is defined
154
155ZSTD_OBJ := $(addprefix $(BUILD_DIR)/, $(ZSTD_ALL_OBJ))
156$(BUILD_DIR)/zstd : $(ZSTD_OBJ)
157 @echo "$(THREAD_MSG)"
158 @echo "$(ZLIB_MSG)"
159 @echo "$(LZMA_MSG)"
160 @echo "$(LZ4_MSG)"
161 @echo LINK $@
162 $(CC) $(FLAGS) $^ $(LDLIBS) -o $@$(EXT)
163
164ifeq ($(HAVE_HASH),1)
165SRCBIN_HASH = $(shell cat $(BUILD_DIR)/zstd$(EXT) 2> $(VOID) | $(HASH) | cut -f 1 -d " ")
166DSTBIN_HASH = $(shell cat zstd$(EXT) 2> $(VOID) | $(HASH) | cut -f 1 -d " ")
167BIN_ISDIFFERENT = $(if $(filter $(SRCBIN_HASH),$(DSTBIN_HASH)),0,1)
168else
169BIN_ISDIFFERENT = 1
170endif
171
172zstd : $(BUILD_DIR)/zstd
173 if [ $(BIN_ISDIFFERENT) -eq 1 ]; then \
174 cp -f $<$(EXT) $@$(EXT); \
175 echo zstd build completed; \
176 else \
177 echo zstd already built; \
178 fi
179
180endif # BUILD_DIR
181
182
183CLEAN += zstd
184.PHONY: zstd-release
185zstd-release: DEBUGFLAGS := -DBACKTRACE_ENABLE=0
186zstd-release: DEBUGFLAGS_LD :=
187zstd-release: zstd
188
189CLEAN += zstd32
190zstd32 : CPPFLAGS += $(THREAD_CPP)
191zstd32 : LDFLAGS += $(THREAD_LD)
192zstd32 : CPPFLAGS += -DZSTD_LEGACY_SUPPORT=$(ZSTD_LEGACY_SUPPORT)
193ifneq (,$(filter Windows%,$(OS)))
194zstd32 : $(RES32_FILE)
195endif
196zstd32 : $(ZSTDLIB_FULL_SRC) $(ZSTD_CLI_SRC)
197 $(CC) -m32 $(FLAGS) $^ -o $@$(EXT)
198
199## zstd-nolegacy: same scope as zstd, with removed support of legacy formats
200CLEAN += zstd-nolegacy
201zstd-nolegacy : LDFLAGS += $(THREAD_LD) $(ZLIBLD) $(LZMALD) $(LZ4LD) $(DEBUGFLAGS_LD)
202zstd-nolegacy : CPPFLAGS += -UZSTD_LEGACY_SUPPORT -DZSTD_LEGACY_SUPPORT=0
203zstd-nolegacy : $(ZSTDLIB_CORE_SRC) $(ZDICT_SRC) $(ZSTD_CLI_OBJ)
204 $(CC) $(FLAGS) $^ -o $@$(EXT) $(LDFLAGS)
205
206.PHONY: zstd-nomt
207zstd-nomt : THREAD_CPP :=
208zstd-nomt : THREAD_LD :=
209zstd-nomt : THREAD_MSG := - multi-threading disabled
210zstd-nomt : zstd
211
212.PHONY: zstd-nogz
213zstd-nogz : ZLIBCPP :=
214zstd-nogz : ZLIBLD :=
215zstd-nogz : ZLIB_MSG := - gzip support is disabled
216zstd-nogz : zstd
217
218.PHONY: zstd-noxz
219zstd-noxz : LZMACPP :=
220zstd-noxz : LZMALD :=
221zstd-noxz : LZMA_MSG := - xz/lzma support is disabled
222zstd-noxz : zstd
223
224## zstd-dll: zstd executable linked to dynamic library libzstd (must have same version)
225.PHONY: zstd-dll
226zstd-dll : LDFLAGS+= -L$(LIBZSTD)
227zstd-dll : LDLIBS += -lzstd
228zstd-dll : ZSTDLIB_LOCAL_SRC = xxhash.c pool.c threading.c
229zstd-dll : zstd
230
231
232## zstd-pgo: zstd executable optimized with PGO.
233.PHONY: zstd-pgo
234zstd-pgo : LLVM_PROFDATA?=llvm-profdata
235zstd-pgo : PROF_GENERATE_FLAGS=-fprofile-generate $(if $(findstring gcc,$(CC)),-fprofile-dir=.)
236zstd-pgo : PROF_USE_FLAGS=-fprofile-use $(if $(findstring gcc,$(CC)),-fprofile-dir=. -Werror=missing-profile -Wno-error=coverage-mismatch)
237zstd-pgo :
238 $(MAKE) clean HASH_DIR=$(HASH_DIR)
239 $(MAKE) zstd HASH_DIR=$(HASH_DIR) MOREFLAGS="$(PROF_GENERATE_FLAGS)"
240 ./zstd -b19i1 $(PROFILE_WITH)
241 ./zstd -b16i1 $(PROFILE_WITH)
242 ./zstd -b9i2 $(PROFILE_WITH)
243 ./zstd -b $(PROFILE_WITH)
244 ./zstd -b7i2 $(PROFILE_WITH)
245 ./zstd -b5 $(PROFILE_WITH)
246ifndef BUILD_DIR
247 $(RM) zstd obj/$(HASH_DIR)/zstd obj/$(HASH_DIR)/*.o
248else
249 $(RM) zstd $(BUILD_DIR)/zstd $(BUILD_DIR)/*.o
250endif
251 case $(CC) in *clang*) if ! [ -e default.profdata ]; then $(LLVM_PROFDATA) merge -output=default.profdata default*.profraw; fi ;; esac
252 $(MAKE) zstd HASH_DIR=$(HASH_DIR) MOREFLAGS="$(PROF_USE_FLAGS)"
253
254## zstd-small: minimal target, supporting only zstd compression and decompression. no bench. no legacy. no other format.
255CLEAN += zstd-small zstd-frugal
256zstd-small: CFLAGS = -Os -Wl,-s
257zstd-frugal zstd-small: $(ZSTDLIB_CORE_SRC) zstdcli.c util.c timefn.c fileio.c fileio_asyncio.c
258 $(CC) $(FLAGS) -DZSTD_NOBENCH -DZSTD_NODICT -DZSTD_NOTRACE -UZSTD_LEGACY_SUPPORT -DZSTD_LEGACY_SUPPORT=0 $^ -o $@$(EXT)
259
260CLEAN += zstd-decompress
261zstd-decompress: $(ZSTDLIB_COMMON_SRC) $(ZSTDLIB_DECOMPRESS_SRC) zstdcli.c util.c timefn.c fileio.c fileio_asyncio.c
262 $(CC) $(FLAGS) -DZSTD_NOBENCH -DZSTD_NODICT -DZSTD_NOCOMPRESS -DZSTD_NOTRACE -UZSTD_LEGACY_SUPPORT -DZSTD_LEGACY_SUPPORT=0 $^ -o $@$(EXT)
263
264CLEAN += zstd-compress
265zstd-compress: $(ZSTDLIB_COMMON_SRC) $(ZSTDLIB_COMPRESS_SRC) zstdcli.c util.c timefn.c fileio.c fileio_asyncio.c
266 $(CC) $(FLAGS) -DZSTD_NOBENCH -DZSTD_NODICT -DZSTD_NODECOMPRESS -DZSTD_NOTRACE -UZSTD_LEGACY_SUPPORT -DZSTD_LEGACY_SUPPORT=0 $^ -o $@$(EXT)
267
268## zstd-dictBuilder: executable supporting dictionary creation and compression (only)
269CLEAN += zstd-dictBuilder
270zstd-dictBuilder: $(ZSTDLIB_COMMON_SRC) $(ZSTDLIB_COMPRESS_SRC) $(ZDICT_SRC) zstdcli.c util.c timefn.c fileio.c fileio_asyncio.c dibio.c
271 $(CC) $(FLAGS) -DZSTD_NOBENCH -DZSTD_NODECOMPRESS -DZSTD_NOTRACE $^ -o $@$(EXT)
272
273CLEAN += zstdmt
274zstdmt: zstd
275 ln -sf zstd zstdmt
276
277.PHONY: generate_res
278generate_res: $(RES64_FILE) $(RES32_FILE)
279
280ifneq (,$(filter Windows%,$(OS)))
281RC ?= windres
282# https://stackoverflow.com/questions/708238/how-do-i-add-an-icon-to-a-mingw-gcc-compiled-executable
283$(RES64_FILE): windres/zstd.rc
284 $(RC) -o $@ -I ../lib -I windres -i $< -O coff -F pe-x86-64
285$(RES32_FILE): windres/zstd.rc
286 $(RC) -o $@ -I ../lib -I windres -i $< -O coff -F pe-i386
287endif
288
289.PHONY: clean
290clean:
291 $(RM) $(CLEAN) core *.o tmp* result* dictionary *.zst \
292 *.gcda default*.profraw default.profdata have_zlib
293 $(RM) -r obj/*
294 @echo Cleaning completed
295
296MD2ROFF = ronn
297MD2ROFF_FLAGS = --roff --warnings --manual="User Commands" --organization="zstd $(ZSTD_VERSION)"
298
299zstd.1: zstd.1.md ../lib/zstd.h
300 cat $< | $(MD2ROFF) $(MD2ROFF_FLAGS) | sed -n '/^\.\\\".*/!p' > $@
301
302zstdgrep.1: zstdgrep.1.md ../lib/zstd.h
303 cat $< | $(MD2ROFF) $(MD2ROFF_FLAGS) | sed -n '/^\.\\\".*/!p' > $@
304
305zstdless.1: zstdless.1.md ../lib/zstd.h
306 cat $< | $(MD2ROFF) $(MD2ROFF_FLAGS) | sed -n '/^\.\\\".*/!p' > $@
307
308.PHONY: man
309man: zstd.1 zstdgrep.1 zstdless.1
310
311.PHONY: clean-man
312clean-man:
313 $(RM) zstd.1
314 $(RM) zstdgrep.1
315 $(RM) zstdless.1
316
317.PHONY: preview-man
318preview-man: clean-man man
319 man ./zstd.1
320 man ./zstdgrep.1
321 man ./zstdless.1
322
323
324# Generate .h dependencies automatically
325
326DEPFLAGS = -MT $@ -MMD -MP -MF
327
328$(BUILD_DIR)/%.o : %.c $(BUILD_DIR)/%.d | $(BUILD_DIR)
329 @echo CC $@
330 $(COMPILE.c) $(DEPFLAGS) $(BUILD_DIR)/$*.d $(OUTPUT_OPTION) $<
331
332$(BUILD_DIR)/%.o : %.S | $(BUILD_DIR)
333 @echo AS $@
334 $(COMPILE.S) $(OUTPUT_OPTION) $<
335
336MKDIR ?= mkdir
337$(BUILD_DIR): ; $(MKDIR) -p $@
338
339DEPFILES := $(ZSTD_OBJ:.o=.d)
340$(DEPFILES):
341
342include $(wildcard $(DEPFILES))
343
344
345
346#-----------------------------------------------------------------------------
347# make install is validated only for Linux, macOS, BSD, Hurd and Solaris targets
348#-----------------------------------------------------------------------------
349ifneq (,$(filter $(UNAME),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS Haiku AIX))
350
351HAVE_COLORNEVER = $(shell echo a | egrep --color=never a > /dev/null 2> /dev/null && echo 1 || echo 0)
352EGREP_OPTIONS ?=
353ifeq ($(HAVE_COLORNEVER), 1)
354 EGREP_OPTIONS += --color=never
355endif
356EGREP = egrep $(EGREP_OPTIONS)
357AWK = awk
358
359# Print a two column output of targets and their description. To add a target description, put a
360# comment in the Makefile with the format "## <TARGET>: <DESCRIPTION>". For example:
361#
362## list: Print all targets and their descriptions (if provided)
363.PHONY: list
364list:
365 TARGETS=$$($(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null \
366 | $(AWK) -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' \
367 | $(EGREP) -v -e '^[^[:alnum:]]' | sort); \
368 { \
369 printf "Target Name\tDescription\n"; \
370 printf "%0.s-" {1..16}; printf "\t"; printf "%0.s-" {1..40}; printf "\n"; \
371 for target in $$TARGETS; do \
372 line=$$($(EGREP) "^##[[:space:]]+$$target:" $(lastword $(MAKEFILE_LIST))); \
373 description=$$(echo $$line | $(AWK) '{i=index($$0,":"); print substr($$0,i+1)}' | xargs); \
374 printf "$$target\t$$description\n"; \
375 done \
376 } | column -t -s $$'\t'
377
378
379DESTDIR ?=
380# directory variables : GNU conventions prefer lowercase
381# see https://www.gnu.org/prep/standards/html_node/Makefile-Conventions.html
382# support both lower and uppercase (BSD), use uppercase in script
383prefix ?= /usr/local
384PREFIX ?= $(prefix)
385exec_prefix ?= $(PREFIX)
386bindir ?= $(exec_prefix)/bin
387BINDIR ?= $(bindir)
388datarootdir ?= $(PREFIX)/share
389mandir ?= $(datarootdir)/man
390man1dir ?= $(mandir)/man1
391
392ifneq (,$(filter $(UNAME),OpenBSD FreeBSD NetBSD DragonFly SunOS))
393 MANDIR ?= $(PREFIX)/man
394 MAN1DIR ?= $(MANDIR)/man1
395else
396 MAN1DIR ?= $(man1dir)
397endif
398
399ifneq (,$(filter $(UNAME),SunOS))
400 INSTALL ?= ginstall
401else
402 INSTALL ?= install
403endif
404
405INSTALL_PROGRAM ?= $(INSTALL)
406INSTALL_SCRIPT ?= $(INSTALL_PROGRAM)
407INSTALL_DATA ?= $(INSTALL) -m 644
408INSTALL_MAN ?= $(INSTALL_DATA)
409
410.PHONY: install
411install:
412 # generate zstd only if not already present
413 [ -e zstd ] || $(MAKE) zstd-release
414 [ -e $(DESTDIR)$(BINDIR) ] || $(INSTALL) -d -m 755 $(DESTDIR)$(BINDIR)/
415 [ -e $(DESTDIR)$(MAN1DIR) ] || $(INSTALL) -d -m 755 $(DESTDIR)$(MAN1DIR)/
416 @echo Installing binaries
417 $(INSTALL_PROGRAM) zstd$(EXT) $(DESTDIR)$(BINDIR)/zstd$(EXT)
418 ln -sf zstd$(EXT) $(DESTDIR)$(BINDIR)/zstdcat$(EXT)
419 ln -sf zstd$(EXT) $(DESTDIR)$(BINDIR)/unzstd$(EXT)
420 ln -sf zstd$(EXT) $(DESTDIR)$(BINDIR)/zstdmt$(EXT)
421 $(INSTALL_SCRIPT) zstdless $(DESTDIR)$(BINDIR)/zstdless
422 $(INSTALL_SCRIPT) zstdgrep $(DESTDIR)$(BINDIR)/zstdgrep
423 @echo Installing man pages
424 $(INSTALL_MAN) zstd.1 $(DESTDIR)$(MAN1DIR)/zstd.1
425 ln -sf zstd.1 $(DESTDIR)$(MAN1DIR)/zstdcat.1
426 ln -sf zstd.1 $(DESTDIR)$(MAN1DIR)/unzstd.1
427 $(INSTALL_MAN) zstdgrep.1 $(DESTDIR)$(MAN1DIR)/zstdgrep.1
428 $(INSTALL_MAN) zstdless.1 $(DESTDIR)$(MAN1DIR)/zstdless.1
429 @echo zstd installation completed
430
431.PHONY: uninstall
432uninstall:
433 $(RM) $(DESTDIR)$(BINDIR)/zstdgrep
434 $(RM) $(DESTDIR)$(BINDIR)/zstdless
435 $(RM) $(DESTDIR)$(BINDIR)/zstdcat
436 $(RM) $(DESTDIR)$(BINDIR)/unzstd
437 $(RM) $(DESTDIR)$(BINDIR)/zstdmt
438 $(RM) $(DESTDIR)$(BINDIR)/zstd
439 $(RM) $(DESTDIR)$(MAN1DIR)/zstdless.1
440 $(RM) $(DESTDIR)$(MAN1DIR)/zstdgrep.1
441 $(RM) $(DESTDIR)$(MAN1DIR)/zstdcat.1
442 $(RM) $(DESTDIR)$(MAN1DIR)/unzstd.1
443 $(RM) $(DESTDIR)$(MAN1DIR)/zstd.1
444 @echo zstd programs successfully uninstalled
445
446endif