1 # $NetBSD: Makefile,v 1.13 2025/06/02 14:01:49 christos Exp $ 2 3 NOLINT= 4 .include <bsd.own.mk> 5 .include <bsd.init.mk> 6 7 .PATH: ${DIST}/src ${DIST}/man ${DIST}/openbsd-compat 8 9 CPPFLAGS+= -D_FIDO_INTERNAL -I${DIST}/src 10 11 LDADD+=-lusbhid -lcbor -lz 12 DPADD+=${LIBUSBHID} ${LIBCBOR} ${LIBZ} 13 14 VERSION_MAP= export.gnu 15 16 LIB= fido2 17 18 SRCS+= \ 19 aes256.c \ 20 assert.c \ 21 authkey.c \ 22 bio.c \ 23 blob.c \ 24 buf.c \ 25 cbor.c \ 26 compress.c \ 27 config.c \ 28 cred.c \ 29 credman.c \ 30 dev.c \ 31 ecdh.c \ 32 eddsa.c \ 33 err.c \ 34 es256.c \ 35 es384.c \ 36 hid.c \ 37 hid_netbsd.c \ 38 hid_unix.c \ 39 info.c \ 40 io.c \ 41 iso7816.c \ 42 largeblob.c \ 43 log.c \ 44 pin.c \ 45 random.c \ 46 reset.c \ 47 rs1.c \ 48 rs256.c \ 49 time.c \ 50 tpm.c \ 51 touch.c \ 52 types.c \ 53 u2f.c 54 55 SRCS+= \ 56 explicit_bzero.c \ 57 freezero.c \ 58 recallocarray.c \ 59 timingsafe_bcmp.c 60 61 INCS+= \ 62 fido.h \ 63 fido/bio.h \ 64 fido/config.h \ 65 fido/credman.h \ 66 fido/eddsa.h \ 67 fido/err.h \ 68 fido/es256.h \ 69 fido/es384.h \ 70 fido/param.h \ 71 fido/rs256.h \ 72 fido/types.h 73 74 INCSDIR=/usr/include 75 76 MAN+= \ 77 eddsa_pk_new.3 \ 78 es256_pk_new.3 \ 79 es384_pk_new.3 \ 80 fido_assert_allow_cred.3 \ 81 fido_assert_new.3 \ 82 fido_assert_set_authdata.3 \ 83 fido_assert_verify.3 \ 84 fido_bio_dev_get_info.3 \ 85 fido_bio_enroll_new.3 \ 86 fido_bio_info_new.3 \ 87 fido_bio_template.3 \ 88 fido_cbor_info_new.3 \ 89 fido_cred_exclude.3 \ 90 fido_cred_new.3 \ 91 fido_cred_set_authdata.3 \ 92 fido_cred_verify.3 \ 93 fido_credman_metadata_new.3 \ 94 fido_dev_enable_entattest.3 \ 95 fido_dev_get_assert.3 \ 96 fido_dev_get_touch_begin.3 \ 97 fido_dev_info_manifest.3 \ 98 fido_dev_largeblob_get.3 \ 99 fido_dev_make_cred.3 \ 100 fido_dev_open.3 \ 101 fido_dev_set_io_functions.3 \ 102 fido_dev_set_pin.3 \ 103 fido_init.3 \ 104 fido_strerr.3 \ 105 rs256_pk_new.3 106 107 SHLIB_MAJOR=5 108 SHLIB_MINOR=1 109 110 .SUFFIXES: .in 111 .in: 112 ${TOOL_SED} \ 113 -e s%@CMAKE_INSTALL_PREFIX@%/usr% \ 114 -e s%@CMAKE_INSTALL_LIBDIR@%lib% \ 115 -e s%@PROJECT_NAME@%libfido2% \ 116 -e s%@FIDO_VERSION@%${FIDO_VERSION}% \ 117 < ${.ALLSRC} > ${.TARGET} 118 119 FILESDIR=/usr/lib/pkgconfig 120 FILES+=libfido2.pc 121 FILESBUILD_libfido2.pc=yes 122 123 COPTS.assert.c+=-Wno-error=deprecated-declarations 124 COPTS.cbor.c+=-Wno-error=deprecated-declarations 125 COPTS.cred.c+=-Wno-error=deprecated-declarations 126 COPTS.ecdh.c+=-Wno-error=deprecated-declarations 127 COPTS.ecdh.c+=-Wno-error=pointer-sign 128 COPTS.es256.c+=-Wno-error=deprecated-declarations 129 COPTS.es384.c+=-Wno-error=deprecated-declarations 130 COPTS.rs256.c+=-Wno-error=deprecated-declarations 131 132 .include <bsd.lib.mk> 133