Add clarification on how to build shared / static libraries

This commit is contained in:
Christophe de Dinechin 2017-06-27 21:56:53 +02:00
parent 131463c503
commit dada94f8c5
1 changed files with 17 additions and 1 deletions

View File

@ -58,6 +58,23 @@ submodule in your project using:
In order to get a summary of the available build targets, use `make help`.
## Building libraries and shared libraries
The kind of output your makefile produces depends on the extension in
`PRODUCTS`. You can use:
* `.exe` for an executable binary
* `.lib` for a static library
* `.dll` for a dynamic library
The build commands for each case are defined in build environment
configurations, e.g. `config.gnu.mk`, by variables called `MAKE_EXE`,
`MAKE_LIB` and `MAKE_DLL`. The actual extension being used are also
defined in the same file, as `EXE_EXT`, `LIB_EXT` and `DLL_EXT`. For
example, on Linux, `LIB_EXT` is set to `.a`.
## Building the products
If you simply type `make`, a default build is launched. This is what
@ -199,7 +216,6 @@ Similarly, you can do a release install with `make release-install`.
(Note that you can make `debug` your default target, see below).
## Environment variables
Several environment variables control the behavior of `build`. The