mirror of
https://github.com/facebook/zstd.git
synced 2025-10-15 00:02:02 -04:00
Add MT enabled targets for libzstd
This commit is contained in:
parent
1c286950af
commit
ca6fae7808
12
lib/Makefile
12
lib/Makefile
@ -71,6 +71,9 @@ libzstd.a: $(ZSTD_OBJ)
|
|||||||
@echo compiling static library
|
@echo compiling static library
|
||||||
@$(AR) $(ARFLAGS) $@ $^
|
@$(AR) $(ARFLAGS) $@ $^
|
||||||
|
|
||||||
|
libzstd.a-mt: CPPFLAGS += -DZSTD_MULTHREAD
|
||||||
|
libzstd.a-mt: libzstd.a
|
||||||
|
|
||||||
$(LIBZSTD): LDFLAGS += -shared -fPIC -fvisibility=hidden
|
$(LIBZSTD): LDFLAGS += -shared -fPIC -fvisibility=hidden
|
||||||
$(LIBZSTD): $(ZSTD_FILES)
|
$(LIBZSTD): $(ZSTD_FILES)
|
||||||
@echo compiling dynamic library $(LIBVER)
|
@echo compiling dynamic library $(LIBVER)
|
||||||
@ -86,10 +89,17 @@ endif
|
|||||||
|
|
||||||
libzstd : $(LIBZSTD)
|
libzstd : $(LIBZSTD)
|
||||||
|
|
||||||
|
libzstd-mt : CPPFLAGS += -DZSTD_MULTITHREAD
|
||||||
|
libzstd-mt : libzstd
|
||||||
|
|
||||||
lib: libzstd.a 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: lib
|
||||||
|
lib-release-mt: lib-mt
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@$(RM) -r *.dSYM # Mac OS-X specific
|
@$(RM) -r *.dSYM # Mac OS-X specific
|
||||||
|
Loading…
x
Reference in New Issue
Block a user