-XSRCS = version.c
-SRCS = init.c config.c search.c bind.c unbind.c add.c compare.c delete.c \
- modify.c modrdn.c
-OBJS = init.o config.o search.o bind.o unbind.o add.o compare.o delete.o \
- modify.o modrdn.o
+# $OpenLDAP$
+
+SRCS = init.c config.c search.c bind.c unbind.c add.c compare.c \
+ delete.c modify.c modrdn.c group.c attribute.c \
+ suffixmassage.c map.c
+OBJS = init.lo config.lo search.lo bind.lo unbind.lo add.lo compare.lo \
+ delete.lo modify.lo modrdn.lo group.lo attribute.lo \
+ suffixmassage.lo map.lo
LDAP_INCDIR= ../../../include
LDAP_LIBDIR= ../../../libraries
BUILD_OPT = "--enable-ldap"
-BUILD_SRV = @BUILD_LDAP@
+BUILD_MOD = @BUILD_LDAP@
+BUILD_MOD_DYNAMIC = @BUILD_LDAP_DYNAMIC@
-PROGRAMS = libback-ldap.a
+mod_DEFS = -DSLAPD_IMPORT
+MOD_DEFS = $(@BUILD_LDAP@_DEFS)
-XINCPATH = -I.. -I$(srcdir)/..
+shared_LDAP_LIBS = $(LDAP_LIBLDAP_R_LA) $(LDAP_LIBLBER_LA)
+NT_LINK_LIBS = -L.. -lslapd $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
+UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
-all-local-srv: FORCE
- $(MAKE) $(MFLAGS) libback-ldap.a
+LIBBASE = back_ldap
+
+XINCPATH = -I.. -I$(srcdir)/..
+XDEFS = $(MODULES_CPPFLAGS)
-libback-ldap.a: version.o
- $(AR) ruv $@ $(OBJS) version.o
- @$(RANLIB) $@
- @touch ../.backend
+all-local-lib: ../.backend
-version.c: $(OBJS) $(LDAP_LIBDEPEND)
- @-$(RM) $@
- $(MKVERSION) back-ldap > $@
+../.backend: lib$(LIBBASE).a
+ @touch $@