mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
[PR #390] Add a "lib" target to the Makefile to build a static library: libbrotli.a #1003
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/google/brotli/pull/390
State: closed
Merged: Yes
This small change to the Makefile supports building a libbrotli.a archive of the encoding and decoding objects (not including the CLI tool object or running the test suite). This provides an easy target for linking when brotli code is included in projects that use the encoding and decoding components. This is only an extension, the previous behavior for other targets remain.
P.S. I like the approach of providing a simple, portable Makefile for building when an autoconfig/configure/make can be avoided. This simplicity makes incorporation of brotli into small projects (that do not have their own autoconf/etc.) that much easier. Thanks!