Officially deprecated old Makefile in favor of CMake

This commit is contained in:
Joseph Henry
2017-12-15 16:26:27 -08:00
parent 0a7bdd5f8f
commit 8ec82b026a
5 changed files with 85 additions and 86 deletions

View File

@@ -60,16 +60,23 @@ For an example using only the [Virtual Layer 2](https://www.zerotier.com/manual.
***
### Building (linux, macos, bsd, win, ios)
### Building using CMake (recommended)
```
git submodule init
git submodule update
make static_lib
make tests
```
All targets will output to `build/`. Complete instructions [here](BUILDING.md)
We recommend using [CMake](https://cmake.org/) for its extensive cross-platform build support.
```
git submodule init
git submodule update
cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=DEBUG
cmake --build -build
```
Builds are placed in `bin\` and `bin\lib`. Change `CMAKE_BUILD_TYPE` to `RELEASE` for a smaller and optmized build.
### Installing/Uninstalling the library
- Install: `make install`
- Uninstall: `xargs rm < install_manifest.txt`
***