diff options
author | yann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd> | 2013-10-21 08:03:40 (GMT) |
---|---|---|
committer | yann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd> | 2013-10-21 08:03:40 (GMT) |
commit | a78db582d321446b5167de67eec8ba3239b14bbe (patch) | |
tree | 394401dcd266164afdaf8e8462d81614c79d517d /Makefile | |
parent | 82bf5be9b0e4e5bd3dbdae4ec2aaa9fe8fc693fb (diff) | |
download | lz4-a78db582d321446b5167de67eec8ba3239b14bbe.zip lz4-a78db582d321446b5167de67eec8ba3239b14bbe.tar.gz lz4-a78db582d321446b5167de67eec8ba3239b14bbe.tar.bz2 |
Makefile : support DESTDIR for staged installs. Thanks Jorge Aparicio.
Makefile : make install installs both lz4 and lz4c (Jorge Aparicio)
Makefile : removed -Wno-implicit-declaration compilation switch
lz4cli.c : include <stduni.h> for isatty() (Luca Barbato)
lz4.h : introduced LZ4_MAX_INPUT_SIZE constant (Shay Green)
lz4.h : LZ4_compressBound() : unified macro and inline definitions (Shay Green)
lz4.h : LZ4_decompressSafe_partial() : clarify comments (Shay Green)
lz4.c : LZ4_compress() verify input size condition (Shay Green)
bench.c : corrected a bug in free memory size evaluation
cmake : install into bin/ directory (Richard Yao)
cmake : check for just C compiler (Elan Ruusamae)
git-svn-id: https://lz4.googlecode.com/svn/trunk@107 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -30,13 +30,14 @@ # fullbench32: Same as fullbench, but forced to compile in 32-bits mode # ################################################################ -RELEASE=r106 -PREFIX=/usr +RELEASE=r107 +DESTDIR= +PREFIX=${DESTDIR}/usr BINDIR=$(PREFIX)/bin MANDIR=$(PREFIX)/share/man/man1 DISTRIBNAME=lz4-$(RELEASE).tar.gz CC=gcc -CFLAGS=-I. -std=c99 -Wall -W -Wundef -Wno-implicit-function-declaration +CFLAGS=-I. -std=c99 -Wall -W -Wundef # Define *.exe as extension for Windows systems # ifeq ($(OS),Windows_NT) @@ -90,13 +91,15 @@ clean: ifeq ($(shell uname),Linux) -install: lz4 +install: lz4 lz4c @install -d -m 755 $(BINDIR)/ $(MANDIR)/ @install -m 755 lz4 $(BINDIR)/lz4 + @install -m 755 lz4c $(BINDIR)/lz4c @install -m 644 lz4.1 $(MANDIR)/lz4.1 uninstall: [ -x $(BINDIR)/lz4 ] && rm -f $(BINDIR)/lz4 + [ -x $(BINDIR)/lz4c ] && rm -f $(BINDIR)/lz4c [ -f $(MANDIR)/lz4.1 ] && rm -f $(MANDIR)/lz4.1 dist: clean |