summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorIgor Gnatenko <i.gnatenko.brain@gmail.com>2014-08-08 08:23:00 (GMT)
committerIgor Gnatenko <i.gnatenko.brain@gmail.com>2014-08-08 11:33:08 (GMT)
commit0cca754ea13dde5e57137d77ad6540396148f2fd (patch)
tree8ec36bb11a18c2d94c1c85137050b1020250bfeb /Makefile
parent3c7309edab4d05854594816dfa98d5d350e7d57d (diff)
downloadlz4-0cca754ea13dde5e57137d77ad6540396148f2fd.zip
lz4-0cca754ea13dde5e57137d77ad6540396148f2fd.tar.gz
lz4-0cca754ea13dde5e57137d77ad6540396148f2fd.tar.bz2
Makefile: fix DESTDIR
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index b2b64e7..36e75c5 100644
--- a/Makefile
+++ b/Makefile
@@ -38,11 +38,11 @@ LIBVER_MINOR=`sed -n '/define LZ4_VERSION_MINOR/s/.*[[:blank:]]\([0-9][0-9]*\).*
LIBVER_PATCH=`sed -n '/define LZ4_VERSION_RELEASE/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < lz4.h`
LIBVER=$(LIBVER_MAJOR).$(LIBVER_MINOR).$(LIBVER_PATCH)
-DESTDIR=
-PREFIX = /usr
-CC := $(CC)
-CFLAGS?= -O3
-CFLAGS+= -I. -std=c99 -Wall -Wextra -Wundef -Wshadow -Wstrict-prototypes -DLZ4_VERSION=\"$(RELEASE)\"
+DESTDIR?=
+PREFIX ?= /usr
+CC := $(CC)
+CFLAGS ?= -O3
+CFLAGS += -I. -std=c99 -Wall -Wextra -Wundef -Wshadow -Wstrict-prototypes -DLZ4_VERSION=\"$(RELEASE)\"
LIBDIR?= $(PREFIX)/lib
INCLUDEDIR=$(PREFIX)/include