1 # $NetBSD: Makefile,v 1.10 2023/05/13 13:04:03 riastradh 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 LDFLAGS+=-Wl,--version-script=${DIST}/src/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 hid.c \ 36 hid_netbsd.c \ 37 hid_unix.c \ 38 info.c \ 39 io.c \ 40 iso7816.c \ 41 largeblob.c \ 42 log.c \ 43 pin.c \ 44 random.c \ 45 reset.c \ 46 rs256.c \ 47 u2f.c 48 49 SRCS+= \ 50 explicit_bzero.c \ 51 freezero.c \ 52 recallocarray.c \ 53 timingsafe_bcmp.c 54 55 INCS+= \ 56 fido.h \ 57 fido/bio.h \ 58 fido/config.h \ 59 fido/credman.h \ 60 fido/eddsa.h \ 61 fido/err.h \ 62 fido/es256.h \ 63 fido/param.h \ 64 fido/rs256.h \ 65 fido/types.h 66 67 INCSDIR=/usr/include 68 69 MAN+= \ 70 eddsa_pk_new.3 \ 71 es256_pk_new.3 \ 72 fido_assert_allow_cred.3 \ 73 fido_assert_new.3 \ 74 fido_assert_set_authdata.3 \ 75 fido_assert_verify.3 \ 76 fido_bio_dev_get_info.3 \ 77 fido_bio_enroll_new.3 \ 78 fido_bio_info_new.3 \ 79 fido_bio_template.3 \ 80 fido_cbor_info_new.3 \ 81 fido_cred_exclude.3 \ 82 fido_cred_new.3 \ 83 fido_cred_set_authdata.3 \ 84 fido_cred_verify.3 \ 85 fido_credman_metadata_new.3 \ 86 fido_dev_enable_entattest.3 \ 87 fido_dev_get_assert.3 \ 88 fido_dev_get_touch_begin.3 \ 89 fido_dev_info_manifest.3 \ 90 fido_dev_largeblob_get.3 \ 91 fido_dev_make_cred.3 \ 92 fido_dev_open.3 \ 93 fido_dev_set_io_functions.3 \ 94 fido_dev_set_pin.3 \ 95 fido_init.3 \ 96 fido_strerr.3 \ 97 rs256_pk_new.3 98 99 SHLIB_MAJOR=4 100 SHLIB_MINOR=0 101 102 .SUFFIXES: .in 103 .in: 104 ${TOOL_SED} \ 105 -e s%@CMAKE_INSTALL_PREFIX@%/usr% \ 106 -e s%@CMAKE_INSTALL_LIBDIR@%lib% \ 107 -e s%@PROJECT_NAME@%libfido2% \ 108 -e s%@FIDO_VERSION@%${FIDO_VERSION}% \ 109 < ${.ALLSRC} > ${.TARGET} 110 111 FILESDIR=/usr/lib/pkgconfig 112 FILES+=libfido2.pc 113 FILESBUILD_libfido2.pc=yes 114 115 COPTS.assert.c+=-Wno-error=deprecated-declarations 116 COPTS.cbor.c+=-Wno-error=deprecated-declarations 117 COPTS.cred.c+=-Wno-error=deprecated-declarations 118 COPTS.ecdh.c+=-Wno-error=deprecated-declarations 119 COPTS.ecdh.c+=-Wno-error=pointer-sign 120 COPTS.es256.c+=-Wno-error=deprecated-declarations 121 COPTS.rs256.c+=-Wno-error=deprecated-declarations 122 123 .include <bsd.lib.mk> 124