blob: dc55e2f1f9ab07b5239b03d9d9d29f644075e165 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
BINDGEN ?= bindgen
LIBNITROKEY ?= $(wildcard libnitrokey-v*)
src/ffi.rs: ${LIBNITROKEY}/NK_C_API.h
${BINDGEN} \
--whitelist-function "NK_.*" \
--whitelist-var "NK_.*" \
--whitelist-var "MAXIMUM_STR_REPLY_LENGTH" \
--output "$@" \
"$<" \
-- "-I${LIBNITROKEY}/libnitrokey"
|