openldap/servers/slapd/tools/Makefile.in

91 lines
3.0 KiB
Makefile
Raw Normal View History

1999-09-09 06:52:19 +08:00
# $OpenLDAP$
2000-05-13 10:47:56 +08:00
## Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
## 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
#
#-----------------------------------------------------------------------------
BUILD_LDBM = @BUILD_LDBM@
LDAP_INCDIR= ../../../include
LDAP_LIBDIR= ../../../libraries
SLAP_DIR=../
SLAPD_MODULES = @SLAPD_MODULES_LIST@
XDEFS = $(MODULES_CPPFLAGS)
XLDFLAGS = $(MODULES_LDFLAGS) $(SLAPD_MODULES)
XLIBS = -lavl -lldif @LDBM_LIB@ -llutil -llunicode -lldap_r -llber
2000-06-26 05:40:13 +08:00
XXLIBS = $(SLAPD_LIBS) \
$(LDBM_LIBS) $(SECURITY_LIBS) \
$(LDIF_LIBS) $(LUTIL_LIBS)
2000-06-26 06:01:42 +08:00
XXXLIBS = $(MODULES_LIBS) $(LTHREAD_LIBS)
2000-06-26 06:01:42 +08:00
PROGRAMS=slapadd slapcat slapindex slappasswd
# CPPFLAGS will include the defines for dynamic libs in Mingw32.
NT_DYN_DEFS = -DLBER_DECL=dllimport -DLDAP_DECL=dllimport
CPPFLAGS = $(@PLAT@_@LIB_LINKAGE@_DEFS)
2000-06-26 06:01:42 +08:00
SRCS = mimic.c slapcommon.c \
slapadd.c slapcat.c slapindex.c slappasswd.c
SLAPD_OBJS = ../config.o ../ch_malloc.o ../backend.o ../charray.o \
../module.o ../aclparse.o ../filterentry.o \
2000-05-25 11:46:55 +08:00
../schema.o ../schema_check.o ../schema_init.o ../schema_prep.o \
2000-05-25 09:49:21 +08:00
../schemaparse.o ../ad.o ../at.o ../mr.o ../oc.o ../syntax.o \
1998-10-25 09:41:42 +08:00
../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 \
../referral.o
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
build-progs: $(PROGRAMS)
1998-10-25 09:41:42 +08:00
#
# SLAP Tools
#
slapadd: slapadd.o ../libbackends.a $(SLAPOBJS) $(SLAPD_LIBDEPEND)
$(LTLINK) -o $@ slapadd.o $(SLAPOBJS) ../libbackends.a $(LIBS)
1998-10-25 09:41:42 +08:00
slapcat: slapcat.o ../libbackends.a $(SLAPOBJS) $(SLAPD_LIBDEPEND)
$(LTLINK) -o $@ slapcat.o $(SLAPOBJS) ../libbackends.a $(LIBS)
slapindex: slapindex.o ../libbackends.a $(SLAPOBJS) $(SLAPD_LIBDEPEND)
$(LTLINK) -o $@ slapindex.o $(SLAPOBJS) ../libbackends.a $(LIBS)
1998-10-25 09:41:42 +08:00
1999-12-16 10:18:50 +08:00
slappasswd: slappasswd.o $(SLAPD_LIBDEPEND)
$(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 04:15:38 +08:00
install-local: install-ldbm-$(BUILD_LDBM)
install-ldbm-no:
install-ldbm-yes install-ldbm-mod: FORCE
-$(MKDIR) $(DESTDIR)$(sbindir)
@for bin in $(PROGRAMS); do \
$(LTINSTALL) $(INSTALLFLAGS) -s -m 755 \
$$bin$(EXEEXT) $(DESTDIR)$(sbindir); \
done