blob: 3e48cf8f5431f238c45ffeb9f729849465935617 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
BINDGEN ?= bindgen
LIBNITROKEY ?= $(wildcard libnitrokey-v*)
src/ffi.rs: ${LIBNITROKEY}/NK_C_API.h
quilt pop -af || true
${BINDGEN} \
--whitelist-function "NK_.*" \
--whitelist-var "NK_.*" \
--whitelist-var "MAXIMUM_STR_REPLY_LENGTH" \
--with-derive-default \
--output "$@" \
"$<" \
-- "-I${LIBNITROKEY}/libnitrokey"
quilt push -a --refresh
|