2 ## Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
3 ## COPYING RESTRICTIONS APPLY, see COPYRIGHT file
5 ## Makefile.in for slurpd
14 NT_OBJS = nt_svc.o ../../libraries/liblutil/slapdmsg.res
16 SRCS = admin.c args.c ch_malloc.c config.c \
17 fm.c globals.c ldap_op.c lock.c main.c re.c \
18 reject.c replica.c replog.c ri.c rq.c sanity.c st.c \
20 OBJS = admin.o args.o ch_malloc.o config.o \
21 fm.o globals.o ldap_op.o lock.o main.o re.o \
22 reject.o replica.o replog.o ri.o rq.o sanity.o st.o \
25 LDAP_INCDIR= ../../include
26 LDAP_LIBDIR= ../../libraries
28 BUILD_OPT = "--enable-slurpd"
29 BUILD_SRV = @BUILD_SLURPD@
31 all-local-srv: $(PROGRAMS)
33 # $(LTHREAD_LIBS) must be last!
35 XXLIBS = $(SLURPD_LIBS) $(SECURITY_LIBS) \
36 $(LDIF_LIBS) $(LUTIL_LIBS)
37 XXXLIBS = $(LTHREAD_LIBS)
40 $(LTLINK) -o $@ $(OBJS) version.o $(LIBS)
43 $(LTLINK) -static -o $@ $(OBJS) version.o $(LIBS)
45 version.c: $(OBJS) $(SLURPD_L)
47 $(MKVERSION) slurpd > $@
49 install-local-srv: FORCE
50 -$(MKDIR) $(DESTDIR)$(libexecdir)
51 @-$(INSTALL) -m 700 -d $(DESTDIR)$(localstatedir)/openldap-slurp
53 for prg in $(PROGRAMS); do \
54 $(LTINSTALL) $(INSTALLFLAGS) -s -m 755 $$prg$(EXEEXT) \
55 $(DESTDIR)$(libexecdir); \