diff --git a/Makefile b/Makefile index 7605dfb..2b3efc0 100644 --- a/Makefile +++ b/Makefile @@ -30,3 +30,4 @@ clean: .DEFAULT_GOAL := mex +.PHONY: all lib dll mex oct example clean diff --git a/octave/x86_64-pc-linux-gnu/zipmat.mex b/octave/x86_64-pc-linux-gnu/zipmat.mex index bf51c50..11aff99 100755 Binary files a/octave/x86_64-pc-linux-gnu/zipmat.mex and b/octave/x86_64-pc-linux-gnu/zipmat.mex differ diff --git a/src/blosc2/Makefile b/src/blosc2/Makefile index 6a04636..d8531db 100644 --- a/src/blosc2/Makefile +++ b/src/blosc2/Makefile @@ -9,9 +9,7 @@ LIBBLOSC2=$(BLOSC_SRC)/lib/libblosc2.a all: lib zstd -lib: $(LIBBLOSC2) - -$(LIBBLOSC2): +lib: -$(MAKE) -C $(BLOSC_SRC) lib zstd: -$(MAKE) -C $(ZSTD_SRC) libzstd.a @@ -19,5 +17,6 @@ clean: -$(MAKE) -C $(BLOSC_SRC) clean -$(MAKE) -C $(ZSTD_SRC) clean -.DEFAULT_GOAL := all +.PHONY: all lib zstd clean +.DEFAULT_GOAL := all diff --git a/src/zmatlib.c b/src/zmatlib.c index 325b187..0b98ea7 100644 --- a/src/zmatlib.c +++ b/src/zmatlib.c @@ -275,7 +275,7 @@ int zmat_run(const size_t inputsize, unsigned char* inputstr, size_t* outputsize return -5; } - *ret = ZSTD_compress((char*)(*outputbuf), *outputsize, (const char*)inputstr, inputsize, (clevel > 0) ? 8 : (-clevel)); + *ret = ZSTD_compress((char*)(*outputbuf), *outputsize, (const char*)inputstr, inputsize, (clevel > 0) ? ZSTD_CLEVEL_DEFAULT : (-clevel)); if (ZSTD_isError(*ret)) { return -9;