Add clarification on how to build shared / static libraries
This commit is contained in:
parent
131463c503
commit
dada94f8c5
18
README.md
18
README.md
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue