summaryrefslogtreecommitdiffstats
path: root/examples/Makefile
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2014-10-22 07:07:56 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2014-10-22 07:07:56 (GMT)
commite2c84118f52cefe48fd2f751e66ad3ecd904f7b9 (patch)
tree999f2203e31867aaeaf8f77e6d625a159da60161 /examples/Makefile
parente468a4eb96ec8e2ea0fc61b5aa20f56a3b214c0e (diff)
downloadlz4-e2c84118f52cefe48fd2f751e66ad3ecd904f7b9.zip
lz4-e2c84118f52cefe48fd2f751e66ad3ecd904f7b9.tar.gz
lz4-e2c84118f52cefe48fd2f751e66ad3ecd904f7b9.tar.bz2
Added : HC streaming ring buffer example
Diffstat (limited to 'examples/Makefile')
-rw-r--r--examples/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/Makefile b/examples/Makefile
index 5704c55..b5f9a7e 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -58,7 +58,7 @@ endif
default: all
-all: printVersion doubleBuffer ringBuffer lineCompress
+all: printVersion doubleBuffer ringBuffer ringBufferHC lineCompress
printVersion: $(LZ4DIR)/lz4.c printVersion.c
$(CC) $(FLAGS) $^ -o $@$(EXT)
@@ -69,6 +69,9 @@ doubleBuffer: $(LZ4DIR)/lz4.c blockStreaming_doubleBuffer.c
ringBuffer : $(LZ4DIR)/lz4.c blockStreaming_ringBuffer.c
$(CC) $(FLAGS) $^ -o $@$(EXT)
+ringBufferHC: $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c HCStreaming_ringBuffer.c
+ $(CC) $(FLAGS) $^ -o $@$(EXT)
+
lineCompress: $(LZ4DIR)/lz4.c blockStreaming_lineByLine.c
$(CC) $(FLAGS) $^ -o $@$(EXT)
@@ -76,10 +79,11 @@ test : all
./printVersion$(EXT)
./doubleBuffer$(EXT) $(TESTFILE)
./ringBuffer$(EXT) $(TESTFILE)
+ ./ringBufferHC$(EXT) $(TESTFILE)
./lineCompress$(EXT) $(TESTFILE)
clean:
@rm -f core *.o *.dec *-0 *-8192 *.lz4s \
- printVersion$(EXT) doubleBuffer$(EXT) ringBuffer$(EXT) lineCompress$(EXT)
+ printVersion$(EXT) doubleBuffer$(EXT) ringBuffer$(EXT) ringBufferHC$(EXT) lineCompress$(EXT)
@echo Cleaning completed