]> git.sur5r.net Git - openldap/blob - servers/slapd/tools/Makefile.in
dbe7e9bfd0c77e1be4efda954ba2872302a9cb1e
[openldap] / servers / slapd / tools / Makefile.in
1 # $OpenLDAP$
2 ## Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
3 ## COPYING RESTRICTIONS APPLY, see COPYRIGHT file
4 #-----------------------------------------------------------------------------
5 # Portions Copyright (c) 1995 Regents of the University of Michigan.
6 # All rights reserved.
7 #
8 # Redistribution and use in source and binary forms are permitted
9 # provided that this notice is preserved and that due credit is given
10 # to the University of Michigan at Ann Arbor. The name of the University
11 # may not be used to endorse or promote products derived from this
12 # software without specific prior written permission. This software
13 # is provided ``as is'' without express or implied warranty.
14 #
15 #       Stand alone LDAP server tools makefile
16 #
17 #-----------------------------------------------------------------------------
18 BUILD_LDBM = @BUILD_LDBM@
19
20 LDAP_INCDIR= ../../../include       
21 LDAP_LIBDIR= ../../../libraries
22
23 SLAP_DIR=../
24 SLAPD_MODULES = @SLAPD_MODULES_LIST@
25 XDEFS = $(MODULES_CPPFLAGS)
26 XLDFLAGS = $(MODULES_LDFLAGS) $(SLAPD_MODULES)
27
28 XLIBS = -lavl -lldif @LDBM_LIB@ -llutil -llunicode -lldap_r -llber
29 XXLIBS = $(SLAPD_LIBS) \
30         $(LDBM_LIBS) $(SECURITY_LIBS) \
31         $(LDIF_LIBS) $(LUTIL_LIBS)
32 XXXLIBS = $(MODULES_LIBS) $(LTHREAD_LIBS)
33
34 PROGRAMS=slapadd slapcat slapindex slappasswd
35
36 SRCS = mimic.c slapcommon.c \
37         slapadd.c slapcat.c slapindex.c slappasswd.c
38
39 SLAPD_OBJS = ../config.o ../ch_malloc.o ../backend.o ../charray.o \
40                 ../module.o ../aclparse.o ../filterentry.o ../schema.o \
41                 ../schema_check.o ../schema_init.o ../schema_prep.o \
42                 ../schemaparse.o ../ad.o ../at.o ../mr.o ../oc.o \
43                 ../syntax.o ../acl.o ../phonetic.o ../attr.o ../value.o \
44                 ../entry.o ../dn.o ../filter.o ../str2filter.o ../ava.o \
45                 ../init.o ../controls.o ../kerberos.o ../passwd.o \
46                 ../index.o ../extended.o ../starttls.o ../sets.o ../mra.o \
47                 ../referral.o ../backglue.o
48
49 SLAPOBJS = $(SLAPD_OBJS) slapcommon.o mimic.o
50
51 all-local: build-progs
52
53 build-progs: $(PROGRAMS)
54
55 #
56 # SLAP Tools
57 #
58 slapadd:        slapadd.o ../libbackends.a $(SLAPOBJS) $(SLAPD_LIBDEPEND) 
59         $(LTLINK) -o $@ slapadd.o $(SLAPOBJS) ../libbackends.a $(LIBS)
60
61 slapcat:        slapcat.o ../libbackends.a $(SLAPOBJS) $(SLAPD_LIBDEPEND) 
62         $(LTLINK) -o $@ slapcat.o $(SLAPOBJS) ../libbackends.a $(LIBS)
63
64 slapindex:      slapindex.o ../libbackends.a $(SLAPOBJS) $(SLAPD_LIBDEPEND) 
65         $(LTLINK) -o $@ slapindex.o $(SLAPOBJS) ../libbackends.a $(LIBS)
66
67 slappasswd:             slappasswd.o $(SLAPD_LIBDEPEND) 
68         $(LTLINK) -o $@ slappasswd.o $(LIBS)
69
70 clean-local: FORCE
71         $(RM) $(PROGRAMS) $(XPROGRAMS) $(XSRCS) *.o core .libs/* *.exe
72
73 depend-local: FORCE
74         $(MKDEP) $(DEFS) $(DEFINES) $(SRCS)
75
76 install-local: install-ldbm-$(BUILD_LDBM)
77
78 install-ldbm-no:
79
80 install-ldbm-yes install-ldbm-mod: FORCE
81         -$(MKDIR) $(DESTDIR)$(sbindir)
82         @for bin in $(PROGRAMS); do \
83                 $(LTINSTALL) $(INSTALLFLAGS) -s -m 755 \
84                         $$bin$(EXEEXT) $(DESTDIR)$(sbindir); \
85         done
86