mirror of
https://github.com/opnsense/src.git
synced 2026-02-15 16:48:36 -05:00
Make sure everything linking to a privatelib and/or an internallib does it directly from the OBJDIR rather than DESTDIR. Add src.libnames.mk so bsd.libnames.mk is not polluted by libraries not existsing in final installation Introduce the LD* variable which is what ld(1) is expecting (via LDADD) to link to internal/privatelib Directly link to the .so in case of private library to avoid having to complexify LDFLAGS. Phabric: https://phabric.freebsd.org/D553 Reviewed by: imp, emaste
24 lines
432 B
Makefile
24 lines
432 B
Makefile
# PAM module for SSH
|
|
# $FreeBSD$
|
|
|
|
SSHDIR= ${.CURDIR}/../../../../crypto/openssh
|
|
|
|
LIB= pam_ssh
|
|
MAN= pam_ssh.8
|
|
SRCS= pam_ssh.c
|
|
|
|
# required when linking with a dynamic libssh
|
|
SRCS+= roaming_dummy.c
|
|
|
|
WARNS?= 3
|
|
CFLAGS+= -I${SSHDIR} -include ssh_namespace.h
|
|
|
|
DPADD= ${LIBSSH} ${LIBCRYPTO} ${LIBCRYPT}
|
|
LDADD= ${LDSSH} -lcrypto -lcrypt
|
|
USEPRIVATELIB= ssh
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
.PATH: ${SSHDIR}
|
|
|
|
${OBJS} ${POBJS} ${SOBJS}: ssh_namespace.h
|