]> git.sur5r.net Git - openldap/blob - servers/slurpd/Makefile.in
Don't defer abandon due to pending
[openldap] / servers / slurpd / Makefile.in
1 # Makefile.in for slurpd
2 # $OpenLDAP$
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 ##
5 ## Copyright 1998-2004 The OpenLDAP Foundation.
6 ## All rights reserved.
7 ##
8 ## Redistribution and use in source and binary forms, with or without
9 ## modification, are permitted only as authorized by the OpenLDAP
10 ## Public License.
11 ##
12 ## A copy of this license is available in the file LICENSE in the
13 ## top-level directory of the distribution or, alternatively, at
14 ## <http://www.OpenLDAP.org/license.html>.
15
16 PROGRAMS = slurpd
17 XPROGRAMS = sslurpd
18
19 XSRCS   = version.c
20
21 NT_SRCS = nt_svc.c
22 NT_OBJS = nt_svc.o ../../libraries/liblutil/slapdmsg.res
23
24 SRCS    =       admin.c args.c ch_malloc.c config.c \
25                 fm.c globals.c ldap_op.c lock.c main.c re.c \
26                 reject.c replica.c replog.c ri.c rq.c sanity.c st.c \
27                 $(@PLAT@_SRCS)
28 OBJS    =       admin.o args.o ch_malloc.o config.o \
29                 fm.o globals.o ldap_op.o lock.o main.o re.o \
30                 reject.o replica.o replog.o ri.o rq.o sanity.o st.o \
31                 $(@PLAT@_OBJS)
32
33 LDAP_INCDIR= ../../include       
34 LDAP_LIBDIR= ../../libraries
35
36 BUILD_OPT = "--enable-slurpd"
37 BUILD_SRV = @BUILD_SLURPD@
38
39 all-local-srv:  $(PROGRAMS)
40
41 # $(LTHREAD_LIBS) must be last!
42 XLIBS = $(SLURPD_L)
43 XXLIBS = $(SLURPD_LIBS) $(SECURITY_LIBS) $(LUTIL_LIBS)
44 XXXLIBS = $(LTHREAD_LIBS)
45
46 slurpd: version.o
47         $(LTLINK) -o $@ $(OBJS) version.o $(LIBS)
48
49 sslurpd:        version.o
50         $(LTLINK) -static -o $@ $(OBJS) version.o $(LIBS)
51
52 version.c: Makefile
53         @-$(RM) $@
54         $(MKVERSION) -s -n Versionstr slurpd > $@
55
56 version.o: version.c $(OBJS) $(SLURPD_L)
57
58 install-local-srv: FORCE
59         -$(MKDIR) $(DESTDIR)$(libexecdir)
60         @-$(INSTALL) -m 700 -d $(DESTDIR)$(localstatedir)/openldap-slurp
61         @(                                                              \
62             for prg in $(PROGRAMS); do                                  \
63                 $(LTINSTALL) $(INSTALLFLAGS) -s -m 755 $$prg$(EXEEXT)   \
64                     $(DESTDIR)$(libexecdir);                            \
65             done                                                        \
66         )
67