1999-09-09 06:52:19 +08:00
|
|
|
# $OpenLDAP$
|
2003-01-04 04:20:47 +08:00
|
|
|
## Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
|
2000-05-13 10:47:56 +08:00
|
|
|
## COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
1998-10-25 09:41:42 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
2000-05-13 10:47:56 +08:00
|
|
|
# Portions Copyright (c) 1995 Regents of the University of Michigan.
|
1998-10-25 09:41:42 +08:00
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# Redistribution and use in source and binary forms are permitted
|
|
|
|
# provided that this notice is preserved and that due credit is given
|
|
|
|
# to the University of Michigan at Ann Arbor. The name of the University
|
|
|
|
# may not be used to endorse or promote products derived from this
|
|
|
|
# software without specific prior written permission. This software
|
|
|
|
# is provided ``as is'' without express or implied warranty.
|
|
|
|
#
|
|
|
|
# Stand alone LDAP server tools makefile
|
|
|
|
#
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
LDAP_INCDIR= ../../../include
|
|
|
|
LDAP_LIBDIR= ../../../libraries
|
|
|
|
|
1999-08-07 15:58:11 +08:00
|
|
|
SLAP_DIR=../
|
1999-06-25 01:06:34 +08:00
|
|
|
XDEFS = $(MODULES_CPPFLAGS)
|
2002-05-18 11:52:46 +08:00
|
|
|
XLDFLAGS = $(MODULES_LDFLAGS)
|
1999-06-25 01:06:34 +08:00
|
|
|
|
2002-02-11 06:42:51 +08:00
|
|
|
XLIBS = $(SLAPD_L) $(LDBM_LIBS)
|
2000-06-26 05:40:13 +08:00
|
|
|
XXLIBS = $(SLAPD_LIBS) \
|
2000-05-11 05:18:12 +08:00
|
|
|
$(LDBM_LIBS) $(SECURITY_LIBS) \
|
1999-07-31 11:23:26 +08:00
|
|
|
$(LDIF_LIBS) $(LUTIL_LIBS)
|
2003-01-20 06:43:29 +08:00
|
|
|
XXXLIBS = $(LTHREAD_LIBS) $(SLAPI_LIBS) \
|
|
|
|
@LIBSLAPITOOLS@ $(MODULES_LIBS)
|
1999-01-10 10:25:41 +08:00
|
|
|
|
2002-09-04 18:58:25 +08:00
|
|
|
STATIC_DEPENDS=@SLAPD_NO_STATIC@ ../libbackends.a
|
|
|
|
|
2000-06-26 06:01:42 +08:00
|
|
|
PROGRAMS=slapadd slapcat slapindex slappasswd
|
1999-02-08 19:42:14 +08:00
|
|
|
|
2000-06-26 06:01:42 +08:00
|
|
|
SRCS = mimic.c slapcommon.c \
|
|
|
|
slapadd.c slapcat.c slapindex.c slappasswd.c
|
1999-08-18 03:00:59 +08:00
|
|
|
|
2003-03-01 08:14:32 +08:00
|
|
|
SLAPD_OBJS = ../globals.o ../config.o ../ch_malloc.o ../cr.o ../backend.o \
|
2001-12-07 12:03:25 +08: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 \
|
|
|
|
../init.o ../controls.o ../kerberos.o ../passwd.o \
|
|
|
|
../index.o ../extended.o ../starttls.o ../sets.o ../mra.o \
|
2003-01-25 08:36:50 +08:00
|
|
|
../referral.o ../backglue.o ../oidm.o ../mods.o ../operation.o \
|
|
|
|
../cancel.o
|
1999-12-08 12:37:59 +08:00
|
|
|
|
1999-12-16 10:18:50 +08:00
|
|
|
SLAPOBJS = $(SLAPD_OBJS) slapcommon.o mimic.o
|
1998-10-25 09:41:42 +08:00
|
|
|
|
2000-06-26 06:01:42 +08:00
|
|
|
all-local: build-progs
|
1999-08-18 03:00:59 +08:00
|
|
|
|
|
|
|
build-progs: $(PROGRAMS)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
1999-08-18 03:00:59 +08:00
|
|
|
#
|
|
|
|
# SLAP Tools
|
|
|
|
#
|
2002-09-04 18:58:25 +08:00
|
|
|
slapadd: slapadd.o $(STATIC_DEPENDS) $(SLAPOBJS) $(SLAPD_L)
|
|
|
|
$(LTLINK) -o $@ slapadd.o $(SLAPOBJS) $(STATIC_DEPENDS) $(LIBS)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
2002-09-04 18:58:25 +08:00
|
|
|
slapcat: slapcat.o $(STATIC_DEPENDS) $(SLAPOBJS) $(SLAPD_L)
|
|
|
|
$(LTLINK) -o $@ slapcat.o $(SLAPOBJS) $(STATIC_DEPENDS) $(LIBS)
|
1999-02-08 19:42:14 +08:00
|
|
|
|
2002-09-04 18:58:25 +08:00
|
|
|
slapindex: slapindex.o $(STATIC_DEPENDS) $(SLAPOBJS) $(SLAPD_L)
|
|
|
|
$(LTLINK) -o $@ slapindex.o $(SLAPOBJS) $(STATIC_DEPENDS) $(LIBS)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
2002-02-11 06:42:51 +08:00
|
|
|
slappasswd: slappasswd.o $(SLAPD_L)
|
1999-12-16 10:18:50 +08:00
|
|
|
$(LTLINK) -o $@ slappasswd.o $(LIBS)
|
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
clean-local: FORCE
|
2000-06-26 06:01:42 +08:00
|
|
|
$(RM) $(PROGRAMS) $(XPROGRAMS) $(XSRCS) *.o core .libs/* *.exe
|
1998-10-25 09:41:42 +08:00
|
|
|
|
|
|
|
depend-local: FORCE
|
2000-06-26 06:01:42 +08:00
|
|
|
$(MKDEP) $(DEFS) $(DEFINES) $(SRCS)
|
2000-07-13 03:59:58 +08:00
|
|
|
|
2002-02-26 00:57:29 +08:00
|
|
|
install-local: FORCE
|
2000-07-13 03:59:58 +08:00
|
|
|
-$(MKDIR) $(DESTDIR)$(sbindir)
|
|
|
|
@for bin in $(PROGRAMS); do \
|
|
|
|
$(LTINSTALL) $(INSTALLFLAGS) -s -m 755 \
|
|
|
|
$$bin$(EXEEXT) $(DESTDIR)$(sbindir); \
|
|
|
|
done
|
|
|
|
|