1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-30 22:23:13 +03:00

52 Commits

Author SHA1 Message Date
c0b46738b4 streamline make clean list maintenance
When creating a new `Makefile` target to build,
it's also necessary to update the `clean` target,
which purpose is to remove built targets when they are present.

This process is simple, but it's also easy to forget :
since there is a large distance between the position in the `Makefile` where the new built target is added,
and the place where the list of files to `clean` is defined.
Moreover, the list of files becomes pretty long over time,
hence it's difficult to visually ensure that all built targets are present there,
or that no old target (no longer produced) is no longer in the list

This PR tries to improve this process by adding a CLEAN variable.
Now, when a new built target is added to the `Makefile`,
it should preceded by :
```
CLEAN += newTarget
newTarget:
<TAB> ...recipe...
```

This new requirement is somewhat similar to `.PHONY: newTarget` for non-built targets.

This new method offers the advantage of locality :
there is no separate place in the file to maintain a list of files to clean.
This makes maintenance of `make clean` easier.
2022-09-07 16:36:03 -07:00
f78917cdd3 streamline zlibwrapper makefile
making better usage of default build rules
2020-12-20 12:53:30 -08:00
abf5c0655c fix zlibwrap parallel build
previous recipe would build object files directly within programs/
which could be in competition with other local builds happening in programs/ at the same time.

fixed by generating the relevant object file locally.
2020-10-15 10:56:37 -07:00
6ddb783c3e Change c90 to c89
c89 and c90 are the same language. Old compilers like gcc 4.2.1 don't
know the c90 alias.
2019-11-07 11:04:31 -06:00
d770a2a89f fixed zlibwrapper build script 2019-10-31 10:47:06 -07:00
cadff8cdc4 zlibwrapper : fixed flag-variable name
release doesn't use specific std/debug flags
2019-10-02 17:41:19 -07:00
c69ed0f8d7 updated tests for zlibwrapper C90 strict compatibility 2019-10-02 17:32:19 -07:00
69c9401932 simplified Makefile
and fixed a few c++-compat issues
2019-09-26 15:01:29 -07:00
0582b27cae added c++-compat build flag
ensure code can be compiled "as is" in C++ mode

also : restructured flags so that they can be individually changed / disabled on command line
2019-09-26 13:08:25 -07:00
cb18fffe65 enforce C90 compatibility for zlibWrapper 2019-09-24 17:50:58 -07:00
59a7116cc2 benchfn dependencies reduced to only timefn
benchfn used to rely on mem.h, and util,
which in turn relied on platform.h.
Using benchfn outside of zstd required to bring all these dependencies.

Now, dependency is reduced to timefn only.
This required to create a separate timefn from util,
and rewrite benchfn and timefn to no longer need mem.h.

Separating timefn from util has a wide effect accross the code base,
as usage of time functions is widespread.
A lot of build scripts had to be updated to also include timefn.
2019-04-10 12:37:03 -07:00
068c9b89be fixed zlibwrapper examples build 2018-12-20 15:28:03 -08:00
705e0b18ab Making changes to make it compile on my laptop 2018-10-11 15:51:57 -07:00
058ed2ad33 ZSTD_decodingBufferSize_min()
supporting function for bufferless streaming API (ZSTD_decompressContinue())
makes it possible to correctly size a round buffer for decoding using this API.

also : added field blockSizeMax within ZSTD_frameHeader,
as it's a necessary information to know when to restart at beginning of decoding buffer.
2017-09-09 01:03:29 -07:00
33a7e679e5 significant zlib wrapper code refactoring
code indentation
variable scope and names
constify

Only coding style changes.
The logic should remain the same.
2017-06-02 17:10:49 -07:00
95f34e056a zlibWrapper/README.md: updated info about gzip file access functions 2016-12-06 11:36:24 +01:00
2f902f946c fixed zlibwrapper use of xxh 2016-12-06 08:52:53 +01:00
087bd2c198 compile with -Wstrict-aliasing=1 2016-11-29 17:57:00 +01:00
0fa3447dee plainly marked altered files from zlib 2016-11-28 16:55:14 +01:00
8b3e2f1a0b updated zlibWrapper/Makefile 2016-11-28 15:41:36 +01:00
a641776197 zlibWrapper: improve "make clean" 2016-11-25 17:13:25 +01:00
4c690507a7 added minigzip test 2016-11-25 14:45:55 +01:00
6b3c2018db added minigzip 2016-11-24 18:26:47 +01:00
de4b4fc36f zlibWrapper: added XXH_NAMESPACE 2016-11-21 15:03:05 +01:00
7e06e6ab19 updated Makefile for zlibWrapper 2016-11-04 16:50:39 +01:00
d007eb5f9f fixed clang warnings in zlibWrapper 2016-11-04 11:20:58 +01:00
6c111fa3da fix zlibWrapper make test 2016-11-03 00:44:02 -07:00
3ee94a7600 zstd_compression_format.md moved to doc/ 2016-10-24 15:58:07 +02:00
60dddc2109 zlibWrapper: minor tweaks 2016-09-26 22:47:39 +02:00
ad468ab25c updated zlibWrapper\Makefile 2016-09-26 22:24:04 +02:00
cbd7bdca1e improved zwrapbench tests 2016-09-26 20:41:52 +02:00
57b9708054 faster inflate() autodetection of zlib/zstd 2016-09-23 14:59:46 +02:00
b88accfb5f use valgrind with a dynamic zstd library 2016-09-23 13:38:02 +02:00
68cd4766c9 initialization of strm->adler 2016-09-23 12:42:21 +02:00
f77a1132a7 improved valgrind tests 2016-09-23 12:01:38 +02:00
4602e53021 added valgrindTest for zlibWrapper 2016-09-23 10:43:37 +02:00
f71828f2c4 zwrapbench: testing speed of ZSTD_decompressStream 2016-09-22 15:55:01 +02:00
8e8b046f64 zwrapbench benchmarks zlibWrapper 2016-09-22 14:42:32 +02:00
d755717941 added setZWRAPdecompressionType 2016-09-22 11:52:00 +02:00
3be5c6e6db improved zlibWrapper\Makefile 2016-09-22 10:23:58 +02:00
86fc8e0003 added ZWRAP_DCtx.decompState 2016-09-20 16:22:28 +02:00
554b3b935c improved logging 2016-09-20 15:18:00 +02:00
7b546e5da9 added fitblk.c 2016-09-20 12:49:39 +02:00
613c706c96 fixed zlibWrapper examples for lib/zstd.h 2016-07-18 03:27:26 +02:00
3640396b1a fixed: deallocation of structures in case of error in ZBUFF_createCCtx and ZBUFF_createDCtx 2016-06-03 16:36:50 +02:00
db2f540414 added defaultCustomNULL 2016-06-03 12:56:56 +02:00
ff2d18928d zlibWrapper: added gcc flag -Wdeclaration-after-statement 2016-06-02 22:15:09 +02:00
614fddee6a zlibWrapper: support for stricter gcc warnings 2016-06-02 18:40:41 +02:00
bf25d7ac57 zlibWrapper: support for zlib versions from 1.2.3 to 1.2.8 2016-06-02 10:19:35 +02:00
043b3c01bb zlibWrapped: removed dependency from ZSTD_FRAMEHEADERSIZE_MIN 2016-06-01 10:15:25 +02:00