2 ## Makefile.in for slurpd
6 SRCS = admin.c args.c ch_malloc.c config.c detach.c \
7 fm.c globals.c ldap_op.c lock.c main.c re.c \
8 reject.c replica.c replog.c ri.c rq.c sanity.c st.c \
10 OBJS = admin.o args.o ch_malloc.o config.o detach.o \
11 fm.o globals.o ldap_op.o lock.o main.o re.o \
12 reject.o replica.o replog.o ri.o rq.o sanity.o st.o \
15 VINCLUDEDIR= -I../../include
16 VLIBDIR= ../../libraries
19 BUILD_OPT = "--enable-slurpd"
20 BUILD_SRV = @BUILD_SLURPD@
24 XDEFS = @SLURPD_DEFS@ @LTHREAD_DEFS@
25 XLIBS = @SLURPD_LIBS@ -llthread @LTHREAD_LIBS@
28 $(CC) $(LDFLAGS) -o $@ $(OBJS) version.o $(LIBS)
30 version.c: $(OBJS) $(LDAP_LIBDIR)/liblber.a $(LDAP_LIBDIR)/libldap.a
32 (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
33 t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
34 -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
35 -e "s|%VERSION%|$${v}|" \
36 < $(srcdir)/Version.c > $@)
39 @-$(MKDIR) -p $(libexecdir)
40 $(INSTALL) $(INSTALLFLAGS) -m 755 slurpd $(libexecdir)