dnl general LDAP arguments
LDAP_DEFS=
+LDAP_LIBS=
if test "$LDAP_DEBUG" = "yes" ; then
LDAP_DEFS="$LDAP_DEFS -DLDAP_DEBUG"
LDAP_DEFS="$LDAP_DEFS -DCLDAP"
fi
+LTHREAD_LIBS=
+if test "$opt_thread" = "no" ; then
+ LTHREAD_DEFS="-DNO_THREADS"
+else
+ LTHREAD_DEFS="-DNO_THREADS"
+fi
+
dnl ldapd arguments
LDAPD_DEFS=
+LDAPD_LIBS=
dnl slapd arguments
SLAPD_DEFS=
AC_SUBST(LDAPD_LIBS)
AC_SUBST(SLAPD_DEFS)
AC_SUBST(SLAPD_LIBS)
-AC_SUBST(SLUPPD_DEFS)
-AC_SUBST(SLUPPD_LIBS)
+AC_SUBST(SLURPD_DEFS)
+AC_SUBST(SLURPD_LIBS)
AC_SUBST(LDBM_DEFS)
AC_SUBST(LDBM_LIBS)
+AC_SUBST(LTHREAD_DEFS)
+AC_SUBST(LTHREAD_LIBS)
dnl AC_OUTPUT( \
dnl contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
dnl servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
dnl servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
dnl servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
-dnl servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
dnl Makefile:build/top.mk:Makefile.in:build/dir.mk, \
dnl [date > stamp-h])
libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk \
libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk \
servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
+servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
tests/Makefile:build/top.mk:tests/Makefile.in \
Makefile:build/top.mk:Makefile.in:build/dir.mk \
,[date > stamp-h])
--- /dev/null
+##
+## Makefile.in for slurpd
+##
+
+PROGRAMS = slurpd
+SRCS = admin.c args.c ch_malloc.c config.c detach.c \
+ fm.c globals.c ldap_op.c lock.c main.c re.c \
+ reject.c replica.c replog.c ri.c rq.c sanity.c st.c \
+ tsleep.c
+OBJS = admin.o args.o ch_malloc.o config.o detach.o \
+ fm.o globals.o ldap_op.o lock.o main.o re.o \
+ reject.o replica.o replog.o ri.o rq.o sanity.o st.o \
+ tsleep.o
+
+BUILD_OPT = "--enable-slurpd"
+BUILD_SRV = @BUILD_SLURPD@
+
+all-srv: slurpd
+
+XDEFS = @SLURPD_DEFS@ @LTHREAD_DEFS@
+XLIBS = @SLURPD_LIBS@ -llthread @LTHREAD_LIBS@
+
+slurpd: version.o
+ $(CC) $(LDFLAGS) -o $@ $(OBJS) version.o $(LIBS)
+
+version.c: $(OBJS) $(LDAP_LIBDIR)/liblber.a $(LDAP_LIBDIR)/libldap.a
+ $(RM) $@
+ (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
+ t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
+ -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
+ -e "s|%VERSION%|$${v}|" \
+ < Version.c > $@)
+
+install: install-srv FORCE
+ @-$(MKDIR) -p $(libexecdir)
+ $(INSTALL) $(INSTALLFLAGS) -m 755 slurpd $(libexecdir)
all: FORCE
@echo "Initiating LDAP tests..."; \
- test -d test-db || $(MKDIR) test-db ; \
- test -d test-repl || $(MKDIR) test-repl ; \
+ $(MKDIR) -p test-db test-repl ; \
$(SCRIPTSDIR)/all $(SCRIPTSDIR)
install: FORCE