X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=build%2Ftop.mk;h=02d343091852ee280b7568668ea847b86bdc9980;hb=cb81db38d4990f372f94d9e9cbbcdce16cd4b9c7;hp=f912b9a8c613dba76827df73def94a1783bd331a;hpb=93af86ec6f083aa117c687db3d87b0f4d36a3769;p=openldap diff --git a/build/top.mk b/build/top.mk index f912b9a8c6..02d3430918 100644 --- a/build/top.mk +++ b/build/top.mk @@ -1,15 +1,23 @@ # $OpenLDAP$ -## Copyright 1998-2002 The OpenLDAP Foundation, Redwood City, California, USA +## This work is part of OpenLDAP Software . +## +## Copyright 1998-2008 The OpenLDAP Foundation. ## 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 at -## http://www.OpenLDAP.org/license.html or in file LICENSE in the -## top-level directory of the distribution. +## Public License. ## +## 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 +# + PACKAGE= @PACKAGE@ VERSION= @VERSION@ +RELEASEDATE= @OPENLDAP_RELEASE_DATE@ @SET_MAKE@ SHELL = /bin/sh @@ -43,12 +51,14 @@ OBJEXT = @OBJEXT@ BUILD_LIBS_DYNAMIC = @BUILD_LIBS_DYNAMIC@ -SHTOOL = $(top_builddir)/@SHTOOL@ +SHTOOL = $(top_srcdir)/build/shtool -INSTALL = @INSTALL@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL = $(SHTOOL) install -c +INSTALL_PROGRAM = $(INSTALL) +INSTALL_DATA = $(INSTALL) -m 644 +INSTALL_SCRIPT = $(INSTALL) + +STRIP = -s LINT = lint 5LINT = 5lint @@ -61,16 +71,19 @@ MKDEP_CFLAGS = @OL_MKDEP_FLAGS@ MKVERSION = $(top_srcdir)/build/mkversion -v "$(VERSION)" LIBTOOL = @LIBTOOL@ +LIBRELEASE = @OPENLDAP_LIBRELEASE@ LIBVERSION = @OPENLDAP_LIBVERSION@ -LTVERSION = -version-info $(LIBVERSION) +LTVERSION = -release $(LIBRELEASE) -version-info $(LIBVERSION) # libtool --only flag for libraries: platform specific -NT_LTONLY_LIB = --only-$(BUILD_LIBS_DYNAMIC) +NT_LTONLY_LIB = # --only-$(BUILD_LIBS_DYNAMIC) LTONLY_LIB = $(@PLAT@_LTONLY_LIB) # libtool --only flag for modules: depends on linkage of module -# The BUILD_MOD_DYNAMIC macro is defined in each backend Makefile.in file -LTONLY_MOD = # --only-$(BUILD_MOD_DYNAMIC) +# The BUILD_MOD macro is defined in each backend Makefile.in file +LTONLY_yes = --tag=disable-shared +LTONLY_mod = --tag=disable-static +LTONLY_MOD = $(LTONLY_$(BUILD_MOD)) # platform-specific libtool flags NT_LTFLAGS_LIB = -no-undefined -avoid-version -rpath $(libdir) @@ -88,10 +101,12 @@ LTFLAGS_MOD = $(@PLAT@_LTFLAGS_MOD) # platform-specific LINK_LIBS defined in various Makefile.in files. # LINK_LIBS referenced in library and module link commands. -LINK_LIBS = $(@PLAT@_LINK_LIBS) +LINK_LIBS = $(MOD_LIBS) $(@PLAT@_LINK_LIBS) + +LTSTATIC = @LTSTATIC@ LTLINK = $(LIBTOOL) --mode=link \ - $(CC) $(LT_CFLAGS) -static $(LDFLAGS) $(LTFLAGS) + $(CC) $(LTSTATIC) $(LT_CFLAGS) $(LDFLAGS) $(LTFLAGS) LTCOMPILE_LIB = $(LIBTOOL) $(LTONLY_LIB) --mode=compile \ $(CC) $(LT_CFLAGS) $(LT_CPPFLAGS) $(LIB_DEFS) -c @@ -106,30 +121,27 @@ LTLINK_MOD = $(LIBTOOL) $(LTONLY_MOD) --mode=link \ $(CC) $(LT_CFLAGS) $(LDFLAGS) $(LTFLAGS_MOD) LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL) +LTFINISH = $(LIBTOOL) --mode=finish # Misc UNIX commands used in build environment AR = @AR@ -AWK = @AWK@ BASENAME = basename CAT = cat CHMOD = chmod DATE = date +ECHO = $(SHTOOL) echo HOSTNAME = $(SHTOOL) echo -e "%h%d" LN = $(SHTOOL) mkln -LN_H = $(SHTOOL) mkln -f -LN_S = $(SHTOOL) mkln -f -s +LN_H = $(LN) +LN_S = $(LN) -s MAKEINFO = @MAKEINFO@ MKDIR = $(SHTOOL) mkdir -p -MV = mv +MV = $(SHTOOL) move PWD = pwd RANLIB = @RANLIB@ RM = rm -f SED = sed - -# Misc UNIX commands used in programs -EDITOR = @EDITOR@ -FINGER = @FINGER@ -SENDMAIL = @SENDMAIL@ +SUBST = $(SHTOOL) subst # For manual pages # MANCOMPRESS=@MANCOMPRESS@ @@ -137,29 +149,29 @@ SENDMAIL = @SENDMAIL@ MANCOMPRESS=$(CAT) MANCOMPRESSSUFFIX= +SOELIM=soelim + INCLUDEDIR= $(top_srcdir)/include LDAP_INCPATH= -I$(LDAP_INCDIR) -I$(INCLUDEDIR) -LDAP_LIBADIR= $(top_builddir)/libraries -LDAP_LIBPATH= -L$(LDAP_LIBADIR)/libldap -L$(LDAP_LIBADIR)/liblber -L$(LDAP_LIBADIR) +LDAP_LIBDIR= $(top_builddir)/libraries LUTIL_LIBS = @LUTIL_LIBS@ -LDIF_LIBS = @LDIF_LIBS@ -LDBM_LIBS = @LDBM_LIBS@ LTHREAD_LIBS = @LTHREAD_LIBS@ -LDAP_LIBLBER_DEPEND = $(LDAP_LIBDIR)/liblber/liblber.la -LDAP_LIBLDAP_DEPEND = $(LDAP_LIBDIR)/libldap/libldap.la -LDAP_LIBLDIF_DEPEND = $(LDAP_LIBDIR)/libldif/libldif.a -LDAP_LIBLUTIL_DEPEND = $(LDAP_LIBDIR)/liblutil/liblutil.a +BDB_LIBS = @BDB_LIBS@ -LDAP_LIBAVL_DEPEND = $(LDAP_LIBDIR)/libavl/libavl.a -LDAP_LIBLDBM_DEPEND = $(LDAP_LIBDIR)/libldbm/libldbm.a -LDAP_LIBLTHREAD_DEPEND = $(LDAP_LIBDIR)/libldap_r/libldap_r.la +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 -LDAP_LIBDEPEND = $(LDAP_LIBLDAP_DEPEND) $(LDAP_LIBLBER_DEPEND) \ - $(LDAP_LIBLDIF_DEPEND) $(LDAP_LIBLUTIL_DEPEND) -SLAPD_LIBDEPEND = $(LDAP_LIBDEPEND) $(LDAP_LIBAVL_DEPEND) \ - $(LDAP_LIBLDBM_DEPEND) $(LDAP_LIBLTHREAD_DEPEND) +LDAP_LIBREWRITE_A = $(LDAP_LIBDIR)/librewrite/librewrite.a +LDAP_LIBLUNICODE_A = $(LDAP_LIBDIR)/liblunicode/liblunicode.a +LDAP_LIBLUTIL_A = $(LDAP_LIBDIR)/liblutil/liblutil.a + +LDAP_L = $(LDAP_LIBLUTIL_A) \ + $(LDAP_LIBLDAP_LA) $(LDAP_LIBLBER_LA) +SLAPD_L = $(LDAP_LIBLUNICODE_A) $(LDAP_LIBREWRITE_A) \ + $(LDAP_LIBLUTIL_A) $(LDAP_LIBLDAP_R_LA) $(LDAP_LIBLBER_LA) WRAP_LIBS = @WRAP_LIBS@ # AutoConfig generated @@ -176,19 +188,18 @@ SASL_LIBS = @SASL_LIBS@ TLS_LIBS = @TLS_LIBS@ AUTH_LIBS = @AUTH_LIBS@ SECURITY_LIBS = $(SASL_LIBS) $(KRB_LIBS) $(TLS_LIBS) $(AUTH_LIBS) +ICU_LIBS = @ICU_LIBS@ MODULES_CPPFLAGS = @SLAPD_MODULES_CPPFLAGS@ MODULES_LDFLAGS = @SLAPD_MODULES_LDFLAGS@ MODULES_LIBS = @MODULES_LIBS@ -TERMCAP_LIBS = @TERMCAP_LIBS@ SLAPD_PERL_LDFLAGS = @SLAPD_PERL_LDFLAGS@ SLAPD_SQL_LDFLAGS = @SLAPD_SQL_LDFLAGS@ SLAPD_SQL_INCLUDES = @SLAPD_SQL_INCLUDES@ SLAPD_SQL_LIBS = @SLAPD_SQL_LIBS@ -SLAPD_LIBS = @SLAPD_LIBS@ @SLAPD_PERL_LDFLAGS@ @SLAPD_SQL_LDFLAGS@ @SLAPD_SQL_LIBS@ @SLAPD_SLP_LIBS@ -SLURPD_LIBS = @SLURPD_LIBS@ +SLAPD_LIBS = @SLAPD_LIBS@ @SLAPD_PERL_LDFLAGS@ @SLAPD_SQL_LDFLAGS@ @SLAPD_SQL_LIBS@ @SLAPD_SLP_LIBS@ @SLAPD_GMP_LIBS@ $(ICU_LIBS) # Our Defaults CC = $(AC_CC) @@ -230,6 +241,9 @@ veryclean: FORCE Makefile: Makefile.in $(top_srcdir)/build/top.mk +pathtest: + $(SHTOOL) --version + # empty rule for forcing rules FORCE: