diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..dc55e2f --- /dev/null +++ b/Makefile @@ -0,0 +1,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" |