1999-08-30 16:08:00 +08:00
|
|
|
# $OpenLDAP$
|
2005-01-22 03:38:13 +08:00
|
|
|
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
|
|
|
|
##
|
2012-01-01 23:07:45 +08:00
|
|
|
## Copyright 1998-2012 The OpenLDAP Foundation.
|
1998-12-29 03:58:57 +08:00
|
|
|
## All rights reserved.
|
|
|
|
##
|
2001-05-29 11:29:53 +08:00
|
|
|
## Redistribution and use in source and binary forms, with or without
|
|
|
|
## modification, are permitted only as authorized by the OpenLDAP
|
2003-11-26 10:58:56 +08:00
|
|
|
## Public License.
|
1998-10-25 09:41:42 +08:00
|
|
|
##
|
2003-11-26 10:58:56 +08:00
|
|
|
## A copy of this license is available in the file LICENSE in the
|
|
|
|
## top-level directory of the distribution or, alternatively, at
|
|
|
|
##---------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Top-level Makefile template
|
|
|
|
#
|
|
|
|
|
2003-04-08 06:23:24 +08:00
|
|
|
PACKAGE= @PACKAGE@
|
|
|
|
VERSION= @VERSION@
|
2002-06-13 11:59:10 +08:00
|
|
|
RELEASEDATE= @OPENLDAP_RELEASE_DATE@
|
1998-10-25 09:41:42 +08:00
|
|
|
|
1998-11-22 12:22:28 +08:00
|
|
|
@SET_MAKE@
|
1998-10-25 09:41:42 +08:00
|
|
|
SHELL = /bin/sh
|
|
|
|
|
1998-11-22 12:22:28 +08:00
|
|
|
top_builddir = @top_builddir@
|
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
1998-11-30 04:03:57 +08:00
|
|
|
ldap_subdir = @ldap_subdir@
|
1999-03-19 01:36:55 +08:00
|
|
|
|
1999-09-23 05:51:30 +08:00
|
|
|
bindir = @bindir@
|
2009-01-27 06:18:59 +08:00
|
|
|
datarootdir = @datarootdir@
|
1999-09-23 05:51:30 +08:00
|
|
|
datadir = @datadir@$(ldap_subdir)
|
|
|
|
includedir = @includedir@
|
|
|
|
infodir = @infodir@
|
|
|
|
libdir = @libdir@
|
|
|
|
libexecdir = @libexecdir@
|
|
|
|
localstatedir = @localstatedir@
|
|
|
|
mandir = @mandir@
|
|
|
|
moduledir = @libexecdir@$(ldap_subdir)
|
|
|
|
sbindir = @sbindir@
|
|
|
|
sharedstatedir = @sharedstatedir@
|
|
|
|
sysconfdir = @sysconfdir@$(ldap_subdir)
|
2000-09-23 03:16:53 +08:00
|
|
|
schemadir = $(sysconfdir)/schema
|
1998-10-25 09:41:42 +08:00
|
|
|
|
2001-12-07 12:03:25 +08:00
|
|
|
PLAT = @PLAT@
|
1999-02-01 10:17:17 +08:00
|
|
|
EXEEXT = @EXEEXT@
|
|
|
|
OBJEXT = @OBJEXT@
|
|
|
|
|
2001-12-07 12:03:25 +08:00
|
|
|
BUILD_LIBS_DYNAMIC = @BUILD_LIBS_DYNAMIC@
|
|
|
|
|
2004-09-05 11:24:28 +08:00
|
|
|
SHTOOL = $(top_srcdir)/build/shtool
|
|
|
|
|
|
|
|
INSTALL = $(SHTOOL) install -c
|
|
|
|
INSTALL_PROGRAM = $(INSTALL)
|
|
|
|
INSTALL_DATA = $(INSTALL) -m 644
|
|
|
|
INSTALL_SCRIPT = $(INSTALL)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
2005-04-30 11:48:25 +08:00
|
|
|
STRIP = -s
|
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
LINT = lint
|
|
|
|
5LINT = 5lint
|
1999-06-09 03:13:00 +08:00
|
|
|
|
|
|
|
MKDEP = $(top_srcdir)/build/mkdep $(MKDEPFLAG) \
|
|
|
|
-d "$(srcdir)" -c "$(MKDEP_CC)" -m "$(MKDEP_CFLAGS)"
|
|
|
|
MKDEP_CC = @OL_MKDEP@
|
|
|
|
MKDEP_CFLAGS = @OL_MKDEP_FLAGS@
|
|
|
|
|
1999-04-28 13:40:17 +08:00
|
|
|
MKVERSION = $(top_srcdir)/build/mkversion -v "$(VERSION)"
|
1998-11-22 12:22:28 +08:00
|
|
|
|
2005-08-11 07:43:06 +08:00
|
|
|
LIBTOOL = @LIBTOOL@
|
2004-03-25 06:42:16 +08:00
|
|
|
LIBRELEASE = @OPENLDAP_LIBRELEASE@
|
2000-09-15 11:27:20 +08:00
|
|
|
LIBVERSION = @OPENLDAP_LIBVERSION@
|
2004-03-25 06:42:16 +08:00
|
|
|
LTVERSION = -release $(LIBRELEASE) -version-info $(LIBVERSION)
|
2001-12-07 12:03:25 +08:00
|
|
|
|
|
|
|
# libtool --only flag for libraries: platform specific
|
2003-03-29 08:36:31 +08:00
|
|
|
NT_LTONLY_LIB = # --only-$(BUILD_LIBS_DYNAMIC)
|
2001-12-07 12:03:25 +08:00
|
|
|
LTONLY_LIB = $(@PLAT@_LTONLY_LIB)
|
|
|
|
|
|
|
|
# libtool --only flag for modules: depends on linkage of module
|
2004-04-08 14:05:16 +08:00
|
|
|
# The BUILD_MOD macro is defined in each backend Makefile.in file
|
2005-05-09 08:13:05 +08:00
|
|
|
LTONLY_yes = --tag=disable-shared
|
|
|
|
LTONLY_mod = --tag=disable-static
|
|
|
|
LTONLY_MOD = $(LTONLY_$(BUILD_MOD))
|
2001-12-07 12:03:25 +08:00
|
|
|
|
|
|
|
# platform-specific libtool flags
|
|
|
|
NT_LTFLAGS_LIB = -no-undefined -avoid-version -rpath $(libdir)
|
|
|
|
NT_LTFLAGS_MOD = -no-undefined -avoid-version -rpath $(moduledir)
|
|
|
|
UNIX_LTFLAGS_LIB = $(LTVERSION) -rpath $(libdir)
|
|
|
|
UNIX_LTFLAGS_MOD = $(LTVERSION) -rpath $(moduledir)
|
|
|
|
|
|
|
|
# libtool flags
|
|
|
|
LTFLAGS = $(@PLAT@_LTFLAGS)
|
|
|
|
LTFLAGS_LIB = $(@PLAT@_LTFLAGS_LIB)
|
|
|
|
LTFLAGS_MOD = $(@PLAT@_LTFLAGS_MOD)
|
|
|
|
|
|
|
|
# LIB_DEFS defined in liblber and libldap Makefile.in files.
|
|
|
|
# MOD_DEFS defined in backend Makefile.in files.
|
|
|
|
|
|
|
|
# platform-specific LINK_LIBS defined in various Makefile.in files.
|
|
|
|
# LINK_LIBS referenced in library and module link commands.
|
2004-04-17 23:12:20 +08:00
|
|
|
LINK_LIBS = $(MOD_LIBS) $(@PLAT@_LINK_LIBS)
|
2001-12-07 12:03:25 +08:00
|
|
|
|
2002-11-27 02:11:05 +08:00
|
|
|
LTSTATIC = @LTSTATIC@
|
|
|
|
|
2001-12-08 10:32:23 +08:00
|
|
|
LTLINK = $(LIBTOOL) --mode=link \
|
2002-11-27 02:11:05 +08:00
|
|
|
$(CC) $(LTSTATIC) $(LT_CFLAGS) $(LDFLAGS) $(LTFLAGS)
|
2001-12-07 12:03:25 +08:00
|
|
|
|
|
|
|
LTCOMPILE_LIB = $(LIBTOOL) $(LTONLY_LIB) --mode=compile \
|
2001-12-08 10:32:23 +08:00
|
|
|
$(CC) $(LT_CFLAGS) $(LT_CPPFLAGS) $(LIB_DEFS) -c
|
2001-12-07 12:03:25 +08:00
|
|
|
|
|
|
|
LTLINK_LIB = $(LIBTOOL) $(LTONLY_LIB) --mode=link \
|
2001-12-08 10:32:23 +08:00
|
|
|
$(CC) $(LT_CFLAGS) $(LDFLAGS) $(LTFLAGS_LIB)
|
2001-12-07 12:03:25 +08:00
|
|
|
|
|
|
|
LTCOMPILE_MOD = $(LIBTOOL) $(LTONLY_MOD) --mode=compile \
|
2001-12-08 10:32:23 +08:00
|
|
|
$(CC) $(LT_CFLAGS) $(LT_CPPFLAGS) $(MOD_DEFS) -c
|
2001-12-07 12:03:25 +08:00
|
|
|
|
|
|
|
LTLINK_MOD = $(LIBTOOL) $(LTONLY_MOD) --mode=link \
|
2001-12-08 10:32:23 +08:00
|
|
|
$(CC) $(LT_CFLAGS) $(LDFLAGS) $(LTFLAGS_MOD)
|
2001-12-07 12:03:25 +08:00
|
|
|
|
1998-11-22 12:22:28 +08:00
|
|
|
LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL)
|
2002-02-11 06:42:51 +08:00
|
|
|
LTFINISH = $(LIBTOOL) --mode=finish
|
1998-10-25 09:41:42 +08:00
|
|
|
|
1999-02-01 10:17:17 +08:00
|
|
|
# Misc UNIX commands used in build environment
|
2001-11-28 10:32:47 +08:00
|
|
|
AR = @AR@
|
1998-10-25 09:41:42 +08:00
|
|
|
BASENAME = basename
|
|
|
|
CAT = cat
|
|
|
|
CHMOD = chmod
|
1999-02-01 10:17:17 +08:00
|
|
|
DATE = date
|
2004-09-05 11:24:28 +08:00
|
|
|
ECHO = $(SHTOOL) echo
|
2002-02-11 01:50:58 +08:00
|
|
|
HOSTNAME = $(SHTOOL) echo -e "%h%d"
|
2004-09-05 11:24:28 +08:00
|
|
|
LN = $(SHTOOL) mkln
|
|
|
|
LN_H = $(LN)
|
|
|
|
LN_S = $(LN) -s
|
1999-02-01 10:17:17 +08:00
|
|
|
MAKEINFO = @MAKEINFO@
|
2002-02-11 01:50:58 +08:00
|
|
|
MKDIR = $(SHTOOL) mkdir -p
|
2004-09-05 11:24:28 +08:00
|
|
|
MV = $(SHTOOL) move
|
1999-02-01 10:17:17 +08:00
|
|
|
PWD = pwd
|
|
|
|
RANLIB = @RANLIB@
|
|
|
|
RM = rm -f
|
|
|
|
SED = sed
|
2004-09-05 15:20:40 +08:00
|
|
|
SUBST = $(SHTOOL) subst
|
1998-10-25 09:41:42 +08:00
|
|
|
|
1998-11-21 03:54:39 +08:00
|
|
|
# For manual pages
|
|
|
|
# MANCOMPRESS=@MANCOMPRESS@
|
|
|
|
# MANCOMPRESSSUFFIX=@MANCOMPRESSSUFFIX@
|
|
|
|
MANCOMPRESS=$(CAT)
|
|
|
|
MANCOMPRESSSUFFIX=
|
|
|
|
|
2007-01-03 04:25:16 +08:00
|
|
|
SOELIM=soelim
|
|
|
|
|
1998-11-22 12:22:28 +08:00
|
|
|
INCLUDEDIR= $(top_srcdir)/include
|
|
|
|
LDAP_INCPATH= -I$(LDAP_INCDIR) -I$(INCLUDEDIR)
|
2002-02-11 06:42:51 +08:00
|
|
|
LDAP_LIBDIR= $(top_builddir)/libraries
|
1998-10-25 09:41:42 +08:00
|
|
|
|
1999-01-14 09:31:43 +08:00
|
|
|
LUTIL_LIBS = @LUTIL_LIBS@
|
|
|
|
LTHREAD_LIBS = @LTHREAD_LIBS@
|
1998-11-22 12:22:28 +08:00
|
|
|
|
2006-04-08 12:15:37 +08:00
|
|
|
BDB_LIBS = @BDB_LIBS@
|
2008-08-27 05:48:17 +08:00
|
|
|
SLAPD_NDB_LIBS = @SLAPD_NDB_LIBS@
|
2006-04-08 12:15:37 +08:00
|
|
|
|
2002-02-11 06:42:51 +08:00
|
|
|
LDAP_LIBLBER_LA = $(LDAP_LIBDIR)/liblber/liblber.la
|
|
|
|
LDAP_LIBLDAP_LA = $(LDAP_LIBDIR)/libldap/libldap.la
|
|
|
|
LDAP_LIBLDAP_R_LA = $(LDAP_LIBDIR)/libldap_r/libldap_r.la
|
|
|
|
|
2005-08-26 10:20:45 +08:00
|
|
|
LDAP_LIBREWRITE_A = $(LDAP_LIBDIR)/librewrite/librewrite.a
|
2002-02-11 06:42:51 +08:00
|
|
|
LDAP_LIBLUNICODE_A = $(LDAP_LIBDIR)/liblunicode/liblunicode.a
|
|
|
|
LDAP_LIBLUTIL_A = $(LDAP_LIBDIR)/liblutil/liblutil.a
|
|
|
|
|
2011-11-01 22:47:57 +08:00
|
|
|
LDAP_L = $(LDAP_LIBLUTIL_A) \
|
|
|
|
$(LDAP_LIBLDAP_LA) $(LDAP_LIBLBER_LA)
|
2005-08-26 10:20:45 +08:00
|
|
|
SLAPD_L = $(LDAP_LIBLUNICODE_A) $(LDAP_LIBREWRITE_A) \
|
2011-11-01 22:47:57 +08:00
|
|
|
$(LDAP_LIBLUTIL_A) $(LDAP_LIBLDAP_R_LA) $(LDAP_LIBLBER_LA)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
1999-09-22 23:00:51 +08:00
|
|
|
WRAP_LIBS = @WRAP_LIBS@
|
1998-10-25 09:41:42 +08:00
|
|
|
# AutoConfig generated
|
|
|
|
AC_CC = @CC@
|
|
|
|
AC_CFLAGS = @CFLAGS@
|
1999-03-09 07:13:59 +08:00
|
|
|
AC_DEFS = @CPPFLAGS@ # @DEFS@
|
1999-01-10 10:25:41 +08:00
|
|
|
AC_LDFLAGS = @LDFLAGS@
|
|
|
|
AC_LIBS = @LIBS@
|
1998-10-25 09:41:42 +08:00
|
|
|
|
2000-01-09 02:42:11 +08:00
|
|
|
KRB4_LIBS = @KRB4_LIBS@
|
|
|
|
KRB5_LIBS = @KRB5_LIBS@
|
|
|
|
KRB_LIBS = @KRB4_LIBS@ @KRB5_LIBS@
|
1999-08-05 10:25:19 +08:00
|
|
|
SASL_LIBS = @SASL_LIBS@
|
1999-07-14 03:21:27 +08:00
|
|
|
TLS_LIBS = @TLS_LIBS@
|
2000-05-11 18:10:53 +08:00
|
|
|
AUTH_LIBS = @AUTH_LIBS@
|
2009-07-07 03:52:14 +08:00
|
|
|
SECURITY_LIBS = $(SASL_LIBS) $(KRB_LIBS) $(TLS_LIBS) $(AUTH_LIBS)
|
2005-11-16 14:31:00 +08:00
|
|
|
ICU_LIBS = @ICU_LIBS@
|
1999-08-05 10:25:19 +08:00
|
|
|
|
1999-04-14 09:33:01 +08:00
|
|
|
MODULES_CPPFLAGS = @SLAPD_MODULES_CPPFLAGS@
|
|
|
|
MODULES_LDFLAGS = @SLAPD_MODULES_LDFLAGS@
|
1999-09-23 18:28:33 +08:00
|
|
|
MODULES_LIBS = @MODULES_LIBS@
|
1999-09-23 13:32:10 +08:00
|
|
|
SLAPD_PERL_LDFLAGS = @SLAPD_PERL_LDFLAGS@
|
1998-10-25 09:41:42 +08:00
|
|
|
|
2000-03-17 02:54:11 +08:00
|
|
|
SLAPD_SQL_LDFLAGS = @SLAPD_SQL_LDFLAGS@
|
|
|
|
SLAPD_SQL_INCLUDES = @SLAPD_SQL_INCLUDES@
|
|
|
|
SLAPD_SQL_LIBS = @SLAPD_SQL_LIBS@
|
|
|
|
|
2005-11-16 14:31:00 +08:00
|
|
|
SLAPD_LIBS = @SLAPD_LIBS@ @SLAPD_PERL_LDFLAGS@ @SLAPD_SQL_LDFLAGS@ @SLAPD_SQL_LIBS@ @SLAPD_SLP_LIBS@ @SLAPD_GMP_LIBS@ $(ICU_LIBS)
|
1999-01-10 10:25:41 +08:00
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
# Our Defaults
|
|
|
|
CC = $(AC_CC)
|
1999-01-10 10:25:41 +08:00
|
|
|
DEFS = $(LDAP_INCPATH) $(XINCPATH) $(XDEFS) $(AC_DEFS) $(DEFINES)
|
2001-12-08 09:57:25 +08:00
|
|
|
CFLAGS = $(AC_CFLAGS) $(DEFS)
|
1999-03-08 10:31:03 +08:00
|
|
|
LDFLAGS = $(LDAP_LIBPATH) $(AC_LDFLAGS) $(XLDFLAGS)
|
|
|
|
LIBS = $(XLIBS) $(XXLIBS) $(AC_LIBS) $(XXXLIBS)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
2001-12-08 10:32:23 +08:00
|
|
|
LT_CFLAGS = $(AC_CFLAGS)
|
|
|
|
LT_CPPFLAGS = $(DEFS)
|
|
|
|
|
1998-11-22 12:22:28 +08:00
|
|
|
all: all-common all-local FORCE
|
|
|
|
install: install-common install-local FORCE
|
|
|
|
clean: clean-common clean-local FORCE
|
|
|
|
veryclean: veryclean-common veryclean-local FORCE
|
|
|
|
depend: depend-common depend-local FORCE
|
|
|
|
|
|
|
|
# empty common rules
|
|
|
|
all-common:
|
|
|
|
install-common:
|
|
|
|
clean-common:
|
|
|
|
veryclean-common: clean-common FORCE
|
|
|
|
depend-common:
|
|
|
|
lint-common:
|
|
|
|
lint5-common:
|
1998-10-25 09:41:42 +08:00
|
|
|
|
|
|
|
# empty local rules
|
|
|
|
all-local:
|
|
|
|
install-local:
|
|
|
|
clean-local:
|
1998-11-22 12:22:28 +08:00
|
|
|
veryclean-local: clean-local FORCE
|
1998-10-25 09:41:42 +08:00
|
|
|
depend-local:
|
|
|
|
lint-local:
|
|
|
|
lint5-local:
|
|
|
|
|
1998-11-22 12:22:28 +08:00
|
|
|
veryclean: FORCE
|
|
|
|
$(RM) Makefile
|
1998-11-22 14:24:59 +08:00
|
|
|
$(RM) -r .libs
|
1998-11-22 12:22:28 +08:00
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
Makefile: Makefile.in $(top_srcdir)/build/top.mk
|
|
|
|
|
2002-02-12 00:40:13 +08:00
|
|
|
pathtest:
|
2002-02-12 00:55:32 +08:00
|
|
|
$(SHTOOL) --version
|
2002-02-12 00:40:13 +08:00
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
# empty rule for forcing rules
|
|
|
|
FORCE:
|
|
|
|
|
|
|
|
##---------------------------------------------------------------------------
|
1999-10-28 15:31:59 +08:00
|
|
|
|