Lines Matching +full:- +full:yq

2 # Copyright (c) 2015-2021, Yann Collet, Facebook, Inc.
5 # This source code is licensed under both the BSD-style license (found in the
8 # You may select, at your option, one of the above-listed licenses.
24 # When cross-compiling from linux to windows, you might
28 # Note: mingw-w64 build from linux to windows does not
40 ## default: Build lib-release and zstd-release
42 default: lib-release zstd-release
53 $(Q)$(MAKE) -C $(PRGDIR) all
54 $(Q)$(MAKE) -C $(TESTDIR) all
58 $(MAKE) -C $(PRGDIR) zstd32
59 $(MAKE) -C $(TESTDIR) all32
61 .PHONY: lib lib-release lib-mt lib-nomt
62 lib lib-release lib-mt lib-nomt:
63 $(Q)$(MAKE) -C $(ZSTDDIR) $@
65 .PHONY: zstd zstd-release
66 zstd zstd-release:
67 $(Q)$(MAKE) -C $(PRGDIR) $@
68 $(Q)ln -sf $(PRGDIR)/zstd$(EXT) zstd$(EXT)
72 $(Q)$(MAKE) -C $(PRGDIR) $@
77 $(MAKE) -C $(ZWRAPDIR) all
79 ## test: run long-duration tests
82 test: MOREFLAGS += -g -Werror
84 DEBUGLEVEL=$(DEBUGLEVEL) MOREFLAGS="$(MOREFLAGS)" $(MAKE) -j -C $(PRGDIR) allVariants
85 $(MAKE) -C $(TESTDIR) $@
86 ZSTD=../../programs/zstd $(MAKE) -C doc/educational_decoder $@
91 $(Q)$(MAKE) -C $(TESTDIR) $@
99 $(MAKE) -C $(TESTDIR) $@
107 $(MAKE) -C examples all
112 $(MAKE) -C contrib/gen_html $@
117 $(MAKE) -C programs $@
122 $(MAKE) -C contrib/pzstd all
123 $(MAKE) -C contrib/seekable_format/examples all
124 $(MAKE) -C contrib/seekable_format/tests test
125 $(MAKE) -C contrib/largeNbDicts all
135 $(Q)$(MAKE) -C $(ZSTDDIR) $@ > $(VOID)
136 $(Q)$(MAKE) -C $(PRGDIR) $@ > $(VOID)
137 $(Q)$(MAKE) -C $(TESTDIR) $@ > $(VOID)
138 $(Q)$(MAKE) -C $(ZWRAPDIR) $@ > $(VOID)
139 $(Q)$(MAKE) -C examples/ $@ > $(VOID)
140 $(Q)$(MAKE) -C contrib/gen_html $@ > $(VOID)
141 $(Q)$(MAKE) -C contrib/pzstd $@ > $(VOID)
142 $(Q)$(MAKE) -C contrib/seekable_format/examples $@ > $(VOID)
143 $(Q)$(MAKE) -C contrib/seekable_format/tests $@ > $(VOID)
144 $(Q)$(MAKE) -C contrib/largeNbDicts $@ > $(VOID)
146 $(Q)$(RM) -r lz4
149 #------------------------------------------------------------------------------
151 #------------------------------------------------------------------------------
156 MKDIR ?= mkdir -p
158 HAVE_COLORNEVER = $(shell echo a | egrep --color=never a > /dev/null 2> /dev/null && echo 1 || echo…
161 EGREP_OPTIONS += --color=never
171 $(Q)TARGETS=$$($(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null \
172 | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' \
173 | $(EGREP) -v -e '^[^[:alnum:]]' | sort); \
176 printf "%0.s-" {1..16}; printf "\t"; printf "%0.s-" {1..40}; printf "\n"; \
182 } | column -t -s $$'\t'
186 $(Q)$(MAKE) -C $(ZSTDDIR) $@
187 $(Q)$(MAKE) -C $(PRGDIR) $@
191 $(Q)$(MAKE) -C $(ZSTDDIR) $@
192 $(Q)$(MAKE) -C $(PRGDIR) $@
194 .PHONY: travis-install
195 travis-install:
200 gcc-5 -v
201 CC=gcc-5 $(MAKE) all MOREFLAGS="-Werror"
204 gcc-6 -v
205 CC=gcc-6 $(MAKE) all MOREFLAGS="-Werror"
208 gcc-7 -v
209 CC=gcc-7 $(MAKE) all MOREFLAGS="-Werror"
212 clang -v
213 CXX=clang++ CC=clang CFLAGS="-Werror -Wconversion -Wno-sign-conversion -Wdocumentation" $(MAKE) all
216 gcc -v
220 CC=arm-linux-gnueabi-gcc CFLAGS="-Werror" $(MAKE) allzstd
223 CC=aarch64-linux-gnu-gcc CFLAGS="-Werror -O0" $(MAKE) allzstd
226 CC=powerpc-linux-gnu-gcc CFLAGS="-m32 -Wno-attributes -Werror" $(MAKE) -j allzstd
229 CC=powerpc-linux-gnu-gcc CFLAGS="-m64 -Werror" $(MAKE) -j allzstd
233 …CC=arm-linux-gnueabi-gcc QEMU_SYS=qemu-arm-static MOREFLAGS="-static" FUZZER_FLAGS=--no-big-tests …
236 ld -v
237 …CC=aarch64-linux-gnu-gcc QEMU_SYS=qemu-aarch64-static MOREFLAGS="-static" FUZZER_FLAGS=--no-big-te…
240 …CC=powerpc-linux-gnu-gcc QEMU_SYS=qemu-ppc-static MOREFLAGS="-static" FUZZER_FLAGS=--no-big-tests …
243 …CC=powerpc-linux-gnu-gcc QEMU_SYS=qemu-ppc64-static MOREFLAGS="-m64 -static" FUZZER_FLAGS=--no-big
246 cxxtest: CXXFLAGS += -Wall -Wextra -Wundef -Wshadow -Wcast-align -Werror
248 …$(MAKE) -C $(PRGDIR) all CC="$(CXX) -Wno-deprecated" CFLAGS="$(CXXFLAGS)" # adding -Wno-deprecat…
251 gcc-5 -v
252 $(MAKE) all CC=gcc-5 MOREFLAGS="-Werror"
255 gcc-6 -v
256 $(MAKE) all CC=gcc-6 MOREFLAGS="-Werror"
259 $(MAKE) -C $(TESTDIR) datagen # use native, faster
260 …$(MAKE) -C $(TESTDIR) test CC=arm-linux-gnueabi-gcc QEMU_SYS=qemu-arm-static ZSTDRTTEST= MOREFLAGS…
263 $(MAKE) -C $(TESTDIR) datagen # use native, faster
264 …$(MAKE) -C $(TESTDIR) test CC=aarch64-linux-gnu-gcc QEMU_SYS=qemu-aarch64-static ZSTDRTTEST= MOREF…
267 $(MAKE) -C $(TESTDIR) datagen # use native, faster
268 …E) -C $(TESTDIR) test CC=powerpc-linux-gnu-gcc QEMU_SYS=qemu-ppc-static ZSTDRTTEST= MOREFLAGS="-We…
271 $(MAKE) -C $(TESTDIR) datagen # use native, faster
272 …$(MAKE) -C $(TESTDIR) test CC=powerpc-linux-gnu-gcc QEMU_SYS=qemu-ppc64-static ZSTDRTTEST= MOREFLA…
274 .PHONY: arm-ppc-compilation
275 arm-ppc-compilation:
276 …$(MAKE) -C $(PRGDIR) clean zstd CC=arm-linux-gnueabi-gcc QEMU_SYS=qemu-arm-static ZSTDRTTEST= MORE…
277 …$(MAKE) -C $(PRGDIR) clean zstd CC=aarch64-linux-gnu-gcc QEMU_SYS=qemu-aarch64-static ZSTDRTTEST= …
278 …$(MAKE) -C $(PRGDIR) clean zstd CC=powerpc-linux-gnu-gcc QEMU_SYS=qemu-ppc-static ZSTDRTTEST= MORE…
279 …$(MAKE) -C $(PRGDIR) clean zstd CC=powerpc-linux-gnu-gcc QEMU_SYS=qemu-ppc64-static ZSTDRTTEST= MO…
282 $(MAKE) -C $(FUZZDIR) regressiontest
285 …$(MAKE) -C $(FUZZDIR) regressiontest CC=clang CXX=clang++ CFLAGS="-O3 -fsanitize=address,undefined…
288 …$(MAKE) -C $(FUZZDIR) regressiontest CC=clang CXX=clang++ CFLAGS="-O3 -fsanitize=memory" CXXFLAGS=…
292 $(MAKE) -C programs zstd
293 $(MAKE) -C tests/regression test
294 $(RM) -rf $(REGRESS_RESULTS_DIR)
297 --cache tests/regression/cache \
298 --output $(REGRESS_RESULTS_DIR)/results.csv \
299 --zstd programs/zstd
306 # run UBsan with -fsanitize-recover=pointer-overflow
309 …$(MAKE) test CC=clang MOREFLAGS="-g -fno-sanitize-recover=all -fsanitize-recover=pointer-overflow
312 $(MAKE) test CC=clang MOREFLAGS="-g -fsanitize=address -Werror"
314 asan-%: clean
315 …LDFLAGS=-fuse-ld=gold MOREFLAGS="-g -fno-sanitize-recover=all -fsanitize=address -Werror" $(MAKE)
318 …$(MAKE) test CC=clang MOREFLAGS="-g -fsanitize=memory -fno-omit-frame-pointer -Werror" HAVE_LZMA=0…
320 msan-%: clean
321 …LAGS=-fuse-ld=gold MOREFLAGS="-g -fno-sanitize-recover=all -fsanitize=memory -fno-omit-frame-point…
324 $(MAKE) -C $(TESTDIR) test32 CC=clang MOREFLAGS="-g -fsanitize=address"
327 …KE) test CC=clang MOREFLAGS="-g -fno-sanitize-recover=all -fsanitize-recover=pointer-overflow -fsa…
329 uasan-%: clean
330 …LDFLAGS=-fuse-ld=gold MOREFLAGS="-g -fno-sanitize-recover=all -fsanitize-recover=pointer-overflow
332 tsan-%: clean
333 …LDFLAGS=-fuse-ld=gold MOREFLAGS="-g -fno-sanitize-recover=all -fsanitize=thread -Werror" $(MAKE) -
335 .PHONY: apt-install
336 apt-install:
337 sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install $(APT_PACKAGES)
339 .PHONY: apt-add-repo
340 apt-add-repo:
341 sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
342 sudo apt-get update -y -qq
346 APT_PACKAGES="qemu-system-ppc qemu-user-static gcc-powerpc-linux-gnu" $(MAKE) apt-install
349 …KAGES="qemu-system-arm qemu-user-static gcc-arm-linux-gnueabi libc6-dev-armel-cross gcc-aarch64-li…
352 APT_PACKAGES="valgrind" $(MAKE) apt-install
355 APT_PACKAGES="libc6-dev-i386 gcc-multilib" $(MAKE) apt-install
357 gcc6install: apt-add-repo
358 APT_PACKAGES="libc6-dev-i386 gcc-multilib gcc-6 gcc-6-multilib" $(MAKE) apt-install
360 gcc7install: apt-add-repo
361 APT_PACKAGES="libc6-dev-i386 gcc-multilib gcc-7 gcc-7-multilib" $(MAKE) apt-install
363 gcc8install: apt-add-repo
364 APT_PACKAGES="libc6-dev-i386 gcc-multilib gcc-8 gcc-8-multilib" $(MAKE) apt-install
366 gpp6install: apt-add-repo
367 APT_PACKAGES="libc6-dev-i386 g++-multilib gcc-6 g++-6 g++-6-multilib" $(MAKE) apt-install
370 APT_PACKAGES="clang-3.8" $(MAKE) apt-install
372 # Ubuntu 14.04 ships a too-old lz4
374 [ -e lz4 ] || git clone https://github.com/lz4/lz4 && sudo $(MAKE) -C lz4 install
379 …AMS = -DZSTD_BUILD_CONTRIB:BOOL=ON -DZSTD_BUILD_STATIC:BOOL=ON -DZSTD_BUILD_TESTS:BOOL=ON -DZSTD_Z…
383 CMAKE_PARAMS = -G"MSYS Makefiles" -DCMAKE_BUILD_TYPE=Debug -DZSTD_MULTITHREAD_SUPPORT:BOOL=OFF -DZS…
386 #------------------------------------------------------------------------
388 #------------------------------------------------------------------------
392 cmake --version
393 $(RM) -r $(BUILDIR)/cmake/build
395 cd $(BUILDIR)/cmake/build; cmake -DCMAKE_INSTALL_PREFIX:PATH=~/install_test_dir $(CMAKE_PARAMS) ..
396 $(MAKE) -C $(BUILDIR)/cmake/build -j4;
397 $(MAKE) -C $(BUILDIR)/cmake/build install;
398 $(MAKE) -C $(BUILDIR)/cmake/build uninstall;
399 cd $(BUILDIR)/cmake/build; ctest -V -L Medium
402 $(CC) -v
403 CFLAGS="-std=c89 -Werror -O0" $(MAKE) allmost # will fail, due to missing support for `long long`
406 $(CC) -v
407 CFLAGS="-std=gnu90 -Werror -O0" $(MAKE) allmost
410 $(CC) -v
411 CFLAGS="-std=c99 -Werror -O0" $(MAKE) allmost
414 $(CC) -v
415 CFLAGS="-std=gnu99 -Werror -O0" $(MAKE) allmost
418 $(CC) -v
419 CFLAGS="-std=c11 -Werror -O0" $(MAKE) allmost
422 $(CC) -v
423 CFLAGS="-O3 -mbmi -Werror" $(MAKE) -C $(TESTDIR) test
426 $(CC) -v
427 CFLAGS="-O3 -mbmi -mx32 -Werror" $(MAKE) -C $(TESTDIR) test
430 $(CC) -v
431 CFLAGS="-O3 -mbmi -m32 -Werror" $(MAKE) -C $(TESTDIR) test
433 # static analyzer test uses clang's scan-build
435 staticAnalyze: SCANBUILD ?= scan-build
437 $(CC) -v
438 CC=$(CC) CPPFLAGS=-g $(SCANBUILD) --status-bugs -v $(MAKE) zstd