b8cba406f2
- TELNETOBJDIR is gone. `buildworld' already installs libtelnet.a in ${WORLDTMP}/usr/lib, and we have LIBRARY_PATH pointing there. - SSHDIR (formerly SSHSRC) is now shared between all SSH modules. New LIBSSH is introduced for libssh.a (an internal static lib). Previously, build without prior `obj' was broken; SSH modules always looked for libssh.a in ${.OBJDIR}. Also, the dependancies on the libssh.a were missing. - libtelnet/ did not install the crypto version of telnet.h into /usr/include/arpa. - Removed BINOWN, BINMODE, BINDIR and SRCS with default values. Reviewed by: markm - MAN[1-9] -> MAN.
38 lines
920 B
Makefile
38 lines
920 B
Makefile
# $FreeBSD$
|
|
#
|
|
|
|
LIB= ssh
|
|
SRCS= authfd.c authfile.c bufaux.c buffer.c canohost.c channels.c \
|
|
cipher.c compat.c compress.c crc32.c deattack.c \
|
|
hostfile.c log.c match.c mpaux.c nchan.c packet.c readpass.c \
|
|
rsa.c tildexpand.c ttymodes.c uidswap.c xmalloc.c atomicio.c \
|
|
key.c dispatch.c dsa.c kex.c hmac.c uuencode.c util.c \
|
|
cli.c rijndael.c
|
|
|
|
NOPIC= yes
|
|
INTERNALLIB= yes
|
|
INTERNALSTATICLIB= yes
|
|
|
|
.if defined(COMPAT_GETADDRINFO)
|
|
SRCS+= getaddrinfo.c getnameinfo.c name6.c rcmd.c bindresvport.c
|
|
.endif
|
|
|
|
.if defined(MAKE_KERBEROS4) && \
|
|
((${MAKE_KERBEROS4} == "yes") || (${MAKE_KERBEROS4} == "YES"))
|
|
CFLAGS+= -DKRB4
|
|
.endif # MAKE_KERBEROS4
|
|
|
|
.if defined(MAKE_KERBEROS5) && \
|
|
((${MAKE_KERBEROS5} == "yes") || (${MAKE_KERBEROS5} == "YES"))
|
|
CFLAGS+= -DKRB5
|
|
.endif # MAKE_KERBEROS5
|
|
|
|
CFLAGS+= -DSKEY
|
|
DPADD+= ${LIBOPIE}
|
|
LDADD+= -lopie
|
|
SRCS+= auth-skey.c auth2-skey.c
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
.PATH: ${SSHDIR} ${SSHDIR}/lib
|