NetBSD/external/bsd/openldap/bin/Makefile.inc

38 lines
665 B
Makefile

# $NetBSD: Makefile.inc,v 1.3 2010/03/08 05:23:41 lukem Exp $
.include "../openldap.mk"
BINDIR= /usr/bin
.PATH: ${LDAP_DISTDIR}/clients/tools
.PATH: ${LDAP_SRCDIR}/man
SRCS= ${PROG}.c
.if !defined(NO_COMMON_C)
SRCS+= common.c
.endif
SRCS+= version.c
CLEANFILES+= version.c
version.c: ../openldap.mk
${_MKTARGET_CREATE}
${LDAP_MKVERSION} -s ${PROG} > ${.TARGET}
LDADD+= -L${LDAPOBJDIR.lutil} -llutil
DPADD+= ${LDAPLIB.lutil}
LDADD+= -lldap
DPADD+= ${LIBLDAP}
.if (${MKPIC} == "no" || (defined(LDSTATIC) && ${LDSTATIC} != ""))
LDADD+= -llber
DPADD+= ${LIBLBER}
.if ${MKCRYPTO} != "no"
DPADD+= ${LIBSSL} ${LIBCRYPTO}
LDADD+= -lssl -lcrypto
.endif
.endif