]> git.sur5r.net Git - openldap/commitdiff
Update libtool usage
authorKurt Zeilenga <kurt@openldap.org>
Sun, 10 Feb 2002 22:42:51 +0000 (22:42 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 10 Feb 2002 22:42:51 +0000 (22:42 +0000)
s/-L.../libraries -lldap/.../libraries/libldap/libldap.la/

20 files changed:
build/lib-shared.mk
build/lib-static.mk
build/top.mk
clients/finger/Makefile.in
clients/mail500/Makefile.in
clients/maildap/Makefile.in
clients/tools/Makefile.in
clients/ud/Makefile.in
include/portable.h.in
libraries/libavl/Makefile.in
libraries/liblber/Makefile.in
libraries/libldap/Makefile.in
libraries/libldap_r/Makefile.in
libraries/libldbm/Makefile.in
libraries/liblunicode/Makefile.in
libraries/librewrite/Makefile.in
servers/slapd/Makefile.in
servers/slapd/tools/Makefile.in
servers/slurpd/Makefile.in
tests/progs/Makefile.in

index 194da6e122dc20a97d724059c6a74bc0fb5210d0..a01e0f27c251fc5320535077bb7f80102daa8d3d 100644 (file)
@@ -14,40 +14,8 @@ MKDEPFLAG = -l
 .c.lo:
        $(LTCOMPILE_LIB) $<
 
-#
-# symlinks for libraries: UNIX and Windows (a.k.a. NT) need to be handled
-# differently. In UNIX, the static and shared libraries, as well as shared
-# library symlinks, can all be symlinked in the 'libraries' directory. In
-# Windows, only the static library (.a file) or the shared library (.dll)
-# file should be present. The current mingw linker (i.e. ld) WILL look
-# for a .dll file at link time and internally generate an import library
-# for it. However, ld will not do this if a static library is present.
-# That doesn't seem very correct, but that's the behavior, like it or not.
-#
-# Note that there doesn't seem to be a true need for the .la file at
-# this level, so it is left out.
-#
-# The set of symlinks are determined by examining the library's .la file.
-#
 $(LIBRARY): version.lo
        $(LTLINK_LIB) -o $@ $(OBJS) version.lo $(LINK_LIBS)
-       @d=`$(PWD)`; b=`$(BASENAME) $$d`; \
-       echo cd ..; \
-       cd ..; \
-       arlib=`grep '^old_library=' $$b/$@`; \
-       arlib=`expr "$$arlib" : "[^']*'\(.*\)'"`; \
-       libs=$$arlib; \
-       if test "$(BUILD_LIBS_DYNAMIC)" = "shared"; then \
-               shlibs=`grep '^library_names' $$b/$@`; \
-               shlibs=`expr "$$shlibs" : "[^']*'\(.*\)'"`; \
-               libs="$$libs $$shlibs"; \
-       fi; \
-       for i in $$libs; do \
-               echo $(RM) $$i; \
-               $(RM) $$i; \
-               echo $(LN_S) $$b/.libs/$$i $$i; \
-               $(LN_S) $$b/.libs/$$i $$i; \
-       done
 
 Makefile: $(top_srcdir)/build/lib-shared.mk
 
index bd8e726f63971940b347f9ea557efb7600df2ee0..dd110103ea950fc5adb0bf1089c1a4a5468f60d7 100644 (file)
@@ -9,8 +9,6 @@
 
 $(LIBRARY): version.o
        $(AR) ru $@ $(OBJS) version.o
-       @$(RANLIB) $@;  \
-       $(RM) ../$@;    \
-       (d=`$(PWD)` ; cd .. ; $(LN_S) `$(BASENAME) $$d`/$@ $@)
+       @$(RANLIB) $@
 
 Makefile: $(top_srcdir)/build/lib-static.mk
index f912b9a8c613dba76827df73def94a1783bd331a..935728b547b6b05982ccfabc3c7903437d77574b 100644 (file)
@@ -91,7 +91,7 @@ LTFLAGS_MOD = $(@PLAT@_LTFLAGS_MOD)
 LINK_LIBS = $(@PLAT@_LINK_LIBS)
 
 LTLINK   = $(LIBTOOL) --mode=link \
-       $(CC) $(LT_CFLAGS) -static $(LDFLAGS) $(LTFLAGS)
+       $(CC) -static $(LT_CFLAGS) $(LDFLAGS) $(LTFLAGS)
 
 LTCOMPILE_LIB = $(LIBTOOL) $(LTONLY_LIB) --mode=compile \
        $(CC) $(LT_CFLAGS) $(LT_CPPFLAGS) $(LIB_DEFS) -c
@@ -106,6 +106,7 @@ 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@
@@ -139,27 +140,31 @@ MANCOMPRESSSUFFIX=
 
 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
-
-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_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_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_LIBAVL_A = $(LDAP_LIBDIR)/libavl/libavl.a
+LDAP_LIBLDBM_A = $(LDAP_LIBDIR)/libldbm/libldbm.a
+LDAP_LIBLDIF_A = $(LDAP_LIBDIR)/libldif/libldif.a
+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_LIBLDIF_A) \
+       $(LDAP_LIBLDAP_LA) $(LDAP_LIBLBER_LA)
+SLURPD_L = $(LDAP_LIBLDIF_A) $(LDAP_LIBLUTIL_A) \
+       $(LDAP_LIBLDAP_R_LA) $(LDAP_LIBLBER_LA)
+SLAPD_L = $(LDAP_LIBAVL_A) $(LDAP_LIBLDBM_A) \
+       $(LDAP_LIBLUNICODE_A) $(LDAP_LIBREWRITE_A) \
+       $(SLURPD_L)
 
 WRAP_LIBS = @WRAP_LIBS@
 # AutoConfig generated 
index 5a5d7fc3ea1bfcffec900e1b03f9f70eb4c4b5cf..ea9929f5430c6abd239a9acde55394073c635608 100644 (file)
@@ -10,13 +10,13 @@ PROGRAMS = $(@PLAT@_PRGS)
 LDAP_INCDIR= ../../include
 LDAP_LIBDIR= ../../libraries
 
-XLIBS =  -lldap -llber -llutil
+XLIBS =  $(LDAP_L)
 XXLIBS = $(SECURITY_LIBS) $(LUTIL_LIBS)
 
 in.xfingerd : version.o
        $(LTLINK) -o $@ version.o $(OBJS) $(LIBS)
 
-version.c: ${OBJS} ${LDAP_LIBDEPEND}
+version.c: $(OBJS) $(XLIBS)
        @-$(RM) $@
        $(MKVERSION) in.xfingerd > $@
 
index 260fefcae942a18835dac2e4737d0169db83ed30..efd93bf525dc4a74d656b47539fa2d25baea9719 100644 (file)
@@ -10,13 +10,13 @@ OBJS=       main.o
 LDAP_INCDIR= ../../include
 LDAP_LIBDIR= ../../libraries
 
-XLIBS =  -lldap -llber -llutil
+XLIBS =  $(LDAP_L)
 XXLIBS = $(SECURITY_LIBS) $(LUTIL_LIBS)
 
 mail500 : version.o
        $(LTLINK) -o $@ version.o $(OBJS) $(LIBS)
 
-version.c: ${OBJS} $(LDAP_LIBDEPEND)
+version.c: $(OBJS) $(XLIBS)
        @-$(RM) $@
        $(MKVERSION) mail500 > $@
 
index 5bff81dd2f667cd8ff71652c5e9d13d58fa709dc..5c81f577ea7f559f939394c489c156ed59fa3816 100644 (file)
@@ -10,13 +10,13 @@ OBJS=       main.o
 LDAP_INCDIR= ../../include
 LDAP_LIBDIR= ../../libraries
 
-XLIBS =  -lldap -llber -llutil
+XLIBS =  $(LDAP_L)
 XXLIBS = $(SECURITY_LIBS) $(LUTIL_LIBS)
 
 maildap : version.o
        $(LTLINK) -o $@ version.o $(OBJS) $(LIBS)
 
-version.c: ${OBJS} $(LDAP_LIBDEPEND)
+version.c: $(OBJS) $(XLIBS)
        @-$(RM) $@
        $(MKVERSION) maildap > $@
 
index c120fd4c6804ec9abba5b8df145977aff0c4ba5f..54e77fa8c61d4595752cc0a6f9245417c206b480 100644 (file)
@@ -10,7 +10,7 @@ OBJS  = ldapsearch.o ldapmodify.o ldapdelete.o ldapmodrdn.o \
 LDAP_INCDIR= ../../include       
 LDAP_LIBDIR= ../../libraries
 
-XLIBS =  -llutil -lldif -lldap -llber
+XLIBS =  $(LDAP_LIBLDIF_A) $(LDAP_L)
 XXLIBS = $(SECURITY_LIBS) $(LDIF_LIBS) $(LUTIL_LIBS)
 
 XSRCS  = ldsversion.c ldmversion.c lddversion.c ldrversion.c \
@@ -46,31 +46,31 @@ ldapadd:    ldapmodify
        $(LN_H) ldapmodify$(EXEEXT) ldapadd$(EXEEXT)
 
 
-ldsversion.c: ldapsearch.o $(LDAP_LIBDEPEND)
+ldsversion.c: ldapsearch.o $(XLIBS)
        @-$(RM) $@
        $(MKVERSION) ldapsearch > $@
 
-ldmversion.c: ldapmodify.o $(LDAP_LIBDEPEND)
+ldmversion.c: ldapmodify.o $(XLIBS)
        @-$(RM) $@
        $(MKVERSION) ldapmodify > $@
 
-lddversion.c: ldapdelete.o $(LDAP_LIBDEPEND)
+lddversion.c: ldapdelete.o $(XLIBS)
        @-$(RM) $@
        $(MKVERSION) ldapdelete > $@
 
-ldpversion.c: ldappasswd.o $(LDAP_LIBDEPEND)
+ldpversion.c: ldappasswd.o $(XLIBS)
        @-$(RM) $@
        $(MKVERSION) ldappasswd > $@
 
-ldrversion.c: ldapmodrdn.o $(LDAP_LIBDEPEND)
+ldrversion.c: ldapmodrdn.o $(XLIBS)
        @-$(RM) $@
        $(MKVERSION) ldapmodrdn > $@
 
-ldwversion.c: ldapwhoami.o $(LDAP_LIBDEPEND)
+ldwversion.c: ldapwhoami.o $(XLIBS)
        @-$(RM) $@
        $(MKVERSION) ldapwhoami > $@
 
-ldcversion.c: ldapcompare.o $(LDAP_LIBDEPEND)
+ldcversion.c: ldapcompare.o $(XLIBS)
        @-$(RM) $@
        $(MKVERSION) ldapcompare > $@
 
index fcf82469deab8f9cf3d4868d80122836671c7495..c06a62b8d3e2ccf5d3f6a41e38c00bf8c313632b 100644 (file)
@@ -13,13 +13,13 @@ PROGRAMS = $(@PLAT@_PRGS)
 LDAP_INCDIR= ../../include       
 LDAP_LIBDIR= ../../libraries
 
-XLIBS =  -llutil -lldif -lldap -llber
+XLIBS =  $(LDAP_L)
 XXLIBS = $(TERMCAP_LIBS) $(SECURITY_LIBS) $(LDIF_LIBS) $(LUTIL_LIBS)
 
 ud : version.o
        $(LTLINK) -o $@ version.o $(OBJS) $(LIBS)
 
-version.c: ${OBJS} $(LDAP_LIBDEPEND)
+version.c: ${OBJS} $(XLIBS)
        @-$(RM) $@
        $(MKVERSION) -s -c -n Version UserDirectory > $@
 
index b8e8e37ac27a7790df9bb1f27289455fa9efd625..9fa7ad4f5773d8853f4947d0ee8a5a8e14f394d8 100644 (file)
 /* Define if you have the <dirent.h> header file.  */
 #undef HAVE_DIRENT_H
 
-/* Define if you have the <dlfcn.h> header file.  */
-#undef HAVE_DLFCN_H
-
 /* Define if you have the <errno.h> header file.  */
 #undef HAVE_ERRNO_H
 
index 97d94927fdcfc6a68d8f3ae9f6d9c2197ba13a02..6551c8a022cc03e5a47e7159ef0800a8f6a456ff 100644 (file)
@@ -14,7 +14,7 @@ LDAP_LIBDIR= ../../libraries
 
 LIBRARY = libavl.a
 PROGRAMS       = testavl
-XLIBS = -lavl -llber
+XLIBS = $(LIBRARY) $(LDAP_LIBLBER_LA)
 
-testavl:       $(LIBRARY) testavl.o
+testavl:       $(XLIBS) testavl.o
        $(LTLINK) -o $@ testavl.o $(LIBS)
index a5764cf78921d4175fa5d84bda2c56c5e6e69dd4..4687775b079f5375284ae7cfa3835afe422396a7 100644 (file)
@@ -6,7 +6,6 @@
 ##
 
 LIBRARY = liblber.la
-XLIBRARY = ../liblber.a
 
 NT_SRCS = nt_err.c
 NT_OBJS = nt_err.lo
@@ -24,15 +23,15 @@ PROGRAMS= dtest etest idtest
 LDAP_INCDIR= ../../include       
 LDAP_LIBDIR= ../../libraries       
 
-XLIBS = -llber
+XLIBS = $(LIBRARY)
 XXLIBS = 
 NT_LINK_LIBS = $(AC_LIBS)
 
-dtest:    $(LIBRARY) dtest.o
+dtest:    $(XLIBS) dtest.o
        $(LTLINK) -o $@ dtest.o $(LIBS)
-etest:  $(LIBRARY) etest.o
+etest:  $(XLIBS) etest.o
        $(LTLINK) -o $@ etest.o $(LIBS)
-idtest:  $(LIBRARY) idtest.o
+idtest:  $(XLIBS) idtest.o
        $(LTLINK) -o $@ idtest.o $(LIBS)
 
 install-local: FORCE
index 20feba94717391228fb9f5486f1cab89e24d992f..df89183eb27da648d63607d97d341076d58dfbbb 100644 (file)
@@ -5,7 +5,6 @@
 ## Makefile.in for LDAP -lldap
 ##
 LIBRARY = libldap.la
-XLIBRARY = ../libldap.a
 
 PROGRAMS = apitest dntest ftest ltest
 
@@ -33,17 +32,17 @@ LDAP_LIBDIR= ../../libraries
 
 LIB_DEFS = -DLDAP_LIBRARY
 
-XLIBS = -lldap -llber -llutil
+XLIBS = $(LIBRARY) $(LDAP_LIBLBER_LA) $(LDAP_LIBLUTIL_A)
 XXLIBS = $(SECURITY_LIBS) $(LUTIL_LIBS)
 NT_LINK_LIBS = -llber $(AC_LIBS) $(SECURITY_LIBS)
 
-apitest:       $(LIBRARY) apitest.o $(LDAP_LIBLBER_DEPEND)
+apitest:       $(XLIBS) apitest.o
        $(LTLINK) -o $@ apitest.o $(LIBS)
-dntest:        $(LIBRARY) dntest.o $(LDAP_LIBLBER_DEPEND)
+dntest:        $(XLIBS) dntest.o
        $(LTLINK) -o $@ dntest.o $(LIBS)
-ftest: $(LIBRARY) ftest.o $(LDAP_LIBLBER_DEPEND)
+ftest: $(XLIBS) ftest.o
        $(LTLINK) -o $@ ftest.o $(LIBS)
-ltest: $(LIBRARY) test.o $(LDAP_LIBLBER_DEPEND)
+ltest: $(XLIBS) test.o
        $(LTLINK) -o $@ test.o $(LIBS)
 
 CFFILES=ldap.conf ldapfilter.conf
index 87778cbde2e53d027b7cde760a2c3f0615db577f..98b567860b2fb55fd6ee57f0fd0bb21b12e17108 100644 (file)
@@ -5,7 +5,6 @@
 ## Makefile.in for LDAP -lldap
 ##
 LIBRARY = libldap_r.la
-XLIBRARY = ../libldap_r.a
 
 PROGRAMS = apitest ltest
 
@@ -41,10 +40,10 @@ LDAP_LIBDIR= ../../libraries
 LIB_DEFS = -DLDAP_LIBRARY
 
 XDEFS = -DLDAP_R_COMPILE -I$(XXDIR)
-XLIBS = -lldap_r -llber -llutil
+XLIBS = $(LIBRARY) $(LDAP_LIBLBER_LA) $(LDAP_LIBLUTIL_A)
 XXLIBS = $(SECURITY_LIBS) $(LUTIL_LIBS)
 XXXLIBS = $(LTHREAD_LIBS)
-NT_LINK_LIBS = -llber $(AC_LIBS) $(SECURITY_LIBS)
+NT_LINK_LIBS = $(LDAP_LIBLBER_LA) $(AC_LIBS) $(SECURITY_LIBS)
 
 .links : Makefile
        @for i in $(XXSRCS); do \
@@ -60,9 +59,9 @@ clean-local: FORCE
 
 depend-common: .links
 
-apitest:       $(LIBRARY) apitest.o $(LDAP_LIBLBER_DEPEND)
+apitest:       $(XLIBS) apitest.o
        $(LTLINK) -o $@ apitest.o $(LIBS)
-ltest: $(LIBRARY) test.o $(LDAP_LIBLBER_DEPEND)
+ltest: $(XLIBS) test.o
        $(LTLINK) -o $@ test.o $(LIBS)
 
 install-local: $(CFFILES) FORCE
index 052a3da0d1a5493f8eb66676e0af014dbb342a84..da07329ccdd45058a1dd1a78719488c29a59640b 100644 (file)
@@ -12,6 +12,6 @@ OBJS          = ldbm.o
 LDAP_INCDIR= ../../include       
 LDAP_LIBDIR= ../../libraries
 
-XLIBS          = -lldbm -lavl
+XLIBS          = $(LIBRARY)
 XXLIBS         = $(LDBM_LIBS)
 
index 13d3bd7d5aa48a82218d56b10a1e081c1e9160db..a243aac30636b216453c462c3727e1492c06cfda 100644 (file)
@@ -13,13 +13,13 @@ XXSRCS      = ucdata.c ucgendat.c ure.c urestubs.c
 SRCS   = ucstr.c
 OBJS   = ucdata.o ure.o urestubs.o ucstr.o
 
-XLIB = -llunicode
+XLIB = $(LIBRARY)
 PROGRAMS = ucgendat
 
 LDAP_INCDIR= ../../include       
 LDAP_LIBDIR= ../../libraries
 
-ucgendat: $(LIBRARY) ucgendat.o
+ucgendat: $(XLIBS) ucgendat.o
        $(LTLINK) -o $@ ucgendat.o $(LIBS)
        ./ucgendat $(srcdir)/UnicodeData.txt -x $(srcdir)/CompositionExclusions.txt
 
index 20e89de8aaed272a34c94f4e17a0237431ac0f73..1f1edd8064baa5f3ead7f1d4b6910ebaf051bf78 100644 (file)
@@ -19,9 +19,10 @@ LDAP_LIBDIR= ../../libraries
 
 LIBRARY = librewrite.a
 PROGRAMS       = rewrite
-XLIBS = -lrewrite -lavl -llutil -lldap_r -llber
+XLIBS = $(LIBRARY) $(LDAP_LIBAVL_A) $(LDAP_LIBLUTIL_A) \
+       $(LDAP_LIBLDAP_R_LA) $(LDAP_LIBLBER_LA)
 XXLIBS  = $(SECURITY_LIBS) $(LDIF_LIBS) $(LUTIL_LIBS)
 XXXLIBS = $(LTHREAD_LIBS)
 
-rewrite:       $(LIBRARY) rewrite.o parse.o
+rewrite:       $(XLIBS) rewrite.o parse.o
        $(LTLINK) -o $@ rewrite.o parse.o $(LIBS)
index f977e9c1e6657f0ba9167dd0b67a1e78e537fa9b..2d77b635eeaf34ecab23a4d96c64d2346e86fcc7 100644 (file)
@@ -46,8 +46,7 @@ SLAPD_DYNAMIC_BACKENDS=@SLAPD_DYNAMIC_BACKENDS@
 XDEFS = $(MODULES_CPPFLAGS)
 XLDFLAGS = $(MODULES_LDFLAGS) $(SLAPD_MODULES)
 
-# $(LTHREAD_LIBS) must be last
-XLIBS = libbackends.a -lavl @LDBM_LIB@ -lldif -llutil -llunicode -lldap_r -llber
+XLIBS = libbackends.a $(SLAPD_L)
 XXLIBS = $(LDBM_LIBS) $(SLAPD_LIBS) $(SECURITY_LIBS) $(LDIF_LIBS) $(LUTIL_LIBS)
 XXXLIBS = $(LTHREAD_LIBS) $(MODULES_LIBS)
 
@@ -59,7 +58,7 @@ all-local-srv: all-cffiles
 NT_SLAPD_DEPENDS = slapd.exp
 NT_SLAPD_OBJECTS = slapd.exp symdummy.o $(OBJS) version.o
 
-UNIX_SLAPD_DEPENDS = libbackends.a version.o
+UNIX_SLAPD_DEPENDS = libbackends.a version.o $(SLAP_L)
 UNIX_SLAPD_OBJECTS = $(OBJS) version.o
 
 SLAPD_DEPENDS = $(@PLAT@_SLAPD_DEPENDS)
index e95847692585d9c7f4a8fe1ee6249476a7d3bdfd..2377a39ca151bba5bc00d153725ddc279b4a6a63 100644 (file)
@@ -25,7 +25,7 @@ SLAPD_MODULES = @SLAPD_MODULES_LIST@
 XDEFS = $(MODULES_CPPFLAGS)
 XLDFLAGS = $(MODULES_LDFLAGS) $(SLAPD_MODULES)
 
-XLIBS = -lavl -lldif @LDBM_LIB@ -llutil -llunicode -lldap_r -llber
+XLIBS = $(SLAPD_L) $(LDBM_LIBS)
 XXLIBS = $(SLAPD_LIBS) \
        $(LDBM_LIBS) $(SECURITY_LIBS) \
        $(LDIF_LIBS) $(LUTIL_LIBS)
@@ -55,16 +55,16 @@ build-progs: $(PROGRAMS)
 #
 # SLAP Tools
 #
-slapadd:       slapadd.o ../libbackends.a $(SLAPOBJS) $(SLAPD_LIBDEPEND
+slapadd:       slapadd.o ../libbackends.a $(SLAPOBJS) $(SLAPD_L) 
        $(LTLINK) -o $@ slapadd.o $(SLAPOBJS) ../libbackends.a $(LIBS)
 
-slapcat:       slapcat.o ../libbackends.a $(SLAPOBJS) $(SLAPD_LIBDEPEND
+slapcat:       slapcat.o ../libbackends.a $(SLAPOBJS) $(SLAPD_L) 
        $(LTLINK) -o $@ slapcat.o $(SLAPOBJS) ../libbackends.a $(LIBS)
 
-slapindex:     slapindex.o ../libbackends.a $(SLAPOBJS) $(SLAPD_LIBDEPEND
+slapindex:     slapindex.o ../libbackends.a $(SLAPOBJS) $(SLAPD_L) 
        $(LTLINK) -o $@ slapindex.o $(SLAPOBJS) ../libbackends.a $(LIBS)
 
-slappasswd:            slappasswd.o $(SLAPD_LIBDEPEND
+slappasswd:            slappasswd.o $(SLAPD_L) 
        $(LTLINK) -o $@ slappasswd.o $(LIBS)
 
 clean-local: FORCE
index 03025a62d35844a5ab8d5d15933ca3343e15b694..30de82886cf60521712367cb120a9aa26cde6d86 100644 (file)
@@ -28,7 +28,7 @@ BUILD_SRV = @BUILD_SLURPD@
 all-local-srv:         $(PROGRAMS)
 
 # $(LTHREAD_LIBS) must be last!
-XLIBS = -lldif -lldap_r -llber -llutil
+XLIBS = $(SLURPD_L)
 XXLIBS = $(SLURPD_LIBS) $(SECURITY_LIBS) \
        $(LDIF_LIBS) $(LUTIL_LIBS)
 XXXLIBS = $(LTHREAD_LIBS)
@@ -39,7 +39,7 @@ slurpd:       version.o
 sslurpd:       version.o
        $(LTLINK) -static -o $@ $(OBJS) version.o $(LIBS)
 
-version.c: $(OBJS) $(LDAP_LIBDEPEND) $(LDAP_LIBTHREAD_DEPEND)
+version.c: $(OBJS) $(SLURPD_L)
        @-$(RM) $@
        $(MKVERSION) slurpd > $@
 
index 97cdcb64b8c25ea1dfa8f26c7fdd6824e3fb0f4d..58ee142a0f28241aea00d95ec29625a6ff35867c 100644 (file)
@@ -12,7 +12,7 @@ SRCS     = slapd-tester.c slapd-search.c slapd-read.c slapd-addel.c
 LDAP_INCDIR= ../../include
 LDAP_LIBDIR= ../../libraries
 
-XLIBS    = -lldap -llber
+XLIBS    = $(LDAP_LIBLDAP_LA) $(LDAP_LIBLBER_LA)
 XXLIBS = $(SECURITY_LIBS) $(LUTIL_LIBS)
 
 # build-tools: FORCE
@@ -20,16 +20,16 @@ XXLIBS      = $(SECURITY_LIBS) $(LUTIL_LIBS)
 
 # load-tools: $(PROGRAMS)
 
-slapd-tester: slapd-tester.o 
+slapd-tester: slapd-tester.o $(XLIBS)
        $(LTLINK) -o $@ slapd-tester.o $(LIBS)
 
-slapd-search: slapd-search.o $(LDAP_LIBLBER_DEPEND) $(LDAP_LIBLDAP_DEPEND)
+slapd-search: slapd-search.o $(XLIBS)
        $(LTLINK) -o $@ slapd-search.o $(LIBS)
 
-slapd-read: slapd-read.o $(LDAP_LIBLBER_DEPEND) $(LDAP_LIBLDAP_DEPEND)
+slapd-read: slapd-read.o $(XLIBS)
        $(LTLINK) -o $@ slapd-read.o $(LIBS)
 
-slapd-addel: slapd-addel.o $(LDAP_LIBLBER_DEPEND) $(LDAP_LIBLDAP_DEPEND)
+slapd-addel: slapd-addel.o $(XLIBS)
        $(LTLINK) -o $@ slapd-addel.o $(LIBS)