Makefile (b15c83408cb1e9b86c1895af0f097de05fc92ccf) | Makefile (c23e256eefa3a3fa4d991e28c9cad41c1bfef81b) |
---|---|
1# $FreeBSD$ | 1# $FreeBSD$ |
2# |
|
2 | 3 |
3.include <bsd.own.mk> | 4SSHSRC= ${.CURDIR}/../../../crypto/openssh |
4 5LIB= ssh | 5 6LIB= ssh |
6SHLIB_MAJOR= 5 7SRCS= acss.c authfd.c authfile.c bufaux.c bufbn.c buffer.c \ 8 canohost.c channels.c cipher.c cipher-acss.c cipher-aes.c \ 9 cipher-bf1.c cipher-ctr.c cipher-3des1.c cleanup.c \ 10 compat.c compress.c crc32.c deattack.c fatal.c hostfile.c \ 11 log.c match.c md-sha256.c moduli.c nchan.c packet.c \ 12 readpass.c rsa.c ttymodes.c xmalloc.c addrmatch.c \ 13 atomicio.c key.c dispatch.c kex.c mac.c uidswap.c uuencode.c misc.c \ 14 monitor_fdpass.c rijndael.c ssh-dss.c ssh-rsa.c dh.c kexdh.c \ 15 kexgex.c kexdhc.c kexgexc.c msg.c progressmeter.c dns.c \ 16 entropy.c umac.c jpake.c schnorr.c \ 17 ssh-pkcs11.c | 7SRCS= authfd.c authfile.c bufaux.c buffer.c canohost.c channels.c \ 8 cipher.c compat.c compress.c crc32.c deattack.c fingerprint.c \ 9 hostfile.c log.c match.c mpaux.c nchan.c packet.c readpass.c \ 10 rsa.c tildexpand.c ttymodes.c uidswap.c xmalloc.c atomicio.c \ 11 strlcat.c strlcpy.c |
18 | 12 |
19# gss-genr.c should be in $SRCS but causes linking problems, so it is 20# compiled directly into sshd instead. | 13NOPIC= yes |
21 | 14 |
22# Portability layer 23SRCS+= bsd-misc.c fmt_scaled.c getrrsetbyname.c glob.c \ 24 openssl-compat.c port-tun.c strtonum.c vis.c xcrypt.c xmmap.c 25# FreeBSD additions 26SRCS+= version.c | 15install: |
27 28.if defined(COMPAT_GETADDRINFO) 29SRCS+= getaddrinfo.c getnameinfo.c name6.c rcmd.c bindresvport.c 30.endif 31 | 16 17.if defined(COMPAT_GETADDRINFO) 18SRCS+= getaddrinfo.c getnameinfo.c name6.c rcmd.c bindresvport.c 19.endif 20 |
32CFLAGS+= -I${SSHDIR} -include ssh_namespace.h 33DPADD= ${LIBZ} 34LDADD= -lz | 21.include <bsd.own.mk> |
35 | 22 |
36.if ${MK_KERBEROS_SUPPORT} != "no" 37CFLAGS+= -DGSSAPI -DHAVE_GSSAPI_GSSAPI_H=1 -DKRB5 -DHEIMDAL 38DPADD+= ${LIBGSSAPI} ${LIBKRB5} ${LIBHX509} ${LIBASN1} ${LIBCOM_ERR} ${LIBMD} ${LIBROKEN} 39LDADD+= -lgssapi -lkrb5 -lhx509 -lasn1 -lcom_err -lmd -lroken 40.endif | 23.PATH: ${SSHSRC} 24.PATH: ${SSHSRC}/lib |
41 | 25 |
42NO_LINT= | 26.if defined(MAKE_KERBEROS4) && \ 27 ((${MAKE_KERBEROS4} == "yes") || (${MAKE_KERBEROS4} == "YES")) 28CFLAGS+= -DKRB4 29.endif # MAKE_KERBEROS4 |
43 | 30 |
44DPADD+= ${LIBCRYPTO} ${LIBCRYPT} 45LDADD+= -lcrypto -lcrypt | 31.if defined(MAKE_KERBEROS5) && \ 32 ((${MAKE_KERBEROS5} == "yes") || (${MAKE_KERBEROS5} == "YES")) 33CFLAGS+= -DKRB5 34.endif # MAKE_KERBEROS5 |
46 47.include <bsd.lib.mk> | 35 36.include <bsd.lib.mk> |
48 49.PATH: ${SSHDIR} ${SSHDIR}/openbsd-compat 50 51${OBJS} ${POBJS} ${SOBJS}: ssh_namespace.h | |