README: Upgrade build instructions

tight-png
Andri Yngvason 2019-12-23 12:33:36 +00:00
parent 22009cc692
commit 95f5059200
1 changed files with 2 additions and 28 deletions

View File

@ -24,32 +24,6 @@ neat. Note: This is a beta release, so the interface is not yet stable.
To build just run:
```
make
meson build
ninja -C build
```
### Installing
```
make install
```
### Variables
* `CFLAGS`: Flags passed to the compiler.
* `LDFLAGS`: Flags passed to the linker.
* `BUILD_DIR`: Destination directory for the build.
* `PREFIX`: System prefix. Default: `/usr/local`.
* `DESTDIR`: Destination directory for install. This is used by system
package system such as dpkg, rpm and pacman.
* `PKGCONFIG`: `pkg-config` executable path.
* `STRIP`: `strip` executable path.
* `DONT_STRIP`: Set this is the installed DSO is not to be stripped of its
debugging symbols.
### Cross-compiling
Generally, it should be enough to set `CC=<architecture-triplet>-gcc` and then
run `make`, e.g.:
```
CC=arm-linux-gnueabihf-gcc make
```
If you have a `pkg-config` wrapper at `<triplet>-pkg-config` it will be run
instead if `pkg-config`, but `pkg-config` can also be overridden by setting the
`PKGCONFIG` environment variable prior to running `make`.