summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2015-05-07 11:23:39 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2015-05-07 11:23:39 (GMT)
commit7d182b816ace89d6d6d16b7aee376a9962a05caa (patch)
tree5b2236b59cd0e42e3365b0765041a25c85519b39 /Makefile
parent160661c7a4cbf805f4af74d2e3932a17a66e6ce7 (diff)
parentfdd0029c3778768d0e8a80ce238d981f946c8b78 (diff)
downloadlz4-7d182b816ace89d6d6d16b7aee376a9962a05caa.zip
lz4-7d182b816ace89d6d6d16b7aee376a9962a05caa.tar.gz
lz4-7d182b816ace89d6d6d16b7aee376a9962a05caa.tar.bz2
Merge pull request #102 from Cyan4973/devrc129v0r129
Dev
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile56
1 files changed, 11 insertions, 45 deletions
diff --git a/Makefile b/Makefile
index 59c5e3b..88c4016 100644
--- a/Makefile
+++ b/Makefile
@@ -31,7 +31,7 @@
# ################################################################
# Version number
-export VERSION=128
+export VERSION=129
export RELEASE=r$(VERSION)
DESTDIR?=
@@ -41,24 +41,6 @@ LIBDIR ?= $(PREFIX)/lib
INCLUDEDIR=$(PREFIX)/include
PRGDIR = programs
LZ4DIR = lib
-DISTRIBNAME=lz4-$(RELEASE).tar.gz
-
-TEXT = $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4.h $(LZ4DIR)/lz4hc.c $(LZ4DIR)/lz4hc.h \
- $(LZ4DIR)/lz4frame.c $(LZ4DIR)/lz4frame.h $(LZ4DIR)/lz4frame_static.h \
- $(LZ4DIR)/xxhash.c $(LZ4DIR)/xxhash.h \
- $(LZ4DIR)/liblz4.pc.in $(LZ4DIR)/Makefile $(LZ4DIR)/LICENSE \
- Makefile lz4_block_format.txt LZ4_Frame_Format.html NEWS README.md \
- cmake_unofficial/CMakeLists.txt \
- $(PRGDIR)/fullbench.c $(PRGDIR)/lz4cli.c \
- $(PRGDIR)/datagen.c $(PRGDIR)/datagen.h $(PRGDIR)/datagencli.c $(PRGDIR)/fuzzer.c \
- $(PRGDIR)/lz4io.c $(PRGDIR)/lz4io.h \
- $(PRGDIR)/bench.c $(PRGDIR)/bench.h \
- $(PRGDIR)/lz4.1 \
- $(PRGDIR)/Makefile $(PRGDIR)/COPYING
-NONTEXT = images/image00.png images/image01.png images/image02.png \
- images/image03.png images/image04.png images/image05.png \
- images/image06.png
-SOURCES = $(TEXT) $(NONTEXT)
# Select test target for Travis CI's Build Matrix
@@ -86,7 +68,6 @@ lz4programs:
@cd $(PRGDIR); $(MAKE) -e
clean:
- @rm -f $(DISTRIBNAME) *.sha1 > $(VOID)
@cd $(PRGDIR); $(MAKE) clean > $(VOID)
@cd $(LZ4DIR); $(MAKE) clean > $(VOID)
@cd examples; $(MAKE) clean > $(VOID)
@@ -108,24 +89,6 @@ uninstall:
travis-install:
sudo $(MAKE) install
-dist: clean
- @install -dD -m 700 lz4-$(RELEASE)/lib/
- @install -dD -m 700 lz4-$(RELEASE)/programs/
- @install -dD -m 700 lz4-$(RELEASE)/cmake_unofficial/
- @install -dD -m 700 lz4-$(RELEASE)/images/
- @for f in $(TEXT); do \
- tr -d '\r' < $$f > .tmp; \
- install -m 600 .tmp lz4-$(RELEASE)/$$f; \
- done
- @rm .tmp
- @for f in $(NONTEXT); do \
- install -m 600 $$f lz4-$(RELEASE)/$$f; \
- done
- @tar -czf $(DISTRIBNAME) lz4-$(RELEASE)/
- @rm -rf lz4-$(RELEASE)
- @sha1sum $(DISTRIBNAME) > $(DISTRIBNAME).sha1
- @echo Distribution $(DISTRIBNAME) built
-
test:
@cd $(PRGDIR); $(MAKE) -e test
@@ -134,18 +97,21 @@ test-travis: $(TRAVIS_TARGET)
cmake:
@cd cmake_unofficial; cmake CMakeLists.txt; $(MAKE)
+gpptest: clean
+ $(MAKE) all CC=g++ CFLAGS="-O3 -Wall -Wextra -Wundef -Wshadow -Wcast-align -Werror"
+
clangtest: clean
- export CC=clang; $(MAKE) all
+ $(MAKE) all CC=clang CPPFLAGS="-Werror -Wconversion -Wno-sign-conversion"
-staticAnalyze: clean
- export CFLAGS=-g; scan-build -v $(MAKE) all
+sanitize: clean
+ $(MAKE) test CC=clang CPPFLAGS="-g -fsanitize=undefined" FUZZER_TIME="-T1mn" NB_LOOPS=-i1
-gpptest: clean
- export CC=g++; export CFLAGS="-O3 -Wall -Wextra -Wundef -Wshadow -Wcast-align"; $(MAKE) -e all
+staticAnalyze: clean
+ scan-build --status-bugs -v $(MAKE) all CFLAGS=-g
armtest: clean
- export CC=arm-linux-gnueabi-gcc; cd lib; $(MAKE) -e all
- export CC=arm-linux-gnueabi-gcc; cd programs; $(MAKE) -e bins
+ cd lib; $(MAKE) -e all CC=arm-linux-gnueabi-gcc CPPFLAGS="-Werror"
+ cd programs; $(MAKE) -e bins CC=arm-linux-gnueabi-gcc CPPFLAGS="-Werror"
streaming-examples:
cd examples; $(MAKE) -e test