summaryrefslogtreecommitdiffstats
path: root/tests/Makefile
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2017-12-22 10:54:43 (GMT)
committerYann Collet <cyan@fb.com>2017-12-22 10:54:43 (GMT)
commitfdde4311fb47332d81f2fa84a06e5605e6b68600 (patch)
tree09aa7f14fbcec5d7cbc7576b169275eae03cf0e0 /tests/Makefile
parent8a9c8e73241672c1db29be454a9b8388bfde5034 (diff)
downloadlz4-fdde4311fb47332d81f2fa84a06e5605e6b68600.zip
lz4-fdde4311fb47332d81f2fa84a06e5605e6b68600.tar.gz
lz4-fdde4311fb47332d81f2fa84a06e5605e6b68600.tar.bz2
/tests programs compiled with LZ4_DEBUG=1
to enable assert() within /lib
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 1a907b7..ce8c3fb 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -35,11 +35,12 @@ PRGDIR := ../programs
TESTDIR := versionsTest
PYTHON ?= python3
+DEBUGFLAGS = -g -DLZ4_DEBUG=1
CFLAGS ?= -O3 # can select custom optimization flags. For example : CFLAGS=-O2 make
-CFLAGS += -g -Wall -Wextra -Wundef -Wcast-qual -Wcast-align -Wshadow \
+CFLAGS += -Wall -Wextra -Wundef -Wcast-qual -Wcast-align -Wshadow \
-Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes \
-Wpointer-arith -Wstrict-aliasing=1
-CFLAGS += $(MOREFLAGS)
+CFLAGS += $(DEBUGFLAGS) $(MOREFLAGS)
CPPFLAGS:= -I$(LZ4DIR) -I$(PRGDIR) -DXXH_NAMESPACE=LZ4_
FLAGS = $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)