blob: adce802bc84f93a700e3964bb1c0c02b5cae900a [file] [log] [blame]
Brad Bishope42b3e32020-01-15 22:08:42 -05001From 18cc69460d2a0c756880bd54fda36afb0173ea02 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 19 Dec 2019 19:47:36 -0800
4Subject: [PATCH] define BASELIB make variable
5
6This helps to override the default libdir from environment
7
8Upstream-Status: Submitted [https://github.com/foo86/dcadec/pull/61]
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 Makefile | 3 ++-
12 1 file changed, 2 insertions(+), 1 deletion(-)
13
14diff --git a/Makefile b/Makefile
15index 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--
302.24.1
31