You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

108 lines
2.9 KiB

Index: Makefile
--- Makefile.orig 2021-05-14 16:59:34.000000000 +0200
+++ Makefile 2021-05-14 23:39:33.954977000 +0200
@@ -49,8 +49,8 @@
# skip zwrapper, can't build that on alternate architectures without the proper zlib installed
.PHONY: allzstd
allzstd: lib
- $(Q)$(MAKE) -C $(PRGDIR) all
- $(Q)$(MAKE) -C $(TESTDIR) all
+ $(Q)$(MAKE) $(MFLAGS) -C $(PRGDIR) all
+ $(Q)$(MAKE) $(MFLAGS) -C $(TESTDIR) all
.PHONY: all32
all32:
@@ -59,11 +59,11 @@
.PHONY: lib lib-release lib-mt lib-nomt
lib lib-release lib-mt lib-nomt:
- $(Q)$(MAKE) -C $(ZSTDDIR) $@
+ $(Q)$(MAKE) $(MFLAGS) -C $(ZSTDDIR) $@
.PHONY: zstd zstd-release
zstd zstd-release:
- $(Q)$(MAKE) -C $(PRGDIR) $@
+ $(Q)$(MAKE) $(MFLAGS) -C $(PRGDIR) $@
$(Q)ln -sf $(PRGDIR)/zstd$(EXT) zstd$(EXT)
.PHONY: zstdmt
@@ -113,7 +113,7 @@
## man: generate man page
.PHONY: man
man:
- $(MAKE) -C programs $@
+ $(MAKE) $(MFLAGS) -C programs $@
## contrib: build all supported projects in `/contrib` directory
.PHONY: contrib
@@ -180,8 +180,8 @@
.PHONY: install armtest usan asan uasan msan asan32
install:
- $(Q)$(MAKE) -C $(ZSTDDIR) $@
- $(Q)$(MAKE) -C $(PRGDIR) $@
+ $(Q)$(MAKE) $(MFLAGS) -C $(ZSTDDIR) $@
+ $(Q)$(MAKE) $(MFLAGS) -C $(PRGDIR) $@
.PHONY: uninstall
uninstall:
Index: lib/Makefile
--- lib/Makefile.orig 2021-05-14 16:59:34.000000000 +0200
+++ lib/Makefile 2021-05-14 23:38:06.163631000 +0200
@@ -12,7 +12,7 @@
# multi-threaded. It is possible to force multi or single threaded builds by appending
# -mt or -nomt to the build target (like lib-mt for multi-threaded, lib-nomt for single-threaded).
.PHONY: default
-default: lib-release
+default: all
# define silent mode as default (verbose mode with V=1 or VERBOSE=1)
$(V)$(VERBOSE).SILENT:
@@ -227,7 +227,7 @@
.PHONY: all
-all: lib
+all: libzstd.a libzstd.pc
.PHONY: libzstd.a # must be run every time
@@ -405,17 +405,9 @@
# to PREFIX, rather than as a resolved value.
PCEXEC_PREFIX := $(if $(HAS_EXPLICIT_EXEC_PREFIX),$(EXEC_PREFIX),$${prefix})
-ifneq (,$(filter $(UNAME),FreeBSD NetBSD DragonFly))
- PKGCONFIGDIR ?= $(PREFIX)/libdata/pkgconfig
-else
PKGCONFIGDIR ?= $(LIBDIR)/pkgconfig
-endif
-ifneq (,$(filter $(UNAME),SunOS))
- INSTALL ?= ginstall
-else
INSTALL ?= install
-endif
INSTALL_PROGRAM ?= $(INSTALL)
INSTALL_DATA ?= $(INSTALL) -m 644
@@ -433,7 +425,7 @@
$< >$@
.PHONY: install
-install: install-pc install-static install-shared install-includes
+install: install-pc install-static install-includes
@echo zstd static and shared library installed
.PHONY: install-pc
Index: programs/Makefile
--- programs/Makefile.orig 2021-05-14 16:59:34.000000000 +0200
+++ programs/Makefile 2021-05-14 23:38:06.163781000 +0200
@@ -451,7 +451,7 @@
bindir ?= $(exec_prefix)/bin
BINDIR ?= $(bindir)
datarootdir ?= $(PREFIX)/share
-mandir ?= $(datarootdir)/man
+mandir ?= $(PREFIX)/man
man1dir ?= $(mandir)/man1
ifneq (,$(filter $(UNAME),OpenBSD FreeBSD NetBSD DragonFly SunOS))