diff options
author | Yann Collet <Cyan4973@users.noreply.github.com> | 2019-04-22 22:29:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-22 22:29:50 (GMT) |
commit | c4fe7a20476c53f9814ea990300481c2fcaaa94e (patch) | |
tree | 50f2234adab70e3a8b04fac76fe9cb8997d2450e /tests/Makefile | |
parent | 15af05ffce8c4dfd441b9e42545d923321ce4dd8 (diff) | |
parent | 5e6807fd95284fcef48a976e2a28617f8ff134d7 (diff) | |
download | lz4-c4fe7a20476c53f9814ea990300481c2fcaaa94e.zip lz4-c4fe7a20476c53f9814ea990300481c2fcaaa94e.tar.gz lz4-c4fe7a20476c53f9814ea990300481c2fcaaa94e.tar.bz2 |
Merge pull request #689 from JPeterMugaas/jpm-makefile
Jpm makefile - as described in https://github.com/lz4/lz4/issues/688
Diffstat (limited to 'tests/Makefile')
-rw-r--r-- | tests/Makefile | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/tests/Makefile b/tests/Makefile index ddc6d1e..bd42ff8 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -43,15 +43,8 @@ CFLAGS += $(DEBUGFLAGS) $(MOREFLAGS) CPPFLAGS+= -I$(LZ4DIR) -I$(PRGDIR) -DXXH_NAMESPACE=LZ4_ FLAGS = $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) +include ../Makefile.inc -# Define *.exe as extension for Windows systems -ifneq (,$(filter Windows%,$(OS))) -EXT =.exe -VOID = nul -else -EXT = -VOID = /dev/null -endif LZ4 := $(PRGDIR)/lz4$(EXT) @@ -60,7 +53,6 @@ TEST_FILES := COPYING FUZZER_TIME := -T90s NB_LOOPS ?= -i1 - default: all all: fullbench fuzzer frametest roundTripTest datagen checkFrame @@ -95,7 +87,7 @@ fullbench-lib: fullbench.c $(LZ4DIR)/liblz4.a fullbench-dll: fullbench.c $(LZ4DIR)/xxhash.c $(MAKE) -C $(LZ4DIR) liblz4 - $(CC) $(FLAGS) $^ -o $@$(EXT) -DLZ4_DLL_IMPORT=1 $(LZ4DIR)/dll/liblz4.dll + $(CC) $(FLAGS) $^ -o $@$(EXT) -DLZ4_DLL_IMPORT=1 $(LZ4DIR)/dll/$(LIBLZ4).dll fuzzer : lz4.o lz4hc.o xxhash.o fuzzer.c $(CC) $(FLAGS) $^ -o $@$(EXT) @@ -137,7 +129,7 @@ checkTag: checkTag.c $(LZ4DIR)/lz4.h #----------------------------------------------------------------------------- # validated only for Linux, OSX, BSD, Hurd and Solaris targets #----------------------------------------------------------------------------- -ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS Haiku MidnightBSD)) +ifeq ($(POSIX_ENV),Yes) MD5:=md5sum ifneq (,$(filter $(shell uname), Darwin )) |