2003-11-25 21:58:56 -05:00
|
|
|
# Makefile.in for slapd tools
|
1999-09-08 18:52:19 -04:00
|
|
|
# $OpenLDAP$
|
2003-11-26 11:52:33 -05:00
|
|
|
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
|
|
|
|
|
##
|
2004-01-01 14:15:16 -05:00
|
|
|
## Copyright 1998-2004 The OpenLDAP Foundation.
|
2003-11-25 21:58:56 -05:00
|
|
|
## All rights reserved.
|
|
|
|
|
##
|
|
|
|
|
## Redistribution and use in source and binary forms, with or without
|
|
|
|
|
## modification, are permitted only as authorized by the OpenLDAP
|
|
|
|
|
## Public License.
|
|
|
|
|
##
|
|
|
|
|
## A copy of this license is available in the file LICENSE in the
|
|
|
|
|
## top-level directory of the distribution or, alternatively, at
|
|
|
|
|
## <http://www.OpenLDAP.org/license.html>.
|
1998-10-24 21:41:42 -04:00
|
|
|
|
|
|
|
|
LDAP_INCDIR= ../../../include
|
|
|
|
|
LDAP_LIBDIR= ../../../libraries
|
|
|
|
|
|
1999-08-07 03:58:11 -04:00
|
|
|
SLAP_DIR=../
|
1999-06-24 13:06:34 -04:00
|
|
|
XDEFS = $(MODULES_CPPFLAGS)
|
2002-05-17 23:52:46 -04:00
|
|
|
XLDFLAGS = $(MODULES_LDFLAGS)
|
1999-06-24 13:06:34 -04:00
|
|
|
|
2002-02-10 17:42:51 -05:00
|
|
|
XLIBS = $(SLAPD_L) $(LDBM_LIBS)
|
2000-06-25 17:40:13 -04:00
|
|
|
XXLIBS = $(SLAPD_LIBS) \
|
2003-11-28 17:01:44 -05:00
|
|
|
$(LDBM_LIBS) $(SECURITY_LIBS) $(LUTIL_LIBS)
|
2003-04-07 05:33:10 -04:00
|
|
|
XXXLIBS = $(LTHREAD_LIBS)
|
2003-09-23 02:11:38 -04:00
|
|
|
SLAPI_DEP_LIBS = $(LIBS) @LIBSLAPITOOLS@ @SLAPI_LIBS@ $(MODULES_LIBS)
|
1999-01-09 21:25:41 -05:00
|
|
|
|
2002-09-04 06:58:25 -04:00
|
|
|
STATIC_DEPENDS=@SLAPD_NO_STATIC@ ../libbackends.a
|
|
|
|
|
|
2000-06-25 18:01:42 -04:00
|
|
|
PROGRAMS=slapadd slapcat slapindex slappasswd
|
1999-02-08 06:42:14 -05:00
|
|
|
|
2000-06-25 18:01:42 -04:00
|
|
|
SRCS = mimic.c slapcommon.c \
|
|
|
|
|
slapadd.c slapcat.c slapindex.c slappasswd.c
|
1999-08-17 15:00:59 -04:00
|
|
|
|
2003-02-28 19:14:32 -05:00
|
|
|
SLAPD_OBJS = ../globals.o ../config.o ../ch_malloc.o ../cr.o ../backend.o \
|
2001-12-06 23:03:25 -05:00
|
|
|
../module.o ../aclparse.o ../filterentry.o ../schema.o \
|
|
|
|
|
../schema_check.o ../schema_init.o ../schema_prep.o \
|
|
|
|
|
../schemaparse.o ../ad.o ../at.o ../mr.o ../oc.o \
|
|
|
|
|
../syntax.o ../acl.o ../phonetic.o ../attr.o ../value.o \
|
|
|
|
|
../entry.o ../dn.o ../filter.o ../str2filter.o ../ava.o \
|
2003-12-29 20:26:38 -05:00
|
|
|
../init.o ../controls.o ../passwd.o \
|
|
|
|
|
../index.o ../extended.o ../sets.o ../mra.o \
|
2003-01-24 19:36:50 -05:00
|
|
|
../referral.o ../backglue.o ../oidm.o ../mods.o ../operation.o \
|
2003-12-29 20:26:38 -05:00
|
|
|
../sl_malloc.o ../backover.o ../ctxcsn.o ../syncrepl.o \
|
2003-11-09 21:44:25 -05:00
|
|
|
../ldapsync.o ../sessionlog.o
|
1999-12-07 23:37:59 -05:00
|
|
|
|
1999-12-15 21:18:50 -05:00
|
|
|
SLAPOBJS = $(SLAPD_OBJS) slapcommon.o mimic.o
|
1998-10-24 21:41:42 -04:00
|
|
|
|
2000-06-25 18:01:42 -04:00
|
|
|
all-local: build-progs
|
1999-08-17 15:00:59 -04:00
|
|
|
|
|
|
|
|
build-progs: $(PROGRAMS)
|
1998-10-24 21:41:42 -04:00
|
|
|
|
1999-08-17 15:00:59 -04:00
|
|
|
#
|
|
|
|
|
# SLAP Tools
|
|
|
|
|
#
|
2002-09-04 06:58:25 -04:00
|
|
|
slapadd: slapadd.o $(STATIC_DEPENDS) $(SLAPOBJS) $(SLAPD_L)
|
2003-04-07 05:33:10 -04:00
|
|
|
$(LTLINK) -o $@ slapadd.o $(SLAPOBJS) $(STATIC_DEPENDS) \
|
|
|
|
|
$(SLAPI_DEP_LIBS)
|
1998-10-24 21:41:42 -04:00
|
|
|
|
2002-09-04 06:58:25 -04:00
|
|
|
slapcat: slapcat.o $(STATIC_DEPENDS) $(SLAPOBJS) $(SLAPD_L)
|
2003-04-07 05:33:10 -04:00
|
|
|
$(LTLINK) -o $@ slapcat.o $(SLAPOBJS) $(STATIC_DEPENDS) \
|
|
|
|
|
$(SLAPI_DEP_LIBS)
|
1999-02-08 06:42:14 -05:00
|
|
|
|
2002-09-04 06:58:25 -04:00
|
|
|
slapindex: slapindex.o $(STATIC_DEPENDS) $(SLAPOBJS) $(SLAPD_L)
|
2003-04-07 05:33:10 -04:00
|
|
|
$(LTLINK) -o $@ slapindex.o $(SLAPOBJS) $(STATIC_DEPENDS) \
|
|
|
|
|
$(SLAPI_DEP_LIBS)
|
1998-10-24 21:41:42 -04:00
|
|
|
|
2002-02-10 17:42:51 -05:00
|
|
|
slappasswd: slappasswd.o $(SLAPD_L)
|
1999-12-15 21:18:50 -05:00
|
|
|
$(LTLINK) -o $@ slappasswd.o $(LIBS)
|
|
|
|
|
|
1998-10-24 21:41:42 -04:00
|
|
|
clean-local: FORCE
|
2000-06-25 18:01:42 -04:00
|
|
|
$(RM) $(PROGRAMS) $(XPROGRAMS) $(XSRCS) *.o core .libs/* *.exe
|
1998-10-24 21:41:42 -04:00
|
|
|
|
|
|
|
|
depend-local: FORCE
|
2000-06-25 18:01:42 -04:00
|
|
|
$(MKDEP) $(DEFS) $(DEFINES) $(SRCS)
|
2000-07-12 15:59:58 -04:00
|
|
|
|
2002-02-25 11:57:29 -05:00
|
|
|
install-local: FORCE
|
2000-07-12 15:59:58 -04:00
|
|
|
-$(MKDIR) $(DESTDIR)$(sbindir)
|
|
|
|
|
@for bin in $(PROGRAMS); do \
|
|
|
|
|
$(LTINSTALL) $(INSTALLFLAGS) -s -m 755 \
|
|
|
|
|
$$bin$(EXEEXT) $(DESTDIR)$(sbindir); \
|
|
|
|
|
done
|
|
|
|
|
|