]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
new Makefile target zstdmt
authorYann Collet <cyan@fb.com>
Mon, 2 Jan 2017 00:43:56 +0000 (01:43 +0100)
committerYann Collet <cyan@fb.com>
Mon, 2 Jan 2017 00:43:56 +0000 (01:43 +0100)
programs/Makefile

index 6bd0014a607b86ad755eacc2dbbf7e36953cd607..4e3510e4be20a122bcdb25d731d2dd1636be7e63 100644 (file)
@@ -130,6 +130,10 @@ gzstd: clean_decomp_o
         && $(MAKE) zstd; \
     fi
 
+zstdmt: CPPFLAGS += -DZSTD_PTHREAD
+zstdmt: LDFLAGS += -lpthread
+zstdmt: zstd
+
 generate_res:
        windres/generate_res.bat
 
@@ -164,7 +168,7 @@ ifneq (,$(filter $(shell uname),OpenBSD FreeBSD NetBSD DragonFly SunOS))
 MANDIR  ?= $(PREFIX)/man/man1
 else
 MANDIR  ?= $(PREFIX)/share/man/man1
-endif 
+endif
 
 INSTALL_PROGRAM ?= $(INSTALL) -m 755
 INSTALL_SCRIPT  ?= $(INSTALL) -m 755