+# $OpenLDAP$
##
## Makefile for LDAP tools
##
LDAP_INCDIR= ../../include
LDAP_LIBDIR= ../../libraries
-XLIBS = -lldif -lldap -llber -llutil
-XXLIBS = $(KRB_LIBS) $(LUTIL_LIBS)
+NT_DYN_DEFS = -DLIBLBER_DECL=dllimport -DLIBLDAP_DECL=dllimport
+CPPFLAGS = $(@PLAT@_@LIB_LINKAGE@_DEFS)
+
+XLIBS = -llutil -lldif -lldap -llber
+XXLIBS = $(SECURITY_LIBS) $(LDIF_LIBS) $(LUTIL_LIBS)
XSRCS = ldsversion.c ldmversion.c lddversion.c ldrversion.c ldpversion.c
$(MKVERSION) ldapmodrdn > $@
install-local: FORCE
- -$(MKDIR) $(bindir)
- $(LTINSTALL) $(INSTALLFLAGS) -m 755 ldapsearch $(bindir)
- $(LTINSTALL) $(INSTALLFLAGS) -m 755 ldapmodify $(bindir)
- $(LTINSTALL) $(INSTALLFLAGS) -m 755 ldapdelete $(bindir)
- $(LTINSTALL) $(INSTALLFLAGS) -m 755 ldapmodrdn $(bindir)
- $(LTINSTALL) $(INSTALLFLAGS) -m 755 ldappasswd $(bindir)
- $(RM) $(bindir)/ldapadd$(EXEEXT)
- $(LN) $(bindir)/ldapmodify$(EXEEXT) $(bindir)/ldapadd$(EXEEXT)
+ -$(MKDIR) $(DESTDIR)$(bindir)
+ @( \
+ for prg in $(PROGRAMS); do \
+ $(LTINSTALL) $(INSTALLFLAGS) -m 755 $$prg$(EXEEXT) \
+ $(DESTDIR)$(bindir); \
+ done \
+ )
+ $(RM) $(DESTDIR)$(bindir)/ldapadd$(EXEEXT)
+ $(LN) $(DESTDIR)$(bindir)/ldapmodify$(EXEEXT) $(DESTDIR)$(bindir)/ldapadd$(EXEEXT)
+