1 # $NetBSD: Makefile,v 1.2 2021/12/29 18:13:43 christos Exp $ 2 3 .include <bsd.init.mk> 4 5 SLAPD= ${LDAP_DISTDIR}/servers/slapd 6 .PATH:${SLAPD} ${SLAPD}/back-ldif ${SLAPD}/back-monitor \ 7 ${SLAPD}/overlays 8 9 CPPFLAGS+=-I${SLAPD} -I${SLAPD}/back-monitor 10 11 MAN=slapd.8 slapd.conf.5 12 PROG = slapd 13 TOOLS=slapadd slapcat slapdn slapindex slapmodify slappasswd slaptest \ 14 slapauth slapacl slapschema 15 .for tool in ${TOOLS} 16 LINKS+= ${BINDIR}/slapd ${BINDIR}/${tool} 17 MAN+=${tool}.8 18 .endfor 19 20 SRCS += \ 21 main.c globals.c bconfig.c config.c daemon.c \ 22 connection.c search.c filter.c add.c cr.c \ 23 attr.c entry.c backend.c result.c operation.c \ 24 dn.c compare.c modify.c delete.c modrdn.c ch_malloc.c \ 25 value.c ava.c bind.c unbind.c abandon.c filterentry.c \ 26 phonetic.c acl.c str2filter.c aclparse.c init.c user.c \ 27 lock.c controls.c extended.c passwd.c proxyp.c \ 28 schema.c schema_check.c schema_init.c schema_prep.c \ 29 schemaparse.c ad.c at.c mr.c syntax.c oc.c saslauthz.c \ 30 oidm.c starttls.c index.c sets.c referral.c root_dse.c \ 31 sasl.c module.c mra.c mods.c sl_malloc.c zn_malloc.c limits.c \ 32 operational.c matchedValues.c cancel.c syncrepl.c \ 33 backglue.c backover.c ctxcsn.c ldapsync.c frontend.c \ 34 slapadd.c slapcat.c slapcommon.c slapdn.c slapindex.c \ 35 slappasswd.c slaptest.c slapauth.c slapacl.c component.c \ 36 aci.c txn.c slapschema.c slapmodify.c 37 38 SRCS+= backends.c 39 40 PROGDPLIBS+= \ 41 back_ldif ${.CURDIR}/../../lib/slapd/back-ldif \ 42 back_mdb ${.CURDIR}/../../lib/slapd/back-mdb \ 43 back_monitor ${.CURDIR}/../../lib/slapd/back-monitor \ 44 back_relay ${.CURDIR}/../../lib/slapd/back-relay \ 45 overlays ${.CURDIR}/../../lib/slapd/overlays \ 46 lunicode ${.CURDIR}/../../lib/liblunicode \ 47 rewrite ${.CURDIR}/../../lib/librewrite 48 49 __makeman: .USE 50 ${_MKTARGET_CREATE} 51 ${TOOL_SED} \ 52 -e s@LOCALSTATEDIR@/var@g \ 53 -e s@SYSCONFDIR@/etc/openldap@g \ 54 -e s@DATADIR@/usr/share@g \ 55 -e s@SBINDIR@/usr/sbin@g \ 56 -e s@BINDIR@/usr/bin@g \ 57 -e s@LIBDIR@/usr/lib@g \ 58 -e s@LIBEXECDIR@/usr/sbin@g \ 59 -e s@MODULEDIR@/usr/lib/openldap@g \ 60 -e s@ETCDIR@/etc/openldap@g ${.ALLSRC} > ${.TARGET} 61 62 .for man in ${MAN} 63 ${man}: ${LDAP_DISTDIR}/doc/man/man${man:E}/${man} __makeman 64 .endfor 65 66 .include <bsd.prog.mk> 67