]> git.sur5r.net Git - openldap/blob - servers/slapd/tools/Makefile.in
Context CSN patch (1)
[openldap] / servers / slapd / tools / Makefile.in
1 # $OpenLDAP$
2 ## Copyright 1998-2003 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
19 LDAP_INCDIR= ../../../include       
20 LDAP_LIBDIR= ../../../libraries
21
22 SLAP_DIR=../
23 XDEFS = $(MODULES_CPPFLAGS)
24 XLDFLAGS = $(MODULES_LDFLAGS)
25
26 XLIBS = $(SLAPD_L) $(LDBM_LIBS)
27 XXLIBS = $(SLAPD_LIBS) \
28         $(LDBM_LIBS) $(SECURITY_LIBS) \
29         $(LDIF_LIBS) $(LUTIL_LIBS)
30 XXXLIBS = $(LTHREAD_LIBS)
31 SLAPI_DEP_LIBS = $(LIBS) $(SLAPI_LIBS) @LIBSLAPITOOLS@ $(MODULES_LIBS)
32
33 STATIC_DEPENDS=@SLAPD_NO_STATIC@ ../libbackends.a
34
35 PROGRAMS=slapadd slapcat slapindex slappasswd
36
37 SRCS = mimic.c slapcommon.c \
38         slapadd.c slapcat.c slapindex.c slappasswd.c
39
40 SLAPD_OBJS = ../globals.o ../config.o ../ch_malloc.o ../cr.o ../backend.o \
41                 ../module.o ../aclparse.o ../filterentry.o ../schema.o \
42                 ../schema_check.o ../schema_init.o ../schema_prep.o \
43                 ../schemaparse.o ../ad.o ../at.o ../mr.o ../oc.o \
44                 ../syntax.o ../acl.o ../phonetic.o ../attr.o ../value.o \
45                 ../entry.o ../dn.o ../filter.o ../str2filter.o ../ava.o \
46                 ../init.o ../controls.o ../kerberos.o ../passwd.o \
47                 ../index.o ../extended.o ../starttls.o ../sets.o ../mra.o \
48                 ../referral.o ../backglue.o ../oidm.o ../mods.o ../operation.o \
49                 ../cancel.o ../sl_malloc.o ../backover.o ../ctxcsn.o
50
51 SLAPOBJS = $(SLAPD_OBJS) slapcommon.o mimic.o
52
53 all-local: build-progs
54
55 build-progs: $(PROGRAMS)
56
57 #
58 # SLAP Tools
59 #
60 slapadd:        slapadd.o $(STATIC_DEPENDS) $(SLAPOBJS) $(SLAPD_L) 
61         $(LTLINK) -o $@ slapadd.o $(SLAPOBJS) $(STATIC_DEPENDS) \
62         $(SLAPI_DEP_LIBS)
63
64 slapcat:        slapcat.o $(STATIC_DEPENDS) $(SLAPOBJS) $(SLAPD_L) 
65         $(LTLINK) -o $@ slapcat.o $(SLAPOBJS) $(STATIC_DEPENDS) \
66         $(SLAPI_DEP_LIBS)
67
68 slapindex:      slapindex.o $(STATIC_DEPENDS) $(SLAPOBJS) $(SLAPD_L) 
69         $(LTLINK) -o $@ slapindex.o $(SLAPOBJS) $(STATIC_DEPENDS) \
70         $(SLAPI_DEP_LIBS)
71
72 slappasswd:             slappasswd.o $(SLAPD_L) 
73         $(LTLINK) -o $@ slappasswd.o $(LIBS)
74
75 clean-local: FORCE
76         $(RM) $(PROGRAMS) $(XPROGRAMS) $(XSRCS) *.o core .libs/* *.exe
77
78 depend-local: FORCE
79         $(MKDEP) $(DEFS) $(DEFINES) $(SRCS)
80
81 install-local: FORCE
82         -$(MKDIR) $(DESTDIR)$(sbindir)
83         @for bin in $(PROGRAMS); do \
84                 $(LTINSTALL) $(INSTALLFLAGS) -s -m 755 \
85                         $$bin$(EXEEXT) $(DESTDIR)$(sbindir); \
86         done
87