2021-09-13 13:37:42 +02:00
|
|
|
.PHONY: rlnlib
|
2021-09-13 16:42:26 +02:00
|
|
|
|
2022-07-04 13:01:54 -04:00
|
|
|
SHELL := bash # the shell used internally by Make
|
|
|
|
|
|
|
|
|
|
GOBIN ?= $(shell which go)
|
|
|
|
|
|
|
|
|
|
rlnlib-cross:
|
|
|
|
|
scripts/build-cross.sh
|
|
|
|
|
cd lib/rln && cbindgen --config ../cbindgen.toml --crate rln --output ../../rln/librln.h --lang c
|
|
|
|
|
|
2021-09-13 13:37:42 +02:00
|
|
|
rlnlib:
|
2022-07-04 13:01:54 -04:00
|
|
|
scripts/build.sh
|
2021-09-13 23:19:40 +02:00
|
|
|
cd lib/rln && cbindgen --config ../cbindgen.toml --crate rln --output ../../rln/librln.h --lang c
|
2022-07-04 13:01:54 -04:00
|
|
|
|
|
|
|
|
test:
|
|
|
|
|
LD_LIBRARY_PATH="${PWD}/libs/x86_64-unknown-linux-gnu/" go test ./... -count 1 -v
|