From 3152932e96dd938201e8ac3c5ece7c2a2f73d3f7 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 4 Dec 2003 22:38:54 +0000 Subject: [PATCH] Moved ldbm into back-ldbm. No more libldbm. --- build/top.mk | 7 +- libraries/libldbm/Makefile.in | 25 ---- libraries/libldbm/libldbm.dsp | 137 ------------------ servers/slapd/back-ldbm/Makefile.in | 14 +- .../slapd/back-ldbm}/ldbm.c | 0 {include => servers/slapd/back-ldbm}/ldbm.h | 0 6 files changed, 5 insertions(+), 178 deletions(-) delete mode 100644 libraries/libldbm/Makefile.in delete mode 100644 libraries/libldbm/libldbm.dsp rename {libraries/libldbm => servers/slapd/back-ldbm}/ldbm.c (100%) rename {include => servers/slapd/back-ldbm}/ldbm.h (100%) diff --git a/build/top.mk b/build/top.mk index 0afde43323..40dc1da706 100644 --- a/build/top.mk +++ b/build/top.mk @@ -152,10 +152,6 @@ 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_LIBLDBM_A_no = -LDAP_LIBLDBM_A_yes = $(LDAP_LIBDIR)/libldbm/libldbm.a - -LDAP_LIBLDBM_A = $(LDAP_LIBLDBM_A_@BUILD_LDBM@) LDAP_LIBREWRITE_A = $(LDAP_LIBDIR)/librewrite/librewrite.a LDAP_LIBLUNICODE_A = $(LDAP_LIBDIR)/liblunicode/liblunicode.a LDAP_LIBLUTIL_A = $(LDAP_LIBDIR)/liblutil/liblutil.a @@ -164,8 +160,7 @@ LDAP_L = $(LDAP_LIBLUTIL_A) \ $(LDAP_LIBLDAP_LA) $(LDAP_LIBLBER_LA) SLURPD_L = $(LDAP_LIBLUTIL_A) \ $(LDAP_LIBLDAP_R_LA) $(LDAP_LIBLBER_LA) -SLAPD_L = $(LDAP_LIBLDBM_A) \ - $(LDAP_LIBLUNICODE_A) $(LDAP_LIBREWRITE_A) \ +SLAPD_L = $(LDAP_LIBLUNICODE_A) $(LDAP_LIBREWRITE_A) \ $(SLURPD_L) WRAP_LIBS = @WRAP_LIBS@ diff --git a/libraries/libldbm/Makefile.in b/libraries/libldbm/Makefile.in deleted file mode 100644 index 11ecd5de1c..0000000000 --- a/libraries/libldbm/Makefile.in +++ /dev/null @@ -1,25 +0,0 @@ -# Makefile for -lldbm -# $OpenLDAP$ -## This work is part of OpenLDAP Software . -## -## Copyright 1998-2003 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 in the file LICENSE in the -## top-level directory of the distribution or, alternatively, at -## . - -LIBRARY = libldbm.a -SRCS = ldbm.c -OBJS = ldbm.o - -LDAP_INCDIR= ../../include -LDAP_LIBDIR= ../../libraries - -XLIBS = $(LIBRARY) -XXLIBS = $(LDBM_LIBS) - diff --git a/libraries/libldbm/libldbm.dsp b/libraries/libldbm/libldbm.dsp deleted file mode 100644 index 5c2a9e94d2..0000000000 --- a/libraries/libldbm/libldbm.dsp +++ /dev/null @@ -1,137 +0,0 @@ -# Microsoft Developer Studio Project File - Name="libldbm" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 5.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Static Library" 0x0104 - -CFG=libldbm - Win32 Single Debug -!MESSAGE This is not a valid makefile. To build this project using NMAKE, -!MESSAGE use the Export Makefile command and run -!MESSAGE -!MESSAGE NMAKE /f "libldbm.mak". -!MESSAGE -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "libldbm.mak" CFG="libldbm - Win32 Single Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "libldbm - Win32 Release" (based on "Win32 (x86) Static Library") -!MESSAGE "libldbm - Win32 Debug" (based on "Win32 (x86) Static Library") -!MESSAGE "libldbm - Win32 Single Debug" (based on "Win32 (x86) Static Library") -!MESSAGE "libldbm - Win32 Single Release" (based on\ - "Win32 (x86) Static Library") -!MESSAGE - -# Begin Project -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe - -!IF "$(CFG)" == "libldbm - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "Release" -# PROP BASE Intermediate_Dir "Release" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "..\..\Release" -# PROP Intermediate_Dir "..\..\Release\libldbm" -# PROP Target_Dir "" -RSC=rc.exe -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c -# ADD CPP /nologo /MT /W3 /GX /O2 /I "..\..\include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LIB32=link.exe -lib -# ADD BASE LIB32 /nologo -# ADD LIB32 /nologo /out:"..\..\Release\oldbm32.lib" - -!ELSEIF "$(CFG)" == "libldbm - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "Debug" -# PROP BASE Intermediate_Dir "Debug" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "..\..\Debug" -# PROP Intermediate_Dir "..\..\Debug\libldbm" -# PROP Target_Dir "" -RSC=rc.exe -# ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c -# ADD CPP /nologo /MTd /W3 /GX /Z7 /Od /I "..\..\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /FR /YX /FD /c -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LIB32=link.exe -lib -# ADD BASE LIB32 /nologo -# ADD LIB32 /nologo /out:"..\..\Debug\oldbm32.lib" - -!ELSEIF "$(CFG)" == "libldbm - Win32 Single Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "libldbm_" -# PROP BASE Intermediate_Dir "libldbm_" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "..\..\SDebug" -# PROP Intermediate_Dir "..\..\SDebug\libldbm" -# PROP Target_Dir "" -RSC=rc.exe -# ADD BASE CPP /nologo /MTd /W3 /GX /Z7 /Od /I "..\..\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c -# ADD CPP /nologo /W3 /GX /Z7 /Od /I "..\..\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /FR /YX /FD /c -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LIB32=link.exe -lib -# ADD BASE LIB32 /nologo /out:"..\Debug\oldbm32.lib" -# ADD LIB32 /nologo /out:"..\..\SDebug\oldbm32.lib" - -!ELSEIF "$(CFG)" == "libldbm - Win32 Single Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "libldbm0" -# PROP BASE Intermediate_Dir "libldbm0" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "..\..\SRelease" -# PROP Intermediate_Dir "..\..\SRelease\libldbm" -# PROP Target_Dir "" -RSC=rc.exe -# ADD BASE CPP /nologo /MT /W3 /GX /O2 /I "..\..\include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c -# ADD CPP /nologo /W3 /GX /O2 /I "..\..\include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LIB32=link.exe -lib -# ADD BASE LIB32 /nologo /out:"..\Release\oldbm32.lib" -# ADD LIB32 /nologo /out:"..\..\SRelease\oldbm32.lib" - -!ENDIF - -# Begin Target - -# Name "libldbm - Win32 Release" -# Name "libldbm - Win32 Debug" -# Name "libldbm - Win32 Single Debug" -# Name "libldbm - Win32 Single Release" -# Begin Source File - -SOURCE=.\ldbm.c -# End Source File -# Begin Source File - -SOURCE=..\..\include\ldbm.h -# End Source File -# End Target -# End Project diff --git a/servers/slapd/back-ldbm/Makefile.in b/servers/slapd/back-ldbm/Makefile.in index 686f87d8b5..f0f8dff23b 100644 --- a/servers/slapd/back-ldbm/Makefile.in +++ b/servers/slapd/back-ldbm/Makefile.in @@ -18,13 +18,13 @@ SRCS = idl.c add.c search.c cache.c dbcache.c dn2id.c entry.c \ compare.c modify.c modrdn.c delete.c init.c \ config.c bind.c attr.c filterindex.c close.c \ alias.c tools.c key.c extended.c \ - referral.c operational.c + referral.c operational.c ldbm.c OBJS = idl.lo add.lo search.lo cache.lo dbcache.lo dn2id.lo entry.lo \ id2entry.lo index.lo id2children.lo nextid.lo \ compare.lo modify.lo modrdn.lo delete.lo init.lo \ config.lo bind.lo attr.lo filterindex.lo close.lo \ alias.lo tools.lo key.lo extended.lo \ - referral.lo operational.lo $(@BUILD_LDBM@_OBJS) + referral.lo operational.lo ldbm.lo LDAP_INCDIR= ../../../include LDAP_LIBDIR= ../../../libraries @@ -33,15 +33,12 @@ BUILD_OPT = "--enable-ldbm" BUILD_MOD = @BUILD_LDBM@ BUILD_MOD_DYNAMIC = @BUILD_LDBM_DYNAMIC@ -mod_SRCS = ldbm.c -mod_OBJS = ldbm.lo - mod_DEFS = -DSLAPD_IMPORT MOD_DEFS = $(@BUILD_LDBM@_DEFS) shared_LDAP_LIBS = $(LDAP_LIBLDAP_R_LA) $(LDAP_LIBLBER_LA) -NT_LINK_LIBS = -L.. -lslapd $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS) $(LDBM_LIBS) -UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS) $(LDBM_LIBS) +NT_LINK_LIBS = -L.. -lslapd $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS) +UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS) LIBBASE = back_ldbm @@ -54,7 +51,4 @@ all-local-lib: ../.backend ../.backend: lib$(LIBBASE).a @touch $@ -ldbm.c : $(srcdir)/../../../libraries/libldbm/ldbm.c - $(RM) $@; $(LN_S) $(srcdir)/../../../libraries/libldbm/ldbm.c $@ - depend-common: $(XXSRCS) diff --git a/libraries/libldbm/ldbm.c b/servers/slapd/back-ldbm/ldbm.c similarity index 100% rename from libraries/libldbm/ldbm.c rename to servers/slapd/back-ldbm/ldbm.c diff --git a/include/ldbm.h b/servers/slapd/back-ldbm/ldbm.h similarity index 100% rename from include/ldbm.h rename to servers/slapd/back-ldbm/ldbm.h -- 2.39.5