mirror of
https://github.com/facebook/zstd.git
synced 2025-07-30 22:23:13 +03:00
refactor utils.h and implement simple_compressionCCtx.c
This commit is contained in:
@ -17,6 +17,7 @@ LIB = ../lib/libzstd.a
|
||||
default: all
|
||||
|
||||
all: simple_compression simple_decompression \
|
||||
simple_compressionCCtx\
|
||||
dictionary_compression dictionary_decompression \
|
||||
streaming_compression streaming_decompression \
|
||||
multiple_streaming_compression streaming_memory_usage
|
||||
@ -30,6 +31,9 @@ simple_compression : simple_compression.c $(LIB)
|
||||
simple_decompression : simple_decompression.c $(LIB)
|
||||
$(CC) $(CPPFLAGS) $(CFLAGS) $^ $(LDFLAGS) -o $@
|
||||
|
||||
simple_compressionCCtx : simple_compressionCCtx.c $(LIB)
|
||||
$(CC) $(CPPFLAGS) $(CFLAGS) $^ $(LDFLAGS) -o $@
|
||||
|
||||
dictionary_compression : dictionary_compression.c $(LIB)
|
||||
$(CC) $(CPPFLAGS) $(CFLAGS) $^ $(LDFLAGS) -o $@
|
||||
|
||||
@ -51,6 +55,7 @@ streaming_memory_usage : streaming_memory_usage.c $(LIB)
|
||||
clean:
|
||||
@rm -f core *.o tmp* result* *.zst \
|
||||
simple_compression simple_decompression \
|
||||
simple_compressionCCtx \
|
||||
dictionary_compression dictionary_decompression \
|
||||
streaming_compression streaming_decompression \
|
||||
multiple_streaming_compression streaming_memory_usage
|
||||
@ -62,6 +67,7 @@ test: all
|
||||
@echo -- Simple compression tests
|
||||
./simple_compression tmp
|
||||
./simple_decompression tmp.zst
|
||||
./simple_compressionCCtx *.c
|
||||
./streaming_decompression tmp.zst > /dev/null
|
||||
@echo -- Streaming memory usage
|
||||
./streaming_memory_usage
|
||||
|
Reference in New Issue
Block a user