summaryrefslogtreecommitdiffstats
path: root/examples/Makefile
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2017-09-11 17:25:47 (GMT)
committerYann Collet <cyan@fb.com>2017-09-11 17:25:47 (GMT)
commit810e2ca27b3561e0f6bfa7a88e0fde6faf807064 (patch)
treed6944102061953ea64aa04601cc8925e0051a03f /examples/Makefile
parente5bd29a2fb019ddd19f9817ba701733552afbdbd (diff)
downloadlz4-810e2ca27b3561e0f6bfa7a88e0fde6faf807064.zip
lz4-810e2ca27b3561e0f6bfa7a88e0fde6faf807064.tar.gz
lz4-810e2ca27b3561e0f6bfa7a88e0fde6faf807064.tar.bz2
minor improvements to examples
cosmetic : better display added optional variable MOREFLAGS
Diffstat (limited to 'examples/Makefile')
-rw-r--r--examples/Makefile20
1 files changed, 14 insertions, 6 deletions
diff --git a/examples/Makefile b/examples/Makefile
index 7647f16..9321c24 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -30,11 +30,11 @@
CPPFLAGS += -I../lib
CFLAGS ?= -O3
CFLAGS += -std=gnu99 -Wall -Wextra -Wundef -Wshadow -Wcast-align -Wstrict-prototypes
-FLAGS := $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
+FLAGS := $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(MOREFLAGS)
-TESTFILE= Makefile
-LZ4DIR := ../lib
-LZ4 = ../programs/lz4
+TESTFILE = Makefile
+LZ4DIR := ../lib
+LZ4 = ../programs/lz4
# Define *.exe as extension for Windows systems
@@ -80,14 +80,22 @@ simpleBuffer: $(LZ4DIR)/lz4.c simple_buffer.c
$(CC) $(FLAGS) $^ -o $@$(EXT)
test : all
+ @echo "\n=== Print Version ==="
./printVersion$(EXT)
+ @echo "\n=== Simple compression example ==="
+ ./simpleBuffer$(EXT)
+ @echo "\n=== Double-buffer ==="
./doubleBuffer$(EXT) $(TESTFILE)
- ./dictionaryRandomAccess$(EXT) $(TESTFILE) $(TESTFILE) 1100 1400
+ @echo "\n=== Ring Buffer ==="
./ringBuffer$(EXT) $(TESTFILE)
+ @echo "\n=== Ring Buffer + LZ4 HC ==="
./ringBufferHC$(EXT) $(TESTFILE)
+ @echo "\n=== Compress line by line ==="
./lineCompress$(EXT) $(TESTFILE)
+ @echo "\n=== Dictionary Random Access ==="
+ ./dictionaryRandomAccess$(EXT) $(TESTFILE) $(TESTFILE) 1100 1400
+ @echo "\n=== Frame compression ==="
./frameCompress$(EXT) $(TESTFILE)
- ./simpleBuffer$(EXT)
$(LZ4) -vt $(TESTFILE).lz4
clean: