2 ## Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
3 ## COPYING RESTRICTIONS APPLY, see COPYRIGHT file
5 ## Makefile.in for slurpd
10 PROGRAMS = $(@PLAT@_PRGS)
15 SRCS = admin.c args.c ch_malloc.c config.c \
16 fm.c globals.c ldap_op.c lock.c main.c re.c \
17 reject.c replica.c replog.c ri.c rq.c sanity.c st.c
18 OBJS = admin.o args.o ch_malloc.o config.o \
19 fm.o globals.o ldap_op.o lock.o main.o re.o \
20 reject.o replica.o replog.o ri.o rq.o sanity.o st.o
22 LDAP_INCDIR= ../../include
23 LDAP_LIBDIR= ../../libraries
25 BUILD_OPT = "--enable-slurpd"
26 BUILD_SRV = @BUILD_SLURPD@
28 all-local-srv: $(PROGRAMS)
30 # $(LTHREAD_LIBS) must be last!
31 XLIBS = -lldif -lldap_r -llber -llutil
32 XXLIBS = $(SLURPD_LIBS) $(SECURITY_LIBS) \
33 $(LDIF_LIBS) $(LUTIL_LIBS)
34 XXXLIBS = $(LTHREAD_LIBS)
37 $(LTLINK) -o $@ $(OBJS) version.o $(LIBS)
40 $(LTLINK) -static -o $@ $(OBJS) version.o $(LIBS)
42 version.c: $(OBJS) $(LDAP_LIBDEPEND) $(LDAP_LIBTHREAD_DEPEND)
44 $(MKVERSION) slurpd > $@
46 install-local-srv: FORCE
47 -$(MKDIR) $(DESTDIR)$(libexecdir)
48 @-$(INSTALL) -m 700 -d $(DESTDIR)$(localstatedir)/openldap-slurp
50 for prg in $(PROGRAMS); do \
51 $(LTINSTALL) $(INSTALLFLAGS) -s -m 755 $$prg$(EXEEXT) \
52 $(DESTDIR)$(libexecdir); \