2 ## Makefile.in for slurpd
10 SRCS = admin.c args.c ch_malloc.c config.c \
11 fm.c globals.c ldap_op.c lock.c main.c re.c \
12 reject.c replica.c replog.c ri.c rq.c sanity.c st.c \
14 OBJS = admin.o args.o ch_malloc.o config.o \
15 fm.o globals.o ldap_op.o lock.o main.o re.o \
16 reject.o replica.o replog.o ri.o rq.o sanity.o st.o \
19 LDAP_INCDIR= ../../include
20 LDAP_LIBDIR= ../../libraries
22 BUILD_OPT = "--enable-slurpd"
23 BUILD_SRV = @BUILD_SLURPD@
27 # $(LTHREAD_LIBS) must be last!
28 XLIBS = -lldif -lldap -llber -llthread -llutil
29 XXLIBS = $(SLURPD_LIBS) $(KRB_LIBS) $(LUTIL_LIBS)
30 XXXLIBS = $(LTHREAD_LIBS)
33 $(LTLINK) -o $@ $(OBJS) version.o $(LIBS)
36 $(LTLINK) -static -o $@ $(OBJS) version.o $(LIBS)
38 version.c: $(OBJS) $(LDAP_LIBDEPEND) $(LDAP_LIBTHREAD_DEPEND)
40 (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
41 t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
42 -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
43 -e "s|%VERSION%|$${v}|" \
44 < $(srcdir)/Version.c > $@)
46 install-local-srv: FORCE
47 @-$(MKDIR) $(libexecdir)
48 $(LTINSTALL) $(INSTALLFLAGS) -m 755 slurpd $(libexecdir)