Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / bsd / openldap / bin / Makefile.inc
blobe3797e0a9632ba5452b121f0d893fef4e701c7db
1 #       $NetBSD: Makefile.inc,v 1.1 2008/05/22 13:57:47 lukem Exp $
3 .include "../openldap.mk"
5 BINDIR= /usr/bin
7 .PATH:  ${LDAP_DISTDIR}/clients/tools
8 .PATH:  ${LDAP_SRCDIR}/man
10 SRCS=   ${PROG}.c common.c
13 SRCS+=  version.c
14 CLEANFILES+= version.c
16 version.c: ../openldap.mk
17         ${_MKTARGET_CREATE}
18         ${LDAP_MKVERSION} -s ${PROG} > ${.TARGET}
21 LDADD+= -L${LDAPOBJDIR.lutil} -llutil
22 DPADD+= ${LDAPLIB.lutil}
24 LDADD+= -lldap
25 DPADD+= ${LIBLDAP}
27 .if (${MKPIC} == "no" || (defined(LDSTATIC) && ${LDSTATIC} != ""))
28 LDADD+= -llber
29 DPADD+= ${LIBLBER}
30 .if ${MKCRYPTO} != "no" 
31 DPADD+= ${LIBSSL} ${LIBCRYPTO}
32 LDADD+= -lssl -lcrypto
33 .endif
34 .endif