Install Monocypher as a precompiled library
masterYou can build Monocypher as a library and link against it.
- Run
maketo build the library. - Use the header
src/monocypher.hand eitherlib/libmonocypher.a(static) orlib/libmonocypher.so(shared).
Default compiler settings are gcc -std=c99 with flags -pedantic -Wall -Wextra -O3 -march=native. To use a different compiler or flags, pass them to make:
$ make CC="clang -std=c11" CFLAGS="-O2"$ make CC="clang -std=c11" CFLAGS="-O2"