mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-26 03:42:07 +00:00
c6efa8a91a
markus@ This will allow us to test U2F/FIDO2 support in OpenSSH without requiring real hardware. ok markus@ OpenBSD-Regress-ID: 88b309464b8850c320cf7513f26d97ee1fdf9aae
68 lines
1.4 KiB
Makefile
68 lines
1.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.1 2019/11/26 23:41:23 djm Exp $
|
|
|
|
.include <bsd.own.mk>
|
|
.include <bsd.obj.mk>
|
|
|
|
PROG= sk-dummy.so
|
|
NOMAN=
|
|
|
|
SSHREL=../../../../../usr.bin/ssh
|
|
.PATH: ${.CURDIR}/${SSHREL}
|
|
|
|
SRCS=sk-dummy.c
|
|
# From usr.bin/ssh
|
|
SRCS+=ed25519.c hash.c ge25519.c fe25519.c sc25519.c verify.c
|
|
SRCS+=digest-openssl.c ssherr.c fatal.c sshbuf.c log.c cleanup.c
|
|
OPENSSL?= yes
|
|
|
|
CFLAGS+= -fPIC
|
|
|
|
.if (${OPENSSL:L} == "yes")
|
|
CFLAGS+= -DWITH_OPENSSL
|
|
.endif
|
|
|
|
# enable warnings
|
|
WARNINGS=Yes
|
|
|
|
DEBUG=-g
|
|
CFLAGS+= -fstack-protector-all
|
|
CDIAGFLAGS= -Wall
|
|
CDIAGFLAGS+= -Wextra
|
|
CDIAGFLAGS+= -Werror
|
|
CDIAGFLAGS+= -Wchar-subscripts
|
|
CDIAGFLAGS+= -Wcomment
|
|
CDIAGFLAGS+= -Wformat
|
|
CDIAGFLAGS+= -Wformat-security
|
|
CDIAGFLAGS+= -Wimplicit
|
|
CDIAGFLAGS+= -Winline
|
|
CDIAGFLAGS+= -Wmissing-declarations
|
|
CDIAGFLAGS+= -Wmissing-prototypes
|
|
CDIAGFLAGS+= -Wparentheses
|
|
CDIAGFLAGS+= -Wpointer-arith
|
|
CDIAGFLAGS+= -Wreturn-type
|
|
CDIAGFLAGS+= -Wshadow
|
|
CDIAGFLAGS+= -Wsign-compare
|
|
CDIAGFLAGS+= -Wstrict-aliasing
|
|
CDIAGFLAGS+= -Wstrict-prototypes
|
|
CDIAGFLAGS+= -Wswitch
|
|
CDIAGFLAGS+= -Wtrigraphs
|
|
CDIAGFLAGS+= -Wuninitialized
|
|
CDIAGFLAGS+= -Wunused
|
|
CDIAGFLAGS+= -Wno-unused-parameter
|
|
.if ${COMPILER_VERSION:L} != "gcc3"
|
|
CDIAGFLAGS+= -Wold-style-definition
|
|
.endif
|
|
|
|
CFLAGS+=-I${.CURDIR}/${SSHREL}
|
|
|
|
.if (${OPENSSL:L} == "yes")
|
|
LDADD+= -lcrypto
|
|
DPADD+= ${LIBCRYPTO}
|
|
.endif
|
|
|
|
$(PROG): $(OBJS)
|
|
$(CC) $(LDFLAGS) -shared -o $@ $(OBJS) $(LDADD)
|
|
|
|
.include <bsd.prog.mk>
|
|
|