summaryrefslogtreecommitdiffstats
path: root/programs/Makefile
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2016-11-14 16:51:28 (GMT)
committerYann Collet <cyan@fb.com>2016-11-14 16:51:28 (GMT)
commit5a5ebeec15d272b0b85aa2cef2a0da3dce920b80 (patch)
tree5cb9c681842992c699101acff06069ba90027b04 /programs/Makefile
parent1b24cc115595f7cd2f8f5f6de0a9d44a70bdf827 (diff)
downloadlz4-5a5ebeec15d272b0b85aa2cef2a0da3dce920b80.zip
lz4-5a5ebeec15d272b0b85aa2cef2a0da3dce920b80.tar.gz
lz4-5a5ebeec15d272b0b85aa2cef2a0da3dce920b80.tar.bz2
clang and g++ tests restricted to native only on Travis CI Ubuntu v12 environment
Diffstat (limited to 'programs/Makefile')
-rw-r--r--programs/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/programs/Makefile b/programs/Makefile
index 5c2bdcd..de18f78 100644
--- a/programs/Makefile
+++ b/programs/Makefile
@@ -34,8 +34,10 @@ BINDIR := $(PREFIX)/bin
MANDIR := $(PREFIX)/share/man/man1
LZ4DIR := ../lib
-CFLAGS ?= -O3 # can select custom flags. For example : CFLAGS="-O2 -g" make
-CFLAGS += -Wall -Wextra -Wundef -Wcast-qual -Wcast-align -Wshadow -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes -Wpointer-arith
+CFLAGS ?= -O3 # allows custom optimization flags. For example : CFLAGS="-O2 -g" make
+CFLAGS += -Wall -Wextra -Wundef -Wcast-qual -Wcast-align -Wshadow \
+ -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes \
+ -Wpointer-arith -Wstrict-aliasing=1
CFLAGS += $(MOREFLAGS)
CPPFLAGS:= -I$(LZ4DIR) -DXXH_NAMESPACE=LZ4_
FLAGS := $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)
@@ -54,9 +56,9 @@ default: lz4
m32: lz4c32
-bins: lz4 lz4c
+native: lz4 lz4c
-all: bins m32
+all: native m32
lz4: $(LZ4DIR)/lz4.o $(LZ4DIR)/lz4hc.o $(LZ4DIR)/lz4frame.o $(LZ4DIR)/xxhash.o bench.o lz4io.o lz4cli.o datagen.o
$(CC) $(FLAGS) $^ -o $@$(EXT)