summarylogtreecommitdiffstats
path: root/0001-Makefile-allow-to-override-some-parameters.patch
blob: 7270de8c4d7fc1c89d3c082c4738b48d1160407d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
From 2b08b8d257f7778bb63d16fdc59a75731cbe7542 Mon Sep 17 00:00:00 2001
From: Nicola Murino <nicola.murino@gmail.com>
Date: Mon, 6 Feb 2017 16:06:14 +0100
Subject: [PATCH] Makefile: allow to override some parameters

---
 Makefile | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile
index a1595a8..529ff40 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,14 @@
 VERSION=v2.4
 
-prefix=/usr/local
+prefix?=/usr/local
 
-CC=$(CROSS_COMPILE)gcc
-LD=$(CROSS_COMPILE)ld
+CC?=$(CROSS_COMPILE)gcc
+LD?=$(CROSS_COMPILE)ld
 
-SYS=posix
+SYS?=posix
 #SYS=mingw
 
-CRYPTO=OPENSSL
+CRYPTO?=OPENSSL
 #CRYPTO=POLARSSL
 #CRYPTO=GNUTLS
 LIBZ=-lz
@@ -25,7 +25,7 @@ CFLAGS=-Wall $(XCFLAGS) $(INC) $(DEF) $(OPT)
 LDFLAGS=-Wall $(XLDFLAGS)
 
 bindir=$(prefix)/bin
-sbindir=$(prefix)/sbin
+sbindir=$(prefix)/bin
 mandir=$(prefix)/man
 
 BINDIR=$(DESTDIR)$(bindir)
-- 
2.11.0