diff options
author | Yann Collet <cyan@fb.com> | 2016-11-09 17:04:09 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2016-11-09 17:04:09 (GMT) |
commit | 0c5e2e4d1bf7a4abed98913fd526779976214ea7 (patch) | |
tree | 678ce87b856c2e027e196b6d4228cd8095cc33a8 /tests/Makefile | |
parent | fafba397343dbce6d30ba459d9d9f9f98cfbdd2d (diff) | |
parent | 2987eb41792d3ae7a38096651a7d689a0bb783ab (diff) | |
download | lz4-0c5e2e4d1bf7a4abed98913fd526779976214ea7.zip lz4-0c5e2e4d1bf7a4abed98913fd526779976214ea7.tar.gz lz4-0c5e2e4d1bf7a4abed98913fd526779976214ea7.tar.bz2 |
Merge branch 'dev' of github.com:Cyan4973/lz4 into dev
Diffstat (limited to 'tests/Makefile')
-rw-r--r-- | tests/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/Makefile b/tests/Makefile index 9415f7b..6df6381 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -44,7 +44,7 @@ PYTHON?= python3 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 CFLAGS += $(MOREFLAGS) -CPPFLAGS:= -I$(LZ4DIR) -DXXH_NAMESPACE=LZ4_ -DLZ4_DLL_EXPORT=1 +CPPFLAGS:= -I$(LZ4DIR) -DXXH_NAMESPACE=LZ4_ FLAGS := $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) @@ -85,6 +85,14 @@ fullbench : $(LZ4DIR)/lz4.o $(LZ4DIR)/lz4hc.o $(LZ4DIR)/lz4frame.o $(LZ4DIR)/xx fullbench32: $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c $(LZ4DIR)/lz4frame.c $(LZ4DIR)/xxhash.c fullbench.c $(CC) -m32 $(FLAGS) $^ -o $@$(EXT) +fullbench-lib: fullbench.c $(LZ4DIR)/xxhash.c + $(MAKE) -C $(LZ4DIR) liblz4.a + $(CC) $(FLAGS) $^ -o $@$(EXT) $(LZ4DIR)/liblz4.a + +fullbench-dll: fullbench.c $(LZ4DIR)/xxhash.c + $(MAKE) -C $(LZ4DIR) liblz4 + $(CC) $(FLAGS) $^ -o $@$(EXT) -DLZ4_DLL_IMPORT=1 $(LZ4DIR)/liblz4.dll.a + fuzzer : $(LZ4DIR)/lz4.o $(LZ4DIR)/lz4hc.o $(LZ4DIR)/xxhash.o fuzzer.c $(CC) $(FLAGS) $^ -o $@$(EXT) |