1# $NetBSD: Makefile.inc,v 1.3 2010/03/08 05:23:41 lukem Exp $ 2 3.include "../openldap.mk" 4 5BINDIR= /usr/bin 6 7.PATH: ${LDAP_DISTDIR}/clients/tools 8.PATH: ${LDAP_SRCDIR}/man 9 10SRCS= ${PROG}.c 11.if !defined(NO_COMMON_C) 12SRCS+= common.c 13.endif 14 15 16SRCS+= version.c 17CLEANFILES+= version.c 18 19version.c: ../openldap.mk 20 ${_MKTARGET_CREATE} 21 ${LDAP_MKVERSION} -s ${PROG} > ${.TARGET} 22 23 24LDADD+= -L${LDAPOBJDIR.lutil} -llutil 25DPADD+= ${LDAPLIB.lutil} 26 27LDADD+= -lldap 28DPADD+= ${LIBLDAP} 29 30.if (${MKPIC} == "no" || (defined(LDSTATIC) && ${LDSTATIC} != "")) 31LDADD+= -llber 32DPADD+= ${LIBLBER} 33.if ${MKCRYPTO} != "no" 34DPADD+= ${LIBSSL} ${LIBCRYPTO} 35LDADD+= -lssl -lcrypto 36.endif 37.endif 38