summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile51
1 files changed, 7 insertions, 44 deletions
diff --git a/Makefile b/Makefile
index 59c5e3b..284972f 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,18 @@ test-travis: $(TRAVIS_TARGET)
cmake:
@cd cmake_unofficial; cmake CMakeLists.txt; $(MAKE)
+gpptest: clean
+ export CC=g++; export CFLAGS="-O3 -Wall -Wextra -Wundef -Wshadow -Wcast-align -Werror"; $(MAKE) -e all
+
clangtest: clean
- export CC=clang; $(MAKE) all
+ export CFLAGS=-Werror; export CC=clang; $(MAKE) all
staticAnalyze: clean
export CFLAGS=-g; scan-build -v $(MAKE) all
-gpptest: clean
- export CC=g++; export CFLAGS="-O3 -Wall -Wextra -Wundef -Wshadow -Wcast-align"; $(MAKE) -e all
-
armtest: clean
- export CC=arm-linux-gnueabi-gcc; cd lib; $(MAKE) -e all
- export CC=arm-linux-gnueabi-gcc; cd programs; $(MAKE) -e bins
+ export CFLAGS=-Werror; export CC=arm-linux-gnueabi-gcc; cd lib; $(MAKE) -e all
+ export CFLAGS=-Werror; export CC=arm-linux-gnueabi-gcc; cd programs; $(MAKE) -e bins
streaming-examples:
cd examples; $(MAKE) -e test