]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Add MT enabled targets for libzstd
authorSean Purcell <me@seanp.xyz>
Tue, 18 Apr 2017 21:13:01 +0000 (14:13 -0700)
committerSean Purcell <me@seanp.xyz>
Tue, 18 Apr 2017 21:13:01 +0000 (14:13 -0700)
lib/Makefile

index 197fdeeea033c1463bde49353faacdf741ee581b..d8d8e179d20587eabc30f4a538e3c8bdd8bd24dc 100644 (file)
@@ -71,6 +71,9 @@ libzstd.a: $(ZSTD_OBJ)
        @echo compiling static library
        @$(AR) $(ARFLAGS) $@ $^
 
+libzstd.a-mt: CPPFLAGS += -DZSTD_MULTHREAD
+libzstd.a-mt: libzstd.a
+
 $(LIBZSTD): LDFLAGS += -shared -fPIC -fvisibility=hidden
 $(LIBZSTD): $(ZSTD_FILES)
        @echo compiling dynamic library $(LIBVER)
@@ -86,10 +89,17 @@ endif
 
 libzstd : $(LIBZSTD)
 
+libzstd-mt : CPPFLAGS += -DZSTD_MULTITHREAD
+libzstd-mt : libzstd
+
 lib: libzstd.a libzstd
 
-lib-release: DEBUGFLAGS :=
+lib-mt: CPPFLAGS += -DZSTD_MULTITHREAD
+lib-mt: lib
+
+lib-release lib-release-mt: DEBUGFLAGS :=
 lib-release: lib
+lib-release-mt: lib-mt
 
 clean:
        @$(RM) -r *.dSYM   # Mac OS-X specific