Merge pull request #2176 from facebook/make_implicit

fixed default rule for lib/Makefile
This commit is contained in:
Yann Collet
2020-05-26 08:55:34 -07:00
committed by GitHub
+3 -2
View File
@@ -220,13 +220,14 @@ libzstd : $(LIBZSTD)
.PHONY: lib .PHONY: lib
lib : libzstd.a libzstd lib : libzstd.a libzstd
.PHONY: lib-mt # note : do not define lib-mt or lib-release as .PHONY
# make does not consider implicit pattern rule for .PHONY target
%-mt : CPPFLAGS += -DZSTD_MULTITHREAD %-mt : CPPFLAGS += -DZSTD_MULTITHREAD
%-mt : LDFLAGS += -pthread %-mt : LDFLAGS += -pthread
%-mt : % %-mt : %
@echo multi-threading build completed @echo multi-threading build completed
.PHONY: lib-release
%-release : DEBUGFLAGS := %-release : DEBUGFLAGS :=
%-release : % %-release : %
@echo release build completed @echo release build completed