Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 1 | From 18cc69460d2a0c756880bd54fda36afb0173ea02 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Thu, 19 Dec 2019 19:47:36 -0800 |
| 4 | Subject: [PATCH] define BASELIB make variable |
| 5 | |
| 6 | This helps to override the default libdir from environment |
| 7 | |
| 8 | Upstream-Status: Submitted [https://github.com/foo86/dcadec/pull/61] |
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 10 | --- |
| 11 | Makefile | 3 ++- |
| 12 | 1 file changed, 2 insertions(+), 1 deletion(-) |
| 13 | |
| 14 | diff --git a/Makefile b/Makefile |
| 15 | index a503698..8f323be 100644 |
| 16 | --- a/Makefile |
| 17 | +++ b/Makefile |
| 18 | @@ -7,8 +7,9 @@ API_PATCH = 0 |
| 19 | CFLAGS := -std=gnu99 -D_FILE_OFFSET_BITS=64 -Wall -Wextra -O3 -ffast-math -g -MMD $(CFLAGS) |
| 20 | |
| 21 | PREFIX ?= /usr/local |
| 22 | +BASELIB ?= lib |
| 23 | BINDIR ?= $(PREFIX)/bin |
| 24 | -LIBDIR ?= $(PREFIX)/lib |
| 25 | +LIBDIR ?= $(PREFIX)/$(BASELIB) |
| 26 | INCLUDEDIR ?= $(PREFIX)/include |
| 27 | |
| 28 | SRC_DIR := $(realpath $(dir $(lastword $(MAKEFILE_LIST)))) |
| 29 | -- |
| 30 | 2.24.1 |
| 31 | |