added setZWRAPdecompressionType

This commit is contained in:
inikep
2016-09-22 11:52:00 +02:00
parent bd76017329
commit d755717941
6 changed files with 111 additions and 72 deletions
+5 -2
View File
@@ -1,8 +1,8 @@
# Makefile for example of using zstd wrapper for zlib
#
# make - compiles statically and dynamically linked examples
# make test test_d - runs statically and dynamically linked examples
# make LOC=-DZWRAP_USE_ZSTD=1 - compiles statically and dynamically linked examples with zstd compression turned on
# make test test_d - runs statically and dynamically linked examples
# Paths to static and dynamic zlib and zstd libraries
@@ -36,10 +36,11 @@ test: example fitblk
test_d: example_d
./example_d
test_zstd: example_zstd fitblk_zstd
test_zstd: example_zstd fitblk_zstd zwrapbench
./example_zstd
./fitblk_zstd 10240 <../zstd_compression_format.md
./fitblk_zstd 40960 <../zstd_compression_format.md
./zwrapbench ../zstd_compression_format.md
.c.o:
$(CC) $(CFLAGS) -c -o $@ $<
@@ -62,6 +63,8 @@ fitblk_zstd: $(EXAMPLE_PATH)/fitblk.o $(ZLIBWRAPPER_PATH)/zstd_zlibwrapper.o
zwrapbench: $(EXAMPLE_PATH)/zwrapbench.o $(ZLIBWRAPPER_PATH)/zstd_zlibwrapper.o $(PROGRAMS_PATH)/datagen.o
$(CC) $(LDFLAGS) -o $@ $^ $(STATICLIB)
$(EXAMPLE_PATH)/zwrapbench.o: $(EXAMPLE_PATH)/zwrapbench.c
$(ZLIBWRAPPER_PATH)/zstd_zlibwrapper.o: $(ZLIBWRAPPER_PATH)/zstd_zlibwrapper.c $(ZLIBWRAPPER_PATH)/zstd_zlibwrapper.h
$(CC) $(CFLAGS) -I. -c -o $@ $(ZLIBWRAPPER_PATH)/zstd_zlibwrapper.c