]> git.sur5r.net Git - openldap/commitdiff
Added Makefile template for slurpd.
authorKurt Zeilenga <kurt@openldap.org>
Thu, 17 Sep 1998 19:15:20 +0000 (19:15 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 17 Sep 1998 19:15:20 +0000 (19:15 +0000)
Added NO_THREAD support to configure.in.  (Still need thread lib detection)

configure.in
servers/slurpd/Makefile.in [new file with mode: 0644]
tests/Makefile.in

index b913882d9a48a1284f8b04101732743e77146113..c1095c19390fa6fbb92eebb11786ecd8cba6ed33 100644 (file)
@@ -128,6 +128,7 @@ AC_SUBST(BUILD_SLURPD)
 
 dnl general LDAP arguments
 LDAP_DEFS=
+LDAP_LIBS=
 
 if test "$LDAP_DEBUG" = "yes" ; then
        LDAP_DEFS="$LDAP_DEFS -DLDAP_DEBUG"
@@ -145,8 +146,16 @@ if test "$LDAP_CLDAP" = "yes" ; then
        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=
@@ -327,10 +336,12 @@ AC_SUBST(LDAPD_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 \
@@ -343,7 +354,6 @@ dnl servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Ma
 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])
 
@@ -366,6 +376,7 @@ libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.
 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])
diff --git a/servers/slurpd/Makefile.in b/servers/slurpd/Makefile.in
new file mode 100644 (file)
index 0000000..b3c7a9d
--- /dev/null
@@ -0,0 +1,36 @@
+##
+## 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)
index 517feeea030b72210e1de24def0df7c6e69251d2..00c45b62d5b51788ce1b67fd9e8c67f9f7007aa2 100644 (file)
@@ -8,8 +8,7 @@ SCRIPTSDIR=./scripts
 
 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