1*8e28d849SEd Maste# $OpenBSD: Makefile,v 1.1 2024/12/04 16:42:49 djm Exp $ 2*8e28d849SEd Maste 3*8e28d849SEd Maste.include <bsd.own.mk> 4*8e28d849SEd Maste.include <bsd.obj.mk> 5*8e28d849SEd Maste 6*8e28d849SEd MastePROG= ssh-verify-attestation 7*8e28d849SEd MasteNOMAN= 8*8e28d849SEd Maste 9*8e28d849SEd MasteSSHREL=../../../../../usr.bin/ssh 10*8e28d849SEd Maste.PATH: ${.CURDIR}/${SSHREL} 11*8e28d849SEd Maste 12*8e28d849SEd MasteSRCS=ssh-verify-attestation.c 13*8e28d849SEd Maste# From usr.bin/ssh 14*8e28d849SEd MasteSRCS+=sshbuf-getput-basic.c sshbuf-getput-crypto.c sshbuf-misc.c sshbuf.c 15*8e28d849SEd MasteSRCS+=sshbuf-io.c atomicio.c sshkey.c authfile.c cipher.c log.c ssh-rsa.c 16*8e28d849SEd MasteSRCS+=ssh-dss.c ssh-ecdsa.c ssh-ed25519.c mac.c umac.c umac128.c hmac.c misc.c 17*8e28d849SEd MasteSRCS+=ssherr.c uidswap.c cleanup.c xmalloc.c match.c krl.c fatal.c 18*8e28d849SEd MasteSRCS+=addr.c addrmatch.c bitmap.c 19*8e28d849SEd MasteSRCS+=ed25519.c hash.c 20*8e28d849SEd MasteSRCS+=cipher-chachapoly.c chacha.c poly1305.c ssh-ecdsa-sk.c ssh-sk.c 21*8e28d849SEd MasteSRCS+=ssh-ed25519-sk.c sk-usbhid.c 22*8e28d849SEd Maste 23*8e28d849SEd MasteSRCS+=digest-openssl.c 24*8e28d849SEd Maste#SRCS+=digest-libc.c 25*8e28d849SEd MasteSRCS+=utf8.c 26*8e28d849SEd Maste 27*8e28d849SEd MasteOPENSSL?= yes 28*8e28d849SEd Maste 29*8e28d849SEd Maste.if (${OPENSSL:L} == "yes") 30*8e28d849SEd MasteCFLAGS+= -DWITH_OPENSSL 31*8e28d849SEd Maste.endif 32*8e28d849SEd Maste 33*8e28d849SEd Maste# enable warnings 34*8e28d849SEd MasteWARNINGS=Yes 35*8e28d849SEd Maste 36*8e28d849SEd MasteDEBUG=-g 37*8e28d849SEd MasteCFLAGS+= -fstack-protector-all 38*8e28d849SEd MasteCDIAGFLAGS= -Wall 39*8e28d849SEd MasteCDIAGFLAGS+= -Wextra 40*8e28d849SEd MasteCDIAGFLAGS+= -Werror 41*8e28d849SEd MasteCDIAGFLAGS+= -Wchar-subscripts 42*8e28d849SEd MasteCDIAGFLAGS+= -Wcomment 43*8e28d849SEd MasteCDIAGFLAGS+= -Wformat 44*8e28d849SEd MasteCDIAGFLAGS+= -Wformat-security 45*8e28d849SEd MasteCDIAGFLAGS+= -Wimplicit 46*8e28d849SEd MasteCDIAGFLAGS+= -Winline 47*8e28d849SEd MasteCDIAGFLAGS+= -Wmissing-declarations 48*8e28d849SEd MasteCDIAGFLAGS+= -Wmissing-prototypes 49*8e28d849SEd MasteCDIAGFLAGS+= -Wparentheses 50*8e28d849SEd MasteCDIAGFLAGS+= -Wpointer-arith 51*8e28d849SEd MasteCDIAGFLAGS+= -Wreturn-type 52*8e28d849SEd MasteCDIAGFLAGS+= -Wshadow 53*8e28d849SEd MasteCDIAGFLAGS+= -Wsign-compare 54*8e28d849SEd MasteCDIAGFLAGS+= -Wstrict-aliasing 55*8e28d849SEd MasteCDIAGFLAGS+= -Wstrict-prototypes 56*8e28d849SEd MasteCDIAGFLAGS+= -Wswitch 57*8e28d849SEd MasteCDIAGFLAGS+= -Wtrigraphs 58*8e28d849SEd MasteCDIAGFLAGS+= -Wuninitialized 59*8e28d849SEd MasteCDIAGFLAGS+= -Wunused 60*8e28d849SEd MasteCDIAGFLAGS+= -Wno-unused-parameter 61*8e28d849SEd Maste.if ${COMPILER_VERSION:L} != "gcc3" 62*8e28d849SEd MasteCDIAGFLAGS+= -Wold-style-definition 63*8e28d849SEd Maste.endif 64*8e28d849SEd Maste 65*8e28d849SEd MasteCFLAGS+=-I${.CURDIR}/${SSHREL} 66*8e28d849SEd Maste 67*8e28d849SEd Maste.if (${OPENSSL:L} == "yes") 68*8e28d849SEd MasteLDADD+= -lcrypto 69*8e28d849SEd MasteDPADD+= ${LIBCRYPTO} 70*8e28d849SEd Maste.endif 71*8e28d849SEd Maste 72*8e28d849SEd MasteLDADD+= -lfido2 -lcbor 73*8e28d849SEd MasteDPADD+= ${LIBFIDO2} ${LIBCBOR} 74*8e28d849SEd Maste 75*8e28d849SEd MasteLDADD+= -lutil 76*8e28d849SEd MasteDPADD+= ${LIBUTIL} 77*8e28d849SEd Maste 78*8e28d849SEd Maste.include <bsd.prog.mk> 79*8e28d849SEd Maste 80