# $NetBSD: Makefile.inc,v 1.14.4.1 2023/12/25 12:30:59 martin Exp $ WARNS?= 4 .include USE_FORT?= yes # network client/server WITH_OPENSSL=1 SSHDIST?= ${NETBSDSRCDIR}/crypto/external/bsd/openssh/dist CPPFLAGS+=-I${SSHDIST} CPPFLAGS+=-D_OPENBSD_SOURCE CPPFLAGS+=-DHAVE_DLOPEN CPPFLAGS+=-DHAVE_HEADER_AD CPPFLAGS+=-DHAVE_LOGIN_CAP CPPFLAGS+=-DHAVE_STDLIB_H .if ${HAVE_OPENSSL} < 11 CPPFLAGS+=-DOPENSSL_API_COMPAT=0x10100000L .endif CPPFLAGS+=-DWITH_OPENSSL -DENABLE_PKCS11 -DWITH_XMSS -DWITH_ZLIB .if !defined(NOPIC) CPPFLAGS+=-DHAVE_DLOPEN .endif .PATH: ${SSHDIST} .if (${USE_PAM} != "no") CPPFLAGS+=-DUSE_PAM .else # USE_PAM == no .if (${USE_SKEY} != "no") CPPFLAGS+=-DSKEY .endif .endif # USE_PAM == no .if (${USE_KERBEROS} != "no") CPPFLAGS+=-DGSSAPI CPPFLAGS+=-DKRB5 -DHEIMDAL .endif .if (${USE_LDAP} != "no") CPPFLAGS+=-DWITH_LDAP_PUBKEY .endif CPPFLAGS+=-DX11BASE=\"/usr/X11R7\" CPPFLAGS+=-DSUPPORT_UTMP -DSUPPORT_UTMPX CPPFLAGS+=-DLIBWRAP CPPFLAGS+=-Dppoll=pollts