From 78aa9373cb41d080f8b466dd293b9b1e4fd7a683 Mon Sep 17 00:00:00 2001 From: "W. Felix Handte" Date: Fri, 8 May 2020 13:06:31 -0400 Subject: [PATCH] Add libzstd.pc Build to More Aggregate Targets in Makefiles --- Makefile | 4 ++-- lib/Makefile | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 14419fea..2c1d3460 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,7 @@ allmost: allzstd zlibwrapper # skip zwrapper, can't build that on alternate architectures without the proper zlib installed .PHONY: allzstd -allzstd: lib +allzstd: lib-all $(MAKE) -C $(PRGDIR) all $(MAKE) -C $(TESTDIR) all @@ -55,7 +55,7 @@ all32: $(MAKE) -C $(TESTDIR) all32 .PHONY: lib lib-release libzstd.a -lib lib-release : +lib lib-release lib-all : @$(MAKE) -C $(ZSTDDIR) $@ .PHONY: zstd zstd-release diff --git a/lib/Makefile b/lib/Makefile index 02e2f01a..0a01ffc6 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -180,11 +180,14 @@ else endif -.PHONY: default all clean install uninstall +.PHONY: default lib-all all clean install uninstall default: lib-release -all: lib +# alias +lib-all: all + +all: lib libzstd.pc libzstd.a: ARFLAGS = rcs libzstd.a: $(ZSTD_OBJ)