X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=build%2Ftop.mk;h=33315ba045a2e9e79e42f655c3cc26f7445888cb;hb=d3f433a626e18f30bb5c93d05eaf3a77fa7865f5;hp=a94504895faf0e11da0c40292263176d9f82e905;hpb=2a869f5a99f537b246ba8640502e2a86117cb6e8;p=openldap diff --git a/build/top.mk b/build/top.mk index a94504895f..33315ba045 100644 --- a/build/top.mk +++ b/build/top.mk @@ -1,105 +1,162 @@ ## -## Copyright 1998 The OpenLDAP Foundation -## COPYING RESTRICTIONS APPLY. See COPYRIGHT File in top level directory -## of this package for details. +## Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA +## All rights reserved. ## -@SET_MAKE@ +## Redistribution and use in source and binary forms 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. +## +PACKAGE= @PACKAGE@ +VERSION= @VERSION@ +@SET_MAKE@ SHELL = /bin/sh +top_builddir = @top_builddir@ + srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ +ldap_subdir = @ldap_subdir@ bindir = @bindir@ -sbindir = @sbindir@ +datadir = @datadir@/$(ldap_subdir) +includedir = @includedir@ +infodir = @infodir@ +libdir = @libdir@ libexecdir = @libexecdir@ -datadir = @datadir@ -sysconfdir = @sysconfdir@/ldap -sharedstatedir = @sharedstatedir@ localstatedir = @localstatedir@ -libdir = @libdir@ -infodir = @infodir@ mandir = @mandir@ -includedir = @includedir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sysconfdir = @sysconfdir@/$(ldap_subdir) + +EXEEXT = @EXEEXT@ +OBJEXT = @OBJEXT@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ -MV = mv -LN = ln -LN_S = @LN_S@ -RM = rm -f -MAKEINFO = @MAKEINFO@ -RANLIB = @RANLIB@ -AR = ar - LINT = lint 5LINT = 5lint -MKDEP = $(top_srcdir)/build/mkdep +MKDEP = $(top_srcdir)/build/mkdep $(MKDEPFLAG) -d "$(srcdir)" -c "$(CC)" -# Misc UNIX commands used in makefiles -SED = sed -DATE = date -HOSTNAME = uname -n +LIBTOOL = @LIBTOOL@ +LIBVERSION = 0:0:0 +LTLINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) $(LTVERSION) +LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL) + +# Misc UNIX commands used in build environment +AR = ar +AWK = @AWK@ BASENAME = basename -PWD = pwd CAT = cat -MKDIR = mkdir CHMOD = chmod +DATE = date +HOSTNAME = uname -n +LN = ln +LN_S = @LN_S@ +MAKEINFO = @MAKEINFO@ +MKDIR = mkdir -p +MV = mv +PWD = pwd +RANLIB = @RANLIB@ +RM = rm -f +SED = sed # Misc UNIX commands used in programs EDITOR = @EDITOR@ FINGER = @FINGER@ SENDMAIL = @SENDMAIL@ +# For manual pages +# MANCOMPRESS=@MANCOMPRESS@ +# MANCOMPRESSSUFFIX=@MANCOMPRESSSUFFIX@ +MANCOMPRESS=$(CAT) +MANCOMPRESSSUFFIX= + # Version VERSIONFILE = $(top_srcdir)/build/version -INCLUDEDIR = $(top_srcdir)/include -LDAP_INCPATH = -I$(LDAP_INCDIR) -I$(INCLUDEDIR) -LDAP_LIBPATH = -L$(LDAP_LIBDIR) +INCLUDEDIR= $(top_srcdir)/include +LDAP_INCPATH= -I$(LDAP_INCDIR) -I$(INCLUDEDIR) +LDAP_LIBADIR= $(top_builddir)/libraries +LDAP_LIBPATH= -L$(LDAP_LIBADIR) + +LUTIL_LIBS = @LUTIL_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 + +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_LIBS = $(LDAP_LIBPATH) -lldif -lldap -llber -LDAP_LIBDEPEND = $(LDAP_LIBDIR)/libldif.a $(LDAP_LIBDIR)/libldap.a $(LDAP_LIBDIR)/liblber.a +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) # AutoConfig generated AC_CC = @CC@ -AC_DEFS = @CPPFLAGS@ @DEFS@ -AC_LIBS = @LDFLAGS@ @LIBS@ AC_CFLAGS = @CFLAGS@ -AC_LDFLAGS = +AC_DEFS = @CPPFLAGS@ @DEFS@ +AC_LDFLAGS = @LDFLAGS@ +AC_LIBS = @LIBS@ KRB_LIBS = @KRB_LIBS@ +PERL_CPPFLAGS = @SLAPD_PERL_CPPFLAGS@ +PERL_LDFLAGS = @SLAPD_PERL_LDFLAGS@ TERMCAP_LIBS = @TERMCAP_LIBS@ +LDAPD_LIBS = @LDAPD_LIBS@ +SLAPD_LIBS = @SLAPD_LIBS@ +SLURPD_LIBS = @SLURPD_LIBS@ + # Our Defaults CC = $(AC_CC) -DEFS = $(LDAP_INCPATH) $(XINCPATH) $(XDEFS) $(AC_DEFS) -LIBS = $(LDAP_LIBS) $(XLIBS) $(AC_LIBS) - -CFLAGS = $(AC_CFLAGS) $(DEFS) $(DEFINES) -LDFLAGS = $(AC_LDFLAGS) - -all: all-common FORCE -install: install-common FORCE -clean: clean-common FORCE -veryclean: veryclean-common FORCE -depend: depend-common FORCE +DEFS = $(LDAP_INCPATH) $(XINCPATH) $(XDEFS) $(AC_DEFS) $(DEFINES) +LIBS = $(LDAP_LIBPATH) $(XLIBS) $(XXLIBS) $(AC_LIBS) $(XXXLIBS) +CFLAGS = $(AC_CFLAGS) $(DEFS) +LDFLAGS = $(AC_LDFLAGS) $(XLDFLAGS) + +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: # empty local rules all-local: install-local: clean-local: -veryclean-local: +veryclean-local: clean-local FORCE depend-local: lint-local: lint5-local: +veryclean: FORCE + $(RM) Makefile + $(RM) -r .libs + Makefile: Makefile.in $(top_srcdir)/build/top.mk # empty rule for forcing rules