summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2015-04-01 14:05:27 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2015-04-01 14:05:27 (GMT)
commit0615eb4814d68579b26b9c5b388c146d9d553228 (patch)
treea55a6b674b74154976ae22eb127690eb6eaad699 /Makefile
parent76a03c1035829116e6fa9e80ad16364524514f9f (diff)
downloadlz4-0615eb4814d68579b26b9c5b388c146d9d553228.zip
lz4-0615eb4814d68579b26b9c5b388c146d9d553228.tar.gz
lz4-0615eb4814d68579b26b9c5b388c146d9d553228.tar.bz2
Stricter tests : treat warnings as errors
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 59759c0..9cd2a29 100644
--- a/Makefile
+++ b/Makefile
@@ -131,18 +131,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