]> git.sur5r.net Git - openldap/blob - servers/slurpd/Makefile.in
Make sure openldap-slurp is created 700
[openldap] / servers / slurpd / Makefile.in
1 # $OpenLDAP$
2 ## Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
3 ## COPYING RESTRICTIONS APPLY, see COPYRIGHT file
4 ##
5 ## Makefile.in for slurpd
6 ##
7
8 UNIX_PRGS = slurpd
9
10 PROGRAMS = $(@PLAT@_PRGS)
11 XPROGRAMS = sslurpd
12
13 XSRCS   = version.c
14
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
21
22 LDAP_INCDIR= ../../include       
23 LDAP_LIBDIR= ../../libraries
24
25 BUILD_OPT = "--enable-slurpd"
26 BUILD_SRV = @BUILD_SLURPD@
27
28 all-local-srv:  $(PROGRAMS)
29
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)
35
36 slurpd: version.o
37         $(LTLINK) -o $@ $(OBJS) version.o $(LIBS)
38
39 sslurpd:        version.o
40         $(LTLINK) -static -o $@ $(OBJS) version.o $(LIBS)
41
42 version.c: $(OBJS) $(LDAP_LIBDEPEND) $(LDAP_LIBTHREAD_DEPEND)
43         @-$(RM) $@
44         $(MKVERSION) slurpd > $@
45
46 install-local-srv: FORCE
47         -$(MKDIR) $(DESTDIR)$(libexecdir)
48         @-$(INSTALL) -m 700 -d $(DESTDIR)$(localstatedir)/openldap-slurp
49         @(                                                              \
50             for prg in $(PROGRAMS); do                                  \
51                 $(LTINSTALL) $(INSTALLFLAGS) -s -m 755 $$prg$(EXEEXT)   \
52                     $(DESTDIR)$(libexecdir);                            \
53             done                                                        \
54         )
55