diff options
Diffstat (limited to 'ldap/servers')
36 files changed, 0 insertions, 4709 deletions
diff --git a/ldap/servers/Makefile b/ldap/servers/Makefile deleted file mode 100644 index 3ec9bf18..00000000 --- a/ldap/servers/Makefile +++ /dev/null @@ -1,109 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -# GNU Makefile for ldap/servers -# - -BUILD_ROOT = ../.. -LDAP_SRC = ../ - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -include $(BUILD_ROOT)/nsdefs.mk -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk - -ifeq ($(ARCH), WINNT) -PRE_SLAPD_EXTRAS=_ntmsgdll -POST_SLAPD_EXTRAS=_ntwdog _ntperfdll -endif - -all: $(PRE_SLAPD_EXTRAS) _slapd $(POST_SLAPD_EXTRAS) _backends _plugins _snmp _slapdtools - - -ifeq ($(ARCH), HPUX) -# slapd depends on liblcoll.sl on HPUX.... -_slapd: _collation_plugin - cd slapd; $(MAKE) $(MFLAGS) all -else -_slapd: - cd slapd; $(MAKE) $(MFLAGS) all -endif - -_collation_plugin: - cd plugins/collation; $(MAKE) $(MFLAGS) all - -_backends: - cd slapd/back-ldbm; $(MAKE) $(MFLAGS) all -# we aren't using back-ldif yet -# cd slapd/back-ldif; $(MAKE) $(MFLAGS) all - -_plugins: - cd plugins; $(MAKE) $(MFLAGS) all - -_snmp: - cd snmp; $(MAKE) $(MFLAGS) all - -_slapdtools: - cd slapd/tools; $(MAKE) $(MFLAGS) all - -ifeq ($(ARCH), WINNT) -_ntmsgdll: - cd slapd/ntmsgdll; $(MAKE) $(MFLAGS) all - -_ntwdog: - cd slapd/ntwdog; $(MAKE) $(MFLAGS) all - -_ntperfdll: - cd slapd/ntperfdll; $(MAKE) $(MFLAGS) all -endif - -clean: - cd slapd; $(MAKE) $(MFLAGS) clean -ifeq ($(ARCH), WINNT) - cd slapd/ntmsgdll; $(MAKE) $(MFLAGS) clean - cd slapd/ntwdog; $(MAKE) $(MFLAGS) clean - cd slapd/ntperfdll; $(MAKE) $(MFLAGS) clean -endif - cd slapd/back-ldbm; $(MAKE) $(MFLAGS) clean - cd slapd/back-ldif; $(MAKE) $(MFLAGS) clean - cd plugins; $(MAKE) $(MFLAGS) clean - cd slapd/tools; $(MAKE) $(MFLAGS) clean - diff --git a/ldap/servers/plugins/Makefile b/ldap/servers/plugins/Makefile deleted file mode 100644 index 1a4afc4b..00000000 --- a/ldap/servers/plugins/Makefile +++ /dev/null @@ -1,152 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -# -# GNU Makefile for Directory Server and LDAP SDK libraries -# - -BUILD_ROOT = ../../.. -LDAP_SRC = $(BUILD_ROOT)/ldap - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk - -PLUGINS = _referint _collation _syntaxes _passthru _utils _uiduniq _roles _acl _replication _cos _pwdstorage _rever _chainingdb _distrib _retrocl _statechange _http _views _dna -ifneq ($(ARCH), WINNT) -ifneq ($(BRAND), redhat) -PLUGINS += _pam_passthru -endif -endif - -all: $(PLUGINS) - -_utils: - cd shared; $(MAKE) $(MFLAGS) all -_rever: - cd rever; $(MAKE) $(MFLAGS) all - -_chainingdb: - cd chainingdb; $(MAKE) $(MFLAGS) all - -_referint: - cd referint; $(MAKE) $(MFLAGS) all - -_collation: - cd collation; $(MAKE) $(MFLAGS) all - -_syntaxes: - cd syntaxes; $(MAKE) $(MFLAGS) all - -_passthru: - cd passthru; $(MAKE) $(MFLAGS) all - -ifneq ($(ARCH), WINNT) -_pam_passthru: - cd pam_passthru; $(MAKE) $(MFLAGS) all -endif - -_uiduniq: - cd uiduniq; $(MAKE) $(MFLAGS) all - -_replication: - cd replication; $(MAKE) $(MFLAGS) all - -_acl: - cd acl; $(MAKE) $(MFLAGS) all - -_pwdstorage: - cd pwdstorage; $(MAKE) $(MFLAGS) all - -_distrib: - cd distrib; $(MAKE) $(MFLAGS) all - -_roles: - cd roles; $(MAKE) $(MFLAGS) all - -_cos: - cd cos; $(MAKE) $(MFLAGS) all - -_statechange: - cd statechange; $(MAKE) $(MFLAGS) all - -_retrocl: - cd retrocl; $(MAKE) $(MFLAGS) all - -_http: - cd http; $(MAKE) $(MFLAGS) all - -# Note: stops building/packaging presence from 7.1 -_presence: - cd presence; $(MAKE) $(MFLAGS) all - -_views: - cd views; $(MAKE) $(MFLAGS) all - -_dna: - cd dna; $(MAKE) $(MFLAGS) all - -clean: - cd rever; $(MAKE) $(MFLAGS) clean - cd referint; $(MAKE) $(MFLAGS) clean - cd collation; $(MAKE) $(MFLAGS) clean - cd syntaxes; $(MAKE) $(MFLAGS) clean - cd passthru; $(MAKE) $(MFLAGS) clean -ifneq ($(ARCH), WINNT) - cd pam_passthru; $(MAKE) $(MFLAGS) clean -endif - cd shared; $(MAKE) $(MFLAGS) clean - cd uiduniq; $(MAKE) $(MFLAGS) clean - cd replication; $(MAKE) $(MFLAGS) clean - cd acl; $(MAKE) $(MFLAGS) clean - cd cos; $(MAKE) $(MFLAGS) clean - cd pwdstorage; $(MAKE) $(MFLAGS) clean - cd roles; $(MAKE) $(MFLAGS) clean - cd chainingdb; $(MAKE) $(MFLAGS) clean - cd distrib; $(MAKE) $(MFLAGS) clean - cd retrocl; $(MAKE) $(MFLAGS) clean - cd statechange; $(MAKE) $(MFLAGS) clean - cd http; $(MAKE) $(MFLAGS) clean - cd views; $(MAKE) $(MFLAGS) clean - #cd presence; $(MAKE) $(MFLAGS) clean - cd dna; $(MAKE) $(MFLAGS) clean - -veryclean: clean diff --git a/ldap/servers/plugins/acl/Makefile b/ldap/servers/plugins/acl/Makefile deleted file mode 100644 index 53204e5e..00000000 --- a/ldap/servers/plugins/acl/Makefile +++ /dev/null @@ -1,124 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -# -# GNU Makefile for Directory Server acl-plugin.so acl plugins -# - -LDAP_SRC = ../../.. -BUILD_ROOT = ../../../.. - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST = $(OBJDIR)/lib/libacl -LIBDIR = $(LDAP_PLUGIN_RELDIR) - -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk - -ifeq ($(ARCH), WINNT) -DEF_FILE:=./libacl.def -endif - -CFLAGS+=$(SLCFLAGS) - -INCLUDES += -I$(LDAP_SRC)/servers/slapd -I$(ACLINC) - -ACL_OBJS= acl.o acllas.o aclutil.o aclplugin.o aclparse.o acl_ext.o aclproxy.o \ - aclinit.o aclgroup.o aclanom.o acllist.o acleffectiverights.o - -OBJS = $(addprefix $(OBJDEST)/, $(ACL_OBJS)) - -ifeq ($(ARCH), WINNT) -LIBACL_DLL_OBJ = $(addprefix $(OBJDEST)/, acldllmain.o) -endif - -LIBACL= $(addprefix $(LIBDIR)/, $(ACL_DLL).$(DLL_SUFFIX)) - -ifeq ($(ARCH), WINNT) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) -EXTRA_LIBS_DEP += $(LDAPSDK_DEP) $(NSPR_DEP) -EXTRA_LIBS += $(LIBSLAPD) $(NSPRLINK) $(LDAP_LIBAVL) $(LDAP_SDK_LIBLDAP_DLL) -endif - -# ACL plugin depends on libadminutil (through libns-httpd) -EXTRA_LIBS_DEP += $(NSHTTPD_DEP) -EXTRA_LIBS += $(DYN_NSHTTPD) - -ifeq ($(ARCH), WINNT) -EXTRA_LIBS_DEP += $(LIBACCESS_DEP) -EXTRA_LIBS += $(LIBACCESS) -endif - -ifeq ($(ARCH), WINNT) -DLL_LDFLAGS += -def:"./libacl.def" -endif # WINNT - -ifeq ($(ARCH), AIX) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) -EXTRA_LIBS_DEP += $(LDAPSDK_DEP) $(NSPR_DEP) -EXTRA_LIBS += $(LIBSLAPDLINK) $(NSPRLINK) $(LDAP_LIBAVL) $(LDAP_SDK_LIBLDAP_DLL) -EXTRA_LIBS += $(DLL_EXTRA_LIBS) -LD=ld -endif - -ifeq ($(ARCH), HPUX) -EXTRA_LIBS_DEP += $(LDAPSDK_DEP) $(NSPR_DEP) $(SECURITY_DEP) -EXTRA_LIBS += $(DYN_NSHTTPD) $(LDAPLINK) $(SECURITYLINK) $(NSPRLINK) $(ICULINK) -endif - -clientSDK: - -all: $(OBJDEST) $(LIBDIR) $(LIBACL) - -$(LIBACL): $(OBJS) $(LIBACL_DLL_OBJ) $(DEF_FILE) - $(LINK_DLL) $(LIBACL_DLL_OBJ) $(PLATFORMLIBS) $(EXTRA_LIBS) - -veryclean: clean - -clean: - $(RM) $(OBJS) -ifeq ($(ARCH), WINNT) - $(RM) $(LIBACL_DLL_OBJ) -endif - $(RM) $(LIBACL) - -$(OBJDEST): - $(MKDIR) $(OBJDEST) diff --git a/ldap/servers/plugins/chainingdb/Makefile b/ldap/servers/plugins/chainingdb/Makefile deleted file mode 100644 index bc1ef7a0..00000000 --- a/ldap/servers/plugins/chainingdb/Makefile +++ /dev/null @@ -1,124 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -# -# GNU Makefile for Directory Server "Chaining Backend" plugin -# - -LDAP_SRC = ../../.. - -BUILD_ROOT = ../../../.. - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST = $(OBJDIR)/lib/libcb -LIBDIR = $(LDAP_PLUGIN_RELDIR) - -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk - -ifeq ($(ARCH), WINNT) -DEF_FILE:=./libcb.def -endif - -CFLAGS+=$(SLCFLAGS) - -INCLUDES += -I$(LDAP_SRC)/servers/slapd - -CB_OBJS= cb_temp.o cb_init.o cb_config.o cb_instance.o cb_start.o cb_search.o cb_utils.o cb_add.o cb_delete.o cb_schema.o \ -cb_acl.o cb_modify.o cb_compare.o cb_modrdn.o cb_abandon.o cb_conn_stateless.o cb_bind.o cb_unbind.o cb_monitor.o \ -cb_controls.o cb_size.o cb_test.o cb_close.o cb_cleanup.o cb_debug.o - -OBJS = $(addprefix $(OBJDEST)/, $(CB_OBJS)) - -ifeq ($(ARCH), WINNT) -LIBCB_DLL_OBJ = $(addprefix $(OBJDEST)/, cbdllmain.o) -endif - -LIBCB= $(addprefix $(LIBDIR)/, $(CB_DLL).$(DLL_SUFFIX)) - -ifeq ($(ARCH), WINNT) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) $(LDAP_LIBUTIL_DEP) $(LDAP_COMMON_LIBS_DEP) -EXTRA_LIBS_DEP += $(LDAPSDK_DEP) $(SECURITY_DEP) $(NSPR_DEP) -EXTRA_LIBS += $(LIBSLAPD) $(LDAP_SDK_LIBLDAP_DLL) $(LDAP_LIBUTIL) $(LDAP_COMMON_LIBS) $(SECURITYLINK) $(NSPRLINK) - -endif - - -ifeq ($(ARCH), WINNT) -DLL_LDFLAGS += -def:"./libcb.def" -endif # WINNT - -ifeq ($(ARCH), AIX) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) $(LDAP_LIBUTIL_DEP) $(LDAP_COMMON_LIBS_DEP) -EXTRA_LIBS_DEP += $(LDAPSDK_DEP) $(SECURITY_DEP) $(NSPR_DEP) -EXTRA_LIBS += $(LIBSLAPD) $(LDAP_SDK_LIBLDAP_DLL) $(LIBUTIL) $(LDAP_COMMON_LIBS) $(SECURITYLINK) $(NSPRLINK) -EXTRA_LIBS += $(DLL_EXTRA_LIBS) -LD=ld -endif - -ifeq ($(ARCH), HPUX) -EXTRA_LIBS_DEP += $(LDAPSDK_DEP) $(NSPR_DEP) $(SECURITY_DEP) -EXTRA_LIBS += $(LDAPLINK) $(SECURITYLINK) $(NSPRLINK) $(ICULINK) -endif - -clientSDK: - -all: $(OBJDEST) $(LIBDIR) $(LIBCB) - -$(LIBCB): $(OBJS) $(LIBCB_DLL_OBJ) $(DEF_FILE) - $(LINK_DLL) $(LIBCB_DLL_OBJ) $(PLATFORMLIBS) $(EXTRA_LIBS) - -veryclean: clean - -clean: - $(RM) $(OBJS) -ifeq ($(ARCH), WINNT) - $(RM) $(LIBCB_DLL_OBJ) -endif - $(RM) $(LIBCB) - -$(OBJDEST): - $(MKDIR) $(OBJDEST) - -# -# header file dependencies (incomplete) -# -$(OBJS): cb.h diff --git a/ldap/servers/plugins/collation/Makefile b/ldap/servers/plugins/collation/Makefile deleted file mode 100644 index ab48c047..00000000 --- a/ldap/servers/plugins/collation/Makefile +++ /dev/null @@ -1,130 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -LDAP_SRC= ../../.. -BUILD_ROOT= ../../../.. - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST= $(OBJDIR)/lib/libcollation-plugin -LIBDIR = $(LDAP_PLUGIN_RELDIR) - -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk - -INCLUDES+= -I../../slapd -I../../../include -CFLAGS+=$(SLCFLAGS) -DSLAPD_LOGGING - -COLLATION_OBJS= collate.o config.o orfilter.o - -ifeq ($(ARCH), WINNT) -COLLATION_OBJS+= debug.o -COLLATION_DLL_OBJ=$(addprefix $(OBJDEST)/, dllmain.o) -DEF_FILE:=./collation.def -EXTRA_LIBS+= $(NSPRLINK) $(LDAP_SDK_LIBLDAP_DLL) $(LIBSLAPD) -EXTRA_LIBS_DEP+= $(LIBSLAPD_DEP) -EXTRA_LIBS_DEP+=$(LDAPSDK_DEP) -endif - -# INCLUDES+= -I. -I$(ACLINC) -I$(BUILD_ROOT)/lib - -# ICU stuff -INCLUDES+= $(ICU_INCLUDE) -EXTRA_LIBS+=$(ICULINK) - -ifeq ($(ARCH), HPUX) -EXTRA_LIBS_DEP += $(LDAPSDK_DEP) $(NSPR_DEP) $(SECURITY_DEP) -EXTRA_LIBS += $(LDAPLINK) $(SECURITYLINK) $(NSPRLINK) $(ICULINK) -endif - -ifeq ($(ARCH), AIX) -EXTRA_LIBS+= $(LIBSLAPDLINK) $(NSPRLINK) $(LDAPLINK) -EXTRA_LIBS_DEP+= $(LIBSLAPD_DEP) -EXTRA_LIBS_DEP+=$(LDAPSDK_DEP) -LD=ld -endif - -OBJS= $(addprefix $(OBJDEST)/, $(COLLATION_OBJS)) -COLLATION= $(addprefix $(LIBDIR)/, $(COLLATION_DLL).$(DLL_SUFFIX)) - -clientSDK: - -all: $(OBJDEST) $(LIBDIR) $(COLLATION) -ifeq (0, 1) -# Where the heck did the compiler options come from? - @echo ARCH=$(ARCH) - @echo DEBUG=$(DEBUG) - @echo BUILD_OPT=$(BUILD_OPT) - @echo CFLAGS=$(CFLAGS) - @echo " MCC_DEBUG="$(MCC_DEBUG) - @echo " PLATFORMCFLAGS="$(PLATFORMCFLAGS) - @echo " ACFLAGS="$(ACFLAGS) - @echo " EXTRACFLAGS="$(EXTRACFLAGS) - @echo " UNPROTOCFLAGS="$(UNPROTOCFLAGS) - @echo " SLCFLAGS="$(SLCFLAGS) - @echo "ALDFLAGS="$(ALDFLAGS) - @echo "DLL_LDFLAGS="$(DLL_LDFLAGS) - @echo "DLL_EXPORT_FLAGS="$(DLL_EXPORT_FLAGS) -endif - -ifeq ($(ARCH), WINNT) -$(COLLATION): $(OBJS) $(COLLATION_DLL_OBJ) $(EXTRA_LIBS_DEP) $(DEF_FILE) - $(LINK_DLL) $(COLLATION_DLL_OBJ) $(EXTRA_LIBS) /DEF:$(DEF_FILE) -else -ifeq ($(ARCH), AIX) -$(COLLATION): $(OBJS) $(COLLATION_DLL_OBJ) $(EXTRA_LIBS_DEP) - $(LINK_DLL) $(COLLATION_DLL_OBJ) $(EXTRA_LIBS) -else -$(COLLATION): $(OBJS) $(EXTRA_LIBS_DEP) - $(LINK_DLL) $(EXTRA_LIBS) -endif -endif - -veryclean: clean - -clean: - $(RM) $(OBJS) -ifeq ($(ARCH), WINNT) - $(RM) $(COLLATION_DLL_OBJ) -endif - $(RM) $(COLLATION) - -$(OBJDEST): - $(MKDIR) $(OBJDEST) diff --git a/ldap/servers/plugins/cos/Makefile b/ldap/servers/plugins/cos/Makefile deleted file mode 100644 index 7653d698..00000000 --- a/ldap/servers/plugins/cos/Makefile +++ /dev/null @@ -1,107 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -LDAP_SRC = ../../.. -BUILD_ROOT = ../../../.. - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST = $(OBJDIR)/lib/libcos -LIBDIR = $(LDAP_PLUGIN_RELDIR) - -include $(BUILD_ROOT)/nsdefs.mk -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk - -ifeq ($(ARCH), WINNT) -DEF_FILE:=./cos.def -endif - -COS_OBJS = cos.o cos_cache.o -OBJS = $(addprefix $(OBJDEST)/, $(COS_OBJS)) - -COS_DLL = libcos-plugin - -INCLUDES += -I../../slapd -I../../../include -CFLAGS+=$(SLCFLAGS) -DSLAPD_LOGGING - -ifeq ($(ARCH), WINNT) -EXTRA_LIBS_DEP += $(LIBSLAPD) $(NSPR_DEP) $(LDAPSDK_DEP) -EXTRA_LIBS += $(NSPRLINK) $(LIBSLAPD) $(LDAP_SDK_LIBLDAP_DLL) -COS_DLL_OBJ = $(addprefix $(OBJDEST)/, dllmain.o) -endif - -ifeq ($(ARCH), AIX) -EXTRA_LIBS_DEP += $(LIBSLAPD) $(NSPR_DEP) $(LDAPSDK_DEP) -EXTRA_LIBS += $(LIBSLAPDLINK) $(NSPRLINK) $(LDAP_SDK_LIBLDAP_DLL) -LD=ld -endif - -ifeq ($(ARCH), HPUX) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) $(LDAPSDK_DEP) $(NSPR_DEP) $(SECURITY_DEP) -EXTRA_LIBS += $(LDAPLINK) $(SECURITYLINK) $(NSPRLINK) $(ICULINK) -endif - -COS= $(addprefix $(LIBDIR)/, $(COS_DLL).$(DLL_SUFFIX)) - -clientSDK: - -all: $(OBJDEST) $(LIBDIR) $(COS) - -ifeq ($(ARCH), WINNT) -$(COS): $(OBJS) $(COS_DLL_OBJ) $(DEF_FILE) - $(LINK_DLL) $(COS_DLL_OBJ) $(EXTRA_LIBS) /DEF:$(DEF_FILE) -else -$(COS): $(OBJS) $(COS_DLL_OBJ) - $(LINK_DLL) $(COS_DLL_OBJ) $(EXTRA_LIBS) -endif - - -veryclean: clean - -clean: - $(RM) $(OBJS) -ifeq ($(ARCH), WINNT) - $(RM) $(COS_DLL_OBJ) -endif - $(RM) $(COS) - -$(OBJDEST): - $(MKDIR) $(OBJDEST) diff --git a/ldap/servers/plugins/dna/Makefile b/ldap/servers/plugins/dna/Makefile deleted file mode 100644 index bacc3f0f..00000000 --- a/ldap/servers/plugins/dna/Makefile +++ /dev/null @@ -1,115 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2007 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -LDAP_SRC = ../../.. -BUILD_ROOT = ../../../.. - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST = $(OBJDIR)/lib/libdna -LIBDIR = $(LDAP_PLUGIN_RELDIR) - -include $(BUILD_ROOT)/nsdefs.mk -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk - -ifeq ($(ARCH), WINNT) -DEF_FILE:=./dna.def -endif - -DNA_OBJS = dna.o -OBJS = $(addprefix $(OBJDEST)/, $(DNA_OBJS)) - -DNA_DLL = libdna-plugin - -INCLUDES += -I../http -I../../slapd -I../../../include -CFLAGS+=$(SLCFLAGS) -DSLAPD_LOGGING - -ifeq ($(ARCH), WINNT) -EXTRA_LIBS_DEP += $(LIBSLAPD) $(NSPR_DEP) $(LDAPSDK_DEP) -EXTRA_LIBS_DEP += $(LDAP_COMMON_LIBS_DEP) -EXTRA_LIBS += $(NSPRLINK) $(LIBSLAPD) $(LDAP_SDK_LIBLDAP_DLL) -EXTRA_LIBS += $(LDAP_COMMON_LIBS) -DNA_DLL_OBJ = $(addprefix $(OBJDEST)/, dllmain.o) -endif - -ifeq ($(ARCH), AIX) -EXTRA_LIBS_DEP += $(LIBSLAPD) $(NSPR_DEP) $(LDAPSDK_DEP) -EXTRA_LIBS_DEP += $(LDAP_COMMON_LIBS_DEP) -EXTRA_LIBS += $(LIBSLAPDLINK) $(NSPRLINK) $(LDAP_SDK_LIBLDAP_DLL) -EXTRA_LIBS += $(LDAP_COMMON_LIBS) -LD=ld -endif - -ifeq ($(ARCH), HPUX) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) $(LDAPSDK_DEP) $(NSPR_DEP) $(SECURITY_DEP) -EXTRA_LIBS_DEP += $(LDAP_COMMON_LIBS_DEP) -EXTRA_LIBS += $(LDAPLINK) $(SECURITYLINK) $(NSPRLINK) $(ICULINK) -EXTRA_LIBS += $(LDAP_COMMON_LIBS) -endif - -DNA= $(addprefix $(LIBDIR)/, $(DNA_DLL).$(DLL_SUFFIX)) - -clientSDK: - -all: $(OBJDEST) $(LIBDIR) $(DNA) - -ifeq ($(ARCH), WINNT) -$(DNA): $(OBJS) $(DNA_DLL_OBJ) $(DEF_FILE) - $(LINK_DLL) $(DNA_DLL_OBJ) $(EXTRA_LIBS) /DEF:$(DEF_FILE) -else -$(DNA): $(OBJS) $(DNA_DLL_OBJ) - $(LINK_DLL) $(DNA_DLL_OBJ) $(EXTRA_LIBS) -endif - - -veryclean: clean - -clean: - $(RM) $(OBJS) -ifeq ($(ARCH), WINNT) - $(RM) $(DNA_DLL_OBJ) -endif - $(RM) $(DNA) - -$(OBJDEST): - $(MKDIR) $(OBJDEST) - -$(LIBDIR): - $(MKDIR) $(LIBDIR) diff --git a/ldap/servers/plugins/http/Makefile b/ldap/servers/plugins/http/Makefile deleted file mode 100644 index 654cf421..00000000 --- a/ldap/servers/plugins/http/Makefile +++ /dev/null @@ -1,108 +0,0 @@ -# --- BEGIN COPYRIGHT BLOCK --- -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# --- END COPYRIGHT BLOCK --- -# -LDAP_SRC = ../../.. -BUILD_ROOT = ../../../.. - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST = $(OBJDIR)/lib/libhttpclient -LIBDIR = $(LDAP_PLUGIN_RELDIR) - -include $(BUILD_ROOT)/nsdefs.mk -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk - -ifeq ($(ARCH), WINNT) -DEF_FILE:=./http.def -endif - -HTTP_OBJS = http_client.o http_impl.o - -OBJS = $(addprefix $(OBJDEST)/, $(HTTP_OBJS)) - -HTTP_DLL = libhttp-client-plugin - -INCLUDES += -I../../slapd -I../../../include - -CFLAGS+=$(SLCFLAGS) -DSLAPD_LOGGING - -ifeq ($(ARCH), WINNT) -CFLAGS+=-D_WIN32 -DXP_WIN -DXP_WIN32 -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) $(NSPR_DEP) $(SECURITY_DEP) -EXTRA_LIBS += $(NSPRLINK) $(LIBSLAPD) $(SECURITYLINK) -HTTP_DLL_OBJ = $(addprefix $(OBJDEST)/, dllmain.o) -endif - -ifeq ($(ARCH), HPUX) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) $(LDAPSDK_DEP) $(NSPR_DEP) $(SECURITY_DEP) -EXTRA_LIBS += $(LDAPLINK) $(SECURITYLINK) $(NSPRLINK) $(ICULINK) -endif - -ifeq ($(ARCH), AIX) -LD=ld -EXTRA_LIBS += $(LIBSLAPD) -endif - -HTTP= $(addprefix $(LIBDIR)/, $(HTTP_DLL).$(DLL_SUFFIX)) - -clientSDK: - -all: $(OBJDEST) $(LIBDIR) $(HTTP) - -ifeq ($(ARCH), WINNT) -$(HTTP): $(OBJS) $(HTTP_DLL_OBJ) $(DEF_FILE) - $(LINK_DLL) $(HTTP_DLL_OBJ) $(EXTRA_LIBS) /DEF:$(DEF_FILE) -else -$(HTTP): $(OBJS) $(HTTP_DLL_OBJ) - $(LINK_DLL) $(HTTP_DLL_OBJ) $(EXTRA_LIBS) -endif - - -veryclean: clean - -clean: - $(RM) $(OBJS) -ifeq ($(ARCH), WINNT) - $(RM) $(HTTP_DLL_OBJ) -endif - $(RM) $(HTTP) - -$(OBJDEST): - $(MKDIR) $(OBJDEST) diff --git a/ldap/servers/plugins/pam_passthru/Makefile b/ldap/servers/plugins/pam_passthru/Makefile deleted file mode 100644 index ff846c8a..00000000 --- a/ldap/servers/plugins/pam_passthru/Makefile +++ /dev/null @@ -1,124 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -# -# GNU Makefile for Directory Server "PAM Pass Through Authentication" plugin -# -# - -LDAP_SRC = ../../.. -BUILD_ROOT = ../../../.. - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST = $(OBJDIR)/lib/libpam_passthru -LIBDIR = $(LDAP_PLUGIN_RELDIR) - -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk - -ifeq ($(ARCH), WINNT) -DEF_FILE:=./libpam_passthru.def -endif - -CFLAGS+=$(SLCFLAGS) - -INCLUDES += -I$(LDAP_SRC)/servers/slapd - -PAM_PASSTHRU_OBJS= pam_ptimpl.o pam_ptconfig.o pam_ptdebug.o pam_ptpreop.o - -OBJS = $(addprefix $(OBJDEST)/, $(PAM_PASSTHRU_OBJS)) - -ifeq ($(ARCH), WINNT) -LIBPAM_PASSTHRU_DLL_OBJ = $(addprefix $(OBJDEST)/, pam_ptdllmain.o) -endif - -LIBPAM_PASSTHRU= $(addprefix $(LIBDIR)/, $(PAM_PASSTHRU_DLL).$(DLL_SUFFIX)) - -EXTRA_LIBS += -lpam -#LD += -Xlinker --no-undefined -Xlinker --no-allow-shlib-undefined -#LD += -Xlinker --export-dynamic - -ifeq ($(ARCH), WINNT) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) -EXTRA_LIBS_DEP += $(LDAPSDK_DEP) $(NSPR_DEP) -EXTRA_LIBS += $(LIBSLAPD) $(LDAP_SDK_LIBLDAP_DLL) $(NSPRLINK) -endif - - -ifeq ($(ARCH), WINNT) -DLL_LDFLAGS += -def:"./libpam_passthru.def" -endif # WINNT - -ifeq ($(ARCH), AIX) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) -EXTRA_LIBS_DEP += $(LDAPSDK_DEP) $(NSPR_DEP) -EXTRA_LIBS += $(LIBSLAPDLINK) $(LDAP_SDK_LIBLDAP_DLL) $(NSPRLINK) -EXTRA_LIBS += $(DLL_EXTRA_LIBS) -LD=ld -endif - -ifeq ($(ARCH), HPUX) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) $(LDAPSDK_DEP) $(NSPR_DEP) $(SECURITY_DEP) -EXTRA_LIBS += $(LDAPLINK) $(SECURITYLINK) $(NSPRLINK) $(ICULINK) -endif - -clientSDK: - -all: $(OBJDEST) $(LIBDIR) $(LIBPAM_PASSTHRU) - -$(LIBPAM_PASSTHRU): $(OBJS) $(LIBPAM_PASSTHRU_DLL_OBJ) $(DEF_FILE) - $(LINK_DLL) $(LIBPAM_PASSTHRU_DLL_OBJ) $(PLATFORMLIBS) $(EXTRA_LIBS) - -veryclean: clean - -clean: - $(RM) $(OBJS) -ifeq ($(ARCH), WINNT) - $(RM) $(LIBPAM_PASSTHRU_DLL_OBJ) -endif - $(RM) $(LIBPAM_PASSTHRU) - -$(OBJDEST): - $(MKDIR) $(OBJDEST) - -# -# header file dependencies (incomplete) -# -$(OBJS): pam_passthru.h diff --git a/ldap/servers/plugins/passthru/Makefile b/ldap/servers/plugins/passthru/Makefile deleted file mode 100644 index 2ff72a2e..00000000 --- a/ldap/servers/plugins/passthru/Makefile +++ /dev/null @@ -1,121 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -# -# GNU Makefile for Directory Server "Pass Through Authentication" plugin -# -# - -LDAP_SRC = ../../.. -BUILD_ROOT = ../../../.. - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST = $(OBJDIR)/lib/libpassthru -LIBDIR = $(LDAP_PLUGIN_RELDIR) - -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk - -ifeq ($(ARCH), WINNT) -DEF_FILE:=./libpassthru.def -endif - -CFLAGS+=$(SLCFLAGS) - -INCLUDES += -I$(LDAP_SRC)/servers/slapd - -PASSTHRU_OBJS= ptbind.o ptconfig.o ptconn.o ptdebug.o ptpreop.o ptutil.o - -OBJS = $(addprefix $(OBJDEST)/, $(PASSTHRU_OBJS)) - -ifeq ($(ARCH), WINNT) -LIBPASSTHRU_DLL_OBJ = $(addprefix $(OBJDEST)/, ptdllmain.o) -endif - -LIBPASSTHRU= $(addprefix $(LIBDIR)/, $(PASSTHRU_DLL).$(DLL_SUFFIX)) - -ifeq ($(ARCH), WINNT) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) -EXTRA_LIBS_DEP += $(LDAPSDK_DEP) $(NSPR_DEP) -EXTRA_LIBS += $(LIBSLAPD) $(LDAP_SDK_LIBLDAP_DLL) $(NSPRLINK) -endif - - -ifeq ($(ARCH), WINNT) -DLL_LDFLAGS += -def:"./libpassthru.def" -endif # WINNT - -ifeq ($(ARCH), AIX) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) -EXTRA_LIBS_DEP += $(LDAPSDK_DEP) $(NSPR_DEP) -EXTRA_LIBS += $(LIBSLAPDLINK) $(LDAP_SDK_LIBLDAP_DLL) $(NSPRLINK) -EXTRA_LIBS += $(DLL_EXTRA_LIBS) -LD=ld -endif - -ifeq ($(ARCH), HPUX) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) $(LDAPSDK_DEP) $(NSPR_DEP) $(SECURITY_DEP) -EXTRA_LIBS += $(LDAPLINK) $(SECURITYLINK) $(NSPRLINK) $(ICULINK) -endif - -clientSDK: - -all: $(OBJDEST) $(LIBDIR) $(LIBPASSTHRU) - -$(LIBPASSTHRU): $(OBJS) $(LIBPASSTHRU_DLL_OBJ) $(DEF_FILE) - $(LINK_DLL) $(LIBPASSTHRU_DLL_OBJ) $(PLATFORMLIBS) $(EXTRA_LIBS) - -veryclean: clean - -clean: - $(RM) $(OBJS) -ifeq ($(ARCH), WINNT) - $(RM) $(LIBPASSTHRU_DLL_OBJ) -endif - $(RM) $(LIBPASSTHRU) - -$(OBJDEST): - $(MKDIR) $(OBJDEST) - -# -# header file dependencies (incomplete) -# -$(OBJS): passthru.h diff --git a/ldap/servers/plugins/presence/Makefile b/ldap/servers/plugins/presence/Makefile deleted file mode 100644 index 477e285f..00000000 --- a/ldap/servers/plugins/presence/Makefile +++ /dev/null @@ -1,116 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -LDAP_SRC = ../../.. -BUILD_ROOT = ../../../.. - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST = $(OBJDIR)/lib/libpresence -LIBDIR = $(LDAP_PLUGIN_RELDIR) - -include $(BUILD_ROOT)/nsdefs.mk -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk - -ifeq ($(ARCH), WINNT) -DEF_FILE:=./presence.def -endif - -PRESENCE_OBJS = presence.o -OBJS = $(addprefix $(OBJDEST)/, $(PRESENCE_OBJS)) - -PRESENCE_DLL = libpresence-plugin - -INCLUDES += -I../http -I../../slapd -I../../../include -CFLAGS+=$(SLCFLAGS) -DSLAPD_LOGGING - -ifeq ($(ARCH), WINNT) -EXTRA_LIBS_DEP += $(LIBSLAPD) $(NSPR_DEP) $(LDAPSDK_DEP) -EXTRA_LIBS_DEP += $(LDAP_COMMON_LIBS_DEP) -EXTRA_LIBS += $(NSPRLINK) $(LIBSLAPD) $(LDAP_SDK_LIBLDAP_DLL) -EXTRA_LIBS += $(LDAP_COMMON_LIBS) -PRESENCE_DLL_OBJ = $(addprefix $(OBJDEST)/, dllmain.o) -endif - -ifeq ($(ARCH), AIX) -EXTRA_LIBS_DEP += $(LIBSLAPD) $(NSPR_DEP) $(LDAPSDK_DEP) -EXTRA_LIBS_DEP += $(LDAP_COMMON_LIBS_DEP) -EXTRA_LIBS += $(LIBSLAPDLINK) $(NSPRLINK) $(LDAP_SDK_LIBLDAP_DLL) -EXTRA_LIBS += $(LDAP_COMMON_LIBS) -LD=ld -endif - -ifeq ($(ARCH), HPUX) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) $(LDAPSDK_DEP) $(NSPR_DEP) $(SECURITY_DEP) -EXTRA_LIBS_DEP += $(LDAP_COMMON_LIBS_DEP) -EXTRA_LIBS += $(LDAPLINK) $(SECURITYLINK) $(NSPRLINK) $(ICULINK) -EXTRA_LIBS += $(LDAP_COMMON_LIBS) -endif - -PRESENCE= $(addprefix $(LIBDIR)/, $(PRESENCE_DLL).$(DLL_SUFFIX)) - -clientSDK: - -all: $(OBJDEST) $(LIBDIR) $(PRESENCE) - -ifeq ($(ARCH), WINNT) -$(PRESENCE): $(OBJS) $(PRESENCE_DLL_OBJ) $(DEF_FILE) - $(LINK_DLL) $(PRESENCE_DLL_OBJ) $(EXTRA_LIBS) /DEF:$(DEF_FILE) -else -$(PRESENCE): $(OBJS) $(PRESENCE_DLL_OBJ) - $(LINK_DLL) $(PRESENCE_DLL_OBJ) $(EXTRA_LIBS) -endif - - -veryclean: clean - -clean: - $(RM) $(OBJS) -ifeq ($(ARCH), WINNT) - $(RM) $(PRESENCE_DLL_OBJ) -endif - $(RM) $(PRESENCE) - -$(OBJDEST): - $(MKDIR) $(OBJDEST) - -$(LIBDIR): - $(MKDIR) $(LIBDIR) diff --git a/ldap/servers/plugins/pwdstorage/Makefile b/ldap/servers/plugins/pwdstorage/Makefile deleted file mode 100644 index 4ff2aff7..00000000 --- a/ldap/servers/plugins/pwdstorage/Makefile +++ /dev/null @@ -1,150 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -# -# GNU Makefile for Directory Server password_storaged-plugin.so password storage scheme plugins -# - -LDAP_SRC = ../../.. -BUILD_ROOT = ../../../.. - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST = $(OBJDIR)/lib/libpwdstorage -LIBDIR = $(LDAP_PLUGIN_RELDIR) - -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk - -ifeq ($(ARCH), WINNT) -DEF_FILE:=./libpwdstorage.def -endif - -CFLAGS+=$(SLCFLAGS) - -INCLUDES += -I$(LDAP_SRC)/servers/slapd - -PWD_OBJS= \ - pwd_init.o \ - clear_pwd.o \ - ns-mta-md5_pwd.o \ - sha_pwd.o \ - ssha_pwd.o \ - md5c.o \ - md5_pwd.o - -ifneq ($(ARCH), WINNT) -PWD_OBJS += crypt_pwd.o -endif - - -OBJS = $(addprefix $(OBJDEST)/, $(PWD_OBJS)) - -ifeq ($(ARCH), WINNT) -LIBPWD_DLL_OBJ = $(addprefix $(OBJDEST)/, dllmain.o) -endif - -LIBPWD = $(addprefix $(LIBDIR)/, $(PWD_DLL).$(DLL_SUFFIX)) - -ifeq ($(ARCH), WINNT) -EXTRA_LIBS_DEP += \ - $(LIBSLAPD_DEP) \ - $(LDAP_LIBUTIL_DEP) \ - $(LDAP_COMMON_LIBS_DEP) -EXTRA_LIBS_DEP += \ - $(LDAPSDK_DEP) \ - $(SECURITY_DEP) -EXTRA_LIBS += \ - $(LIBSLAPD) \ - $(LDAP_SDK_LIBLDAP_DLL) \ - $(LIBUTIL) \ - $(NSPRLINK) \ - $(LDAP_COMMON_LIBS) \ - $(SECURITYLINK) -endif -ifeq ($(ARCH), AIX) -EXTRA_LIBS_DEP += \ - $(LIBSLAPD_DEP) \ - $(LDAP_LIBUTIL_DEP) \ - $(LDAP_COMMON_LIBS_DEP) -EXTRA_LIBS_DEP += \ - $(LDAPSDK_DEP) \ - $(SECURITY_DEP) -EXTRA_LIBS += \ - $(LIBSLAPDLINK) \ - $(LDAP_SDK_LIBLDAP_DLL) \ - $(LIBUTIL) \ - $(NSPRLINK) \ - $(LDAP_COMMON_LIBS) \ - $(SECURITYLINK) -endif - -ifeq ($(ARCH), HPUX) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) $(LDAPSDK_DEP) $(NSPR_DEP) $(SECURITY_DEP) -EXTRA_LIBS += $(LDAPLINK) $(SECURITYLINK) $(NSPRLINK) $(ICULINK) -endif - -ifeq ($(ARCH), WINNT) -DLL_LDFLAGS += -def:"./libpwdstorage.def" -CFLAGS+= /WX -endif # WINNT - -ifeq ($(ARCH), AIX) -LD=ld -endif - -clientSDK: - -all: $(OBJDEST) $(LIBDIR) $(LIBPWD) - -$(LIBPWD): $(OBJS) $(LIBPWD_DLL_OBJ) $(DEF_FILE) - $(LINK_DLL) $(LIBPWD_DLL_OBJ) $(EXTRA_LIBS) - -veryclean: clean - -clean: - $(RM) $(OBJS) -ifeq ($(ARCH), WINNT) - $(RM) $(LIBPWD_DLL_OBJ) -endif - $(RM) $(LIBPWD) - -$(OBJDEST): - $(MKDIR) $(OBJDEST) diff --git a/ldap/servers/plugins/referint/Makefile b/ldap/servers/plugins/referint/Makefile deleted file mode 100644 index b6de7d15..00000000 --- a/ldap/servers/plugins/referint/Makefile +++ /dev/null @@ -1,103 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -LDAP_SRC = ../../.. -BUILD_ROOT = ../../../.. - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST = $(OBJDIR)/lib/referint-plugin -LIBDIR = $(LDAP_PLUGIN_RELDIR) - -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk - -ifeq ($(ARCH), WINNT) -DEF_FILE:=./referint.def -endif - -REFERINT_OBJS = referint.o -OBJS = $(addprefix $(OBJDEST)/, $(REFERINT_OBJS)) - -INCLUDES += -I../../slapd -I../../../include -CFLAGS+=$(SLCFLAGS) -DSLAPD_LOGGING - -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) $(LDAPLINK_DEP) $(NSPRLINK_DEP) -EXTRA_LIBS += $(LIBSLAPD) $(LDAPLINK) $(NSPRLINK) - -ifeq ($(ARCH), HPUX) -EXTRA_LIBS_DEP += $(SECURITY_DEP) -EXTRA_LIBS += $(SECURITYLINK) -endif - -ifeq ($(ARCH), WINNT) -REFERINT_DLL_OBJ = $(addprefix $(OBJDEST)/, dllmain.o) -endif - -ifeq ($(ARCH), AIX) -LD=ld -endif - -REFERINT= $(addprefix $(LIBDIR)/, $(REFERINT_DLL).$(DLL_SUFFIX)) - -clientSDK: - -all: $(OBJDEST) $(LIBDIR) $(REFERINT) - -ifeq ($(ARCH), WINNT) -$(REFERINT): $(OBJS) $(REFERINT_DLL_OBJ) $(DEF_FILE) - $(LINK_DLL) $(REFERINT_DLL_OBJ) $(EXTRA_LIBS) /DEF:$(DEF_FILE) -else -$(REFERINT): $(OBJS) $(REFERINT_DLL_OBJ) - $(LINK_DLL) $(REFERINT_DLL_OBJ) $(EXTRA_LIBS) -endif - - -veryclean: clean - -clean: - $(RM) $(OBJS) -ifeq ($(ARCH), WINNT) - $(RM) $(REFERINT_DLL_OBJ) -endif - $(RM) $(REFERINT) - -$(OBJDEST): - $(MKDIR) $(OBJDEST) diff --git a/ldap/servers/plugins/replication/Makefile b/ldap/servers/plugins/replication/Makefile deleted file mode 100644 index a348bed8..00000000 --- a/ldap/servers/plugins/replication/Makefile +++ /dev/null @@ -1,191 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -# -# GNU Makefile for Directory Server "Replication" plugin -# -# - -LDAP_SRC = ../../.. -BUILD_ROOT = ../../../.. - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST = $(OBJDIR)/lib/replication-plugin -LIBDIR = $(LDAP_PLUGIN_RELDIR) - -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk - -ifeq ($(ARCH), WINNT) -DEF_FILE:=./replication.def -endif - -CFLAGS += $(SLCFLAGS) -DSLAPD_LOGGING - -ifeq ($(ARCH), WINNT) -CFLAGS += /WX -endif - -ifdef TEST_CL5 -CFLAGS += -DTEST_CL5 -endif - -INCLUDES += -I$(LDAP_SRC)/servers/slapd -I$(DB_INCLUDE) - -LOCAL_OBJS= \ - cl5_api.o \ - cl5_clcache.o \ - cl5_config.o \ - cl5_init.o \ - csnpl.o\ - legacy_consumer.o \ - llist.o\ - repl5_agmt.o \ - repl5_agmtlist.o \ - repl5_backoff.o \ - repl5_connection.o \ - repl5_inc_protocol.o \ - repl5_init.o\ - repl5_protocol.o \ - repl5_protocol_util.o \ - repl5_replica.o\ - repl5_replica_config.o\ - repl5_ruv.o\ - repl5_schedule.o \ - repl5_tot_protocol.o \ - repl5_total.o\ - repl5_mtnode_ext.o\ - repl5_plugins.o \ - repl_add.o \ - repl_bind.o \ - repl_compare.o \ - repl_connext.o \ - repl_controls.o \ - repl_delete.o \ - repl_entry.o \ - repl_ext.o \ - repl_extop.o \ - repl_globals.o \ - repl_init.o \ - repl_modify.o \ - repl_modrdn.o \ - repl_monitor.o \ - repl_objset.o \ - repl_opext.o \ - repl_ops.o \ - repl_rootdse.o \ - repl_search.o \ - replutil.o \ - urp.o \ - urp_glue.o \ - urp_tombstone.o \ - repl5_replica_hash.o\ - repl5_replica_dnhash.o\ - repl5_updatedn_list.o\ - windows_inc_protocol.o \ - windows_tot_protocol.o \ - windows_protocol_util.o \ - windows_private.o \ - windows_connection.o - -LIBREPLICATION_OBJS = $(addprefix $(OBJDEST)/, $(LOCAL_OBJS)) - -ifeq ($(ARCH), WINNT) -REPLICATION_DLL_OBJ = $(addprefix $(OBJDEST)/, dllmain.o) -endif - -LIBREPLICATION= $(addprefix $(LIBDIR)/, $(REPLICATION_DLL).$(DLL_SUFFIX)) - -ifeq ($(ARCH), WINNT) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) -EXTRA_LIBS_DEP += $(LDAPSDK_DEP) $(DB_LIB_DEP) $(NSPR_DEP) -EXTRA_LIBS += $(LIBSLAPD) $(LDAPLINK) $(DB_LIB) -endif - -ifeq ($(ARCH), AIX) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) -EXTRA_LIBS_DEP += $(LDAPSDK_DEP) $(DB_LIB_DEP) $(NSPR_DEP) -EXTRA_LIBS += $(LIBSLAPD) $(LDAP_SDK_LIBLDAP_DLL) $(DB_LIB) -endif - -ifeq ($(ARCH), HPUX) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) $(LDAPSDK_DEP) $(NSPR_DEP) $(SECURITY_DEP) -EXTRA_LIBS += $(LDAPLINK) $(SECURITYLINK) $(NSPRLINK) $(ICULINK) -endif - -ifeq ($(ARCH), WINNT) -DLL_LDFLAGS += -def:"./replication.def" -endif # WINNT - -ifeq ($(ARCH), AIX) -EXTRA_LIBS += $(DLL_EXTRA_LIBS) -LD=ld -endif - -# ICU used by Windows Sync code -INCLUDES+= $(ICU_INCLUDE) -EXTRA_LIBS+=$(ICULINK) - -clientSDK: - -all: $(OBJDEST) $(LIBDIR) $(LIBREPLICATION) - -$(LIBREPLICATION): $(LIBREPLICATION_OBJS) $(REPLICATION_DLL_OBJ) $(DEF_FILE) - $(LINK_DLL) $(LIBREPLICATION_OBJS) $(REPLICATION_DLL_OBJ) $(PLATFORMLIBS) $(EXTRA_LIBS) $(LDAP_LIBLDIF) $(NSPRLINK) - -tests: $(TEST_PROGS) - -veryclean: clean - -clean: - $(RM) $(LIBREPLICATION_OBJS) -ifeq ($(ARCH), WINNT) - $(RM) $(REPLICATION_DLL_OBJ) -endif - $(RM) $(LIBREPLICATION) - -$(OBJDEST): - $(MKDIR) $(OBJDEST) - -# -# header file dependencies (incomplete) -# -$(LIBREPLICATION_OBJS): diff --git a/ldap/servers/plugins/retrocl/Makefile b/ldap/servers/plugins/retrocl/Makefile deleted file mode 100644 index 3dd33d49..00000000 --- a/ldap/servers/plugins/retrocl/Makefile +++ /dev/null @@ -1,165 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -# -# GNU Makefile for Directory Server "Retrocl" plugin - -LDAP_SRC = ../../.. -BUILD_ROOT = ../../../.. - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST = $(OBJDIR)/lib/retrocl-plugin -BINDIR = $(LDAP_SERVER_RELDIR) -LIBDIR = $(LDAP_PLUGIN_RELDIR) - -include $(BUILD_ROOT)/nsdefs.mk -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk -INCLUDES+=-I$(DB_INCLUDE) - -ifeq ($(ARCH), WINNT) -DEF_FILE:=./retrocl.def -endif - -CFLAGS += $(SLCFLAGS) -DSLAPD_LOGGING - -ifeq ($(ARCH), WINNT) -CFLAGS += /WX -endif - -ifdef TEST_CL5 -CFLAGS += -DTEST_CL5 -endif - -INCLUDES += -I$(LDAP_SRC)/servers/slapd -I$(DB_INCLUDE) - -ifeq ($(ARCH), WINNT) -SUBSYSTEM=console -endif - -LOCAL_OBJS= \ - retrocl.o \ - retrocl_po.o \ - retrocl_rootdse.o \ - retrocl_cn.o \ - retrocl_trim.o \ - retrocl_create.o \ - - - -LIBRETROCL_OBJS = $(addprefix $(OBJDEST)/, $(LOCAL_OBJS)) - -ifeq ($(ARCH), WINNT) -RETROCL_DLL_OBJ = $(addprefix $(OBJDEST)/, dllmain.o) -endif - -LIBRETROCL= $(addprefix $(LIBDIR)/, $(RETROCL_DLL).$(DLL_SUFFIX)) - -LT_OBJS = $(addprefix $(OBJDEST)/, linktest.o) - -#EXTRA_LIBS_DEP = $(LDAPSDK_DEP) \ -# $(LDAP_LIBLDIF_DEP) \ -# $(LDAP_SLIBLCACHE_DEP) $(DB_LIB_DEP) $(LIBSLAPD_DEP) \ -# $(LDAP_COMMON_LIBS_DEP) - -#EXTRA_LIBS = $(LIBACCESS) $(LDAP_SDK_LIBSSLDAP_LIB) $(ADMINUTIL_LINK) \ -# $(LDAP_SDK_LIBLDAP_DLL) $(LDAP_SLIBLCACHE) $(DB_LIB) \ -# $(PLATFORM_SPECIFIC_EXTRA_LIBRARY) $(LIBSLAPD) $(LDAP_LIBLITEKEY) \ -# $(NLSLINK) $(ALIBS) \ -# $(LDAP_SDK_LIBSSLDAP_LIB) $(LDAP_SDK_LIBLDAP_DLL) \ -# $(LIBSECURITYLINK) $(NSPRLINK) $(DBMLINK) \ -# $(THREADSLIB) $(LDAP_COMMON_LIBS) $(NSPRLINK) $(SVRCORELINK) - -ifeq ($(ARCH), WINNT) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) -EXTRA_LIBS_DEP += $(LDAPSDK_DEP) $(DB_LIB_DEP) $(NSPR_DEP) -EXTRA_LIBS += $(LIBSLAPD) $(LDAP_SDK_LIBLDAP_DLL) $(DB_LIB) -endif - -ifeq ($(ARCH), AIX) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) -EXTRA_LIBS_DEP += $(LDAPSDK_DEP) $(DB_LIB_DEP) $(NSPR_DEP) -EXTRA_LIBS += $(LIBSLAPD) $(LDAP_SDK_LIBLDAP_DLL) $(DB_LIB) -endif - -ifeq ($(ARCH), HPUX) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) $(LDAPSDK_DEP) $(NSPR_DEP) $(SECURITY_DEP) -EXTRA_LIBS += $(LDAPLINK) $(SECURITYLINK) $(NSPRLINK) $(ICULINK) -endif - -ifeq ($(ARCH), WINNT) -DLL_LDFLAGS += -def:"./retrocl.def" -endif # WINNT - -ifeq ($(ARCH), AIX) -EXTRA_LIBS += $(DLL_EXTRA_LIBS) -LD=ld -endif - -clientSDK: - -all: $(OBJDEST) $(LIBDIR) $(LIBRETROCL) - -linktest: $(LIBRETROCL) $(LT_OBJS) - $(LINK_EXE_NOLIBSOBJS) -o linktest $(LT_OBJS) $(LIBRETROCL) -Rlib -Rlib/../bin/slapd/lib -Llib -Llib/../bin/slapd/lib -lslapd $(EXTRA_LIBS) $(NSPRLINK) - - -$(LIBRETROCL): $(LIBRETROCL_OBJS) $(RETROCL_DLL_OBJ) $(DEF_FILE) - $(LINK_DLL) $(LIBRETROCL_OBJS) $(RETROCL_DLL_OBJ) $(PLATFORMLIBS) $(EXTRA_LIBS) $(LDAP_LIBLDIF) $(NSPRLINK) - -tests: $(TEST_PROGS) - -veryclean: clean - -clean: - $(RM) $(LIBRETROCL_OBJS) -ifeq ($(ARCH), WINNT) - $(RM) $(RETROCL_DLL_OBJ) -endif - $(RM) $(LIBRETROCL) - -$(OBJDEST): - $(MKDIR) $(OBJDEST) - -# -# header file dependencies (incomplete) -# -$(LIBRETROCL_OBJS): diff --git a/ldap/servers/plugins/rever/Makefile b/ldap/servers/plugins/rever/Makefile deleted file mode 100644 index a271a522..00000000 --- a/ldap/servers/plugins/rever/Makefile +++ /dev/null @@ -1,142 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -# -# GNU Makefile for Directory Server password_storaged-plugin.so password storage scheme plugins -# - -LDAP_SRC = ../../.. -BUILD_ROOT = ../../../.. - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST = $(OBJDIR)/lib/libdes -LIBDIR = $(LDAP_PLUGIN_RELDIR) - -include $(BUILD_ROOT)/nsconfig.mk -include $(BUILD_ROOT)/ns_usepurify.mk -include $(LDAP_SRC)/nsldap.mk - -ifeq ($(ARCH), WINNT) -DEF_FILE:=./libdes.def -endif - -CFLAGS+=$(SLCFLAGS) - -INCLUDES += -I$(LDAP_SRC)/servers/slapd -INCLUDES += -I$(BUILD_ROOT)/ldap/include - -REVER_OBJS= \ - rever.o des.o - -OBJS = $(addprefix $(OBJDEST)/, $(REVER_OBJS)) - -ifeq ($(ARCH), WINNT) -LIBREVER_DLL_OBJ = $(addprefix $(OBJDEST)/, dllmain.o) -endif - -REVER_DLL = libdes-plugin -LIBREVER = $(addprefix $(LIBDIR)/, $(REVER_DLL).$(DLL_SUFFIX)) - -ifeq ($(ARCH), WINNT) -EXTRA_LIBS_DEP += \ - $(LIBSLAPD_DEP) \ - $(LDAP_LIBUTIL_DEP) \ - $(LDAP_COMMON_LIBS_DEP) -EXTRA_LIBS_DEP += \ - $(LDAPSDK_DEP) \ - $(SECURITY_DEP) -EXTRA_LIBS += \ - $(LIBSLAPD) \ - $(LDAP_SDK_LIBLDAP_DLL) \ - $(LIBUTIL) \ - $(NSPRLINK) \ - $(LDAP_COMMON_LIBS) \ - $(SECURITYLINK) -endif -ifeq ($(ARCH), AIX) -EXTRA_LIBS_DEP += \ - $(LIBSLAPD_DEP) \ - $(LDAP_LIBUTIL_DEP) \ - $(LDAP_COMMON_LIBS_DEP) -EXTRA_LIBS_DEP += \ - $(LDAPSDK_DEP) \ - $(SECURITY_DEP) -EXTRA_LIBS += \ - $(LIBSLAPDLINK) \ - $(LDAP_SDK_LIBLDAP_DLL) \ - $(LIBUTIL) \ - $(NSPRLINK) \ - $(LDAP_COMMON_LIBS) \ - $(SECURITYLINK) -endif - -ifeq ($(ARCH), HPUX) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) $(LDAPSDK_DEP) $(NSPR_DEP) $(SECURITY_DEP) -EXTRA_LIBS += $(LDAPLINK) $(SECURITYLINK) $(NSPRLINK) $(ICULINK) -endif - -ifeq ($(ARCH), WINNT) -DLL_LDFLAGS += -def:"./libdes.def" -CFLAGS+= /WX -endif # WINNT - -ifeq ($(ARCH), AIX) -LD=ld -endif - -clientSDK: - -all: $(OBJDEST) $(LIBDIR) $(LIBREVER) - -$(LIBREVER): $(OBJS) $(LIBREVER_DLL_OBJ) $(DEF_FILE) - $(LINK_DLL) $(LIBREVER_DLL_OBJ) $(EXTRA_LIBS) - -veryclean: clean - -clean: - $(RM) $(OBJS) -ifeq ($(ARCH), WINNT) - $(RM) $(LIBREVER_DLL_OBJ) -endif - $(RM) $(LIBREVER) - -$(OBJDEST): - $(MKDIR) $(OBJDEST) diff --git a/ldap/servers/plugins/roles/Makefile b/ldap/servers/plugins/roles/Makefile deleted file mode 100644 index 47cc2d39..00000000 --- a/ldap/servers/plugins/roles/Makefile +++ /dev/null @@ -1,123 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -LDAP_SRC = ../../.. -BUILD_ROOT = ../../../.. - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST = $(OBJDIR)/lib/libroles -LIBDIR = $(LDAP_PLUGIN_RELDIR) -ifndef INSTDIR -INSTDIR = c:/netscape/server4/ -endif - -include $(BUILD_ROOT)/nsdefs.mk -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk - -ifeq ($(ARCH), WINNT) -DEF_FILE:=./roles.def -endif - -ROLES_OBJS = roles_plugin.o roles_cache.o -OBJS = $(addprefix $(OBJDEST)/, $(ROLES_OBJS)) - -ROLES_DLL = libroles-plugin - -INCLUDES += -I../../slapd -I../../../include -CFLAGS+=$(SLCFLAGS) -DSLAPD_LOGGING - -# DBDB this is clearly all nonsense: the libraries this thing links with should not depend on the platform. -# However, for now I make this AIX-specific change and leave the NT-specifc stuff in place (I think it came -# from the makefile I copied to make this one. After build 3, fix this. - -ifeq ($(ARCH), WINNT) -EXTRA_LIBS_DEP += $(LIBSLAPD) -EXTRA_LIBS += $(NSPRLINK) $(LIBSLAPD) $(LDAP_LIBAVL) -endif - -ifeq ($(ARCH), HPUX) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) $(LDAPSDK_DEP) $(NSPR_DEP) $(SECURITY_DEP) -EXTRA_LIBS += $(LDAPLINK) $(SECURITYLINK) $(NSPRLINK) $(ICULINK) -endif - -ifeq ($(ARCH), WINNT) -ROLES_DLL_OBJ = $(addprefix $(OBJDEST)/, dllmain.o) -endif - -ifeq ($(ARCH), AIX) -LD=ld -EXTRA_LIBS += $(NSPRLINK) $(LIBSLAPD) $(LDAP_LIBAVL) -endif - -ROLES= $(addprefix $(LIBDIR)/, $(ROLES_DLL).$(DLL_SUFFIX)) - -clientSDK: - -all: $(OBJDEST) $(LIBDIR) $(ROLES) - -ifeq ($(ARCH), WINNT) -$(ROLES): $(OBJS) $(ROLES_DLL_OBJ) $(DEF_FILE) - $(LINK_DLL) $(ROLES_DLL_OBJ) $(EXTRA_LIBS) /DEF:$(DEF_FILE) -else -$(ROLES): $(OBJS) $(ROLES_DLL_OBJ) - $(LINK_DLL) $(ROLES_DLL_OBJ) $(EXTRA_LIBS) -endif - - -veryclean: clean - -clean: - $(RM) $(OBJS) -ifeq ($(ARCH), WINNT) - $(RM) $(ROLES_DLL_OBJ) -endif - $(RM) $(ROLES) - -$(OBJDEST): - $(MKDIR) $(OBJDEST) - -# Target to push the built binary to an installed server -#ROLES_PUSH = $(addprefix $(INSTDIR)lib/, $(notdir $(ROLES))) -#push: $(ROLES_PUSH) - -#$(ROLES_PUSH): $(ROLES) -# cp $(ROLES) $(ROLES_PUSH) diff --git a/ldap/servers/plugins/shared/Makefile b/ldap/servers/plugins/shared/Makefile deleted file mode 100644 index 17c28cba..00000000 --- a/ldap/servers/plugins/shared/Makefile +++ /dev/null @@ -1,87 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -# -# GNU Makefile for shared components for Directory Server plugins -# -# - -LDAP_SRC = ../../.. -BUILD_ROOT = ../../../.. - -SHARED=shared - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST = $(OBJDIR)/lib/$(SHARED) -LIBDIR = $(LDAP_PLUGIN_RELDIR) - -include $(BUILD_ROOT)/nsdefs.mk -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk - -CFLAGS+=$(SLCFLAGS) - -INCLUDES += -I$(LDAP_SRC)/servers/slapd - -LOCAL_OBJS= utils.o - -OBJS = $(addprefix $(OBJDEST)/, $(LOCAL_OBJS)) - -ifeq ($(ARCH), WINNT) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) -EXTRA_LIBS += $(LIBSLAPD) -endif - -all: $(OBJDEST) $(OBJS) - -veryclean: clean - -clean: - $(RM) $(OBJS) - -$(OBJDEST): - $(MKDIR) $(OBJDEST) - -# -# header file dependencies (incomplete) -# -$(OBJS): plugin-utils.h - diff --git a/ldap/servers/plugins/statechange/Makefile b/ldap/servers/plugins/statechange/Makefile deleted file mode 100644 index 4ef63a95..00000000 --- a/ldap/servers/plugins/statechange/Makefile +++ /dev/null @@ -1,106 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -LDAP_SRC = ../../.. -BUILD_ROOT = ../../../.. - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST = $(OBJDIR)/lib/libstatechange -LIBDIR = $(LDAP_PLUGIN_RELDIR) - -include $(BUILD_ROOT)/nsdefs.mk -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk - -ifeq ($(ARCH), WINNT) -DEF_FILE:=./statechange.def -endif - -STATECHANGE_OBJS = statechange.o -OBJS = $(addprefix $(OBJDEST)/, $(STATECHANGE_OBJS)) - -STATECHANGE_DLL = libstatechange-plugin - -INCLUDES += -I../../slapd -I../../../include -CFLAGS+=$(SLCFLAGS) -DSLAPD_LOGGING - -ifeq ($(ARCH), WINNT) -EXTRA_LIBS_DEP += $(LIBSLAPD) -EXTRA_LIBS += $(NSPRLINK) $(LIBSLAPD) -STATECHANGE_DLL_OBJ = $(addprefix $(OBJDEST)/, dllmain.o) -endif - -ifeq ($(ARCH), HPUX) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) $(LDAPSDK_DEP) $(NSPR_DEP) $(SECURITY_DEP) -EXTRA_LIBS += $(LDAPLINK) $(SECURITYLINK) $(NSPRLINK) $(ICULINK) -endif - -ifeq ($(ARCH), AIX) -LD=ld -EXTRA_LIBS += $(LIBSLAPD) -endif - -STATECHANGE= $(addprefix $(LIBDIR)/, $(STATECHANGE_DLL).$(DLL_SUFFIX)) - -clientSDK: - -all: $(OBJDEST) $(LIBDIR) $(STATECHANGE) - -ifeq ($(ARCH), WINNT) -$(STATECHANGE): $(OBJS) $(STATECHANGE_DLL_OBJ) $(DEF_FILE) - $(LINK_DLL) $(STATECHANGE_DLL_OBJ) $(EXTRA_LIBS) /DEF:$(DEF_FILE) -else -$(STATECHANGE): $(OBJS) $(STATECHANGE_DLL_OBJ) - $(LINK_DLL) $(STATECHANGE_DLL_OBJ) $(EXTRA_LIBS) -endif - - -veryclean: clean - -clean: - $(RM) $(OBJS) -ifeq ($(ARCH), WINNT) - $(RM) $(STATECHANGE_DLL_OBJ) -endif - $(RM) $(STATECHANGE) - -$(OBJDEST): - $(MKDIR) $(OBJDEST) diff --git a/ldap/servers/plugins/syntaxes/Makefile b/ldap/servers/plugins/syntaxes/Makefile deleted file mode 100644 index 507d8f35..00000000 --- a/ldap/servers/plugins/syntaxes/Makefile +++ /dev/null @@ -1,118 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -# -# GNU Makefile for Directory Server syntax-plugin.so syntax plugins -# - -LDAP_SRC = ../../.. -BUILD_ROOT = ../../../.. - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST = $(OBJDIR)/lib/libsyntax -LIBDIR = $(LDAP_PLUGIN_RELDIR) - -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk - -ifeq ($(ARCH), WINNT) -DEF_FILE:=./libsyntax.def -endif - -CFLAGS+=$(SLCFLAGS) - -INCLUDES += -I$(LDAP_SRC)/servers/slapd - -SYNTAX_OBJS= phonetic.o string.o cis.o sicis.o ces.o bin.o tel.o dn.o int.o \ - value.o debug.o - -OBJS = $(addprefix $(OBJDEST)/, $(SYNTAX_OBJS)) - -ifeq ($(ARCH), WINNT) -LIBSYNTAX_DLL_OBJ = $(addprefix $(OBJDEST)/, dllmain.o) -endif - -LIBSYNTAX= $(addprefix $(LIBDIR)/, $(SYNTAX_DLL).$(DLL_SUFFIX)) - -ifeq ($(ARCH), WINNT) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) $(LDAP_LIBUTIL_DEP) -EXTRA_LIBS_DEP += $(LDAPSDK_DEP) -EXTRA_LIBS += $(LIBSLAPD) $(LDAP_SDK_LIBLDAP_DLL) -endif -ifeq ($(ARCH), AIX) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) $(LDAP_LIBUTIL_DEP) -EXTRA_LIBS_DEP += $(LDAPSDK_DEP) -EXTRA_LIBS += $(LIBSLAPD) $(LDAP_SDK_LIBLDAP_DLL) -endif - -ifeq ($(ARCH), WINNT) -DLL_LDFLAGS += -def:"./libsyntax.def" -CFLAGS+= /WX -endif # WINNT - -ifeq ($(ARCH), HPUX) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) $(LDAPSDK_DEP) $(NSPR_DEP) $(SECURITY_DEP) -EXTRA_LIBS += $(LDAPLINK) $(SECURITYLINK) $(NSPRLINK) $(ICULINK) -endif - -ifeq ($(ARCH), AIX) -EXTRA_LIBS += $(DLL_EXTRA_LIBS) -LD=ld -endif - -clientSDK: - -all: $(OBJDEST) $(LIBDIR) $(LIBSYNTAX) - -$(LIBSYNTAX): $(OBJS) $(LIBSYNTAX_DLL_OBJ) $(DEF_FILE) - $(LINK_DLL) $(LIBSYNTAX_DLL_OBJ) $(EXTRA_LIBS) - -veryclean: clean - -clean: - $(RM) $(OBJS) -ifeq ($(ARCH), WINNT) - $(RM) $(LIBSYNTAX_DLL_OBJ) -endif - $(RM) $(LIBSYNTAX) - -$(OBJDEST): - $(MKDIR) $(OBJDEST) diff --git a/ldap/servers/plugins/uiduniq/Makefile b/ldap/servers/plugins/uiduniq/Makefile deleted file mode 100644 index a64a40d9..00000000 --- a/ldap/servers/plugins/uiduniq/Makefile +++ /dev/null @@ -1,131 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -# -# GNU Makefile for Directory Server "Pass Through Authentication" plugin -# -# - -LDAP_SRC = ../../.. -BUILD_ROOT = ../../../.. - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST = $(OBJDIR)/lib/libuidunique -LIBDIR = $(LDAP_PLUGIN_RELDIR) -SHAREDLIB = $(OBJDIR)/lib/shared/utils.o - -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk - -ifeq ($(ARCH), WINNT) -DEF_FILE:=./libuiduniq.def -endif - -CFLAGS+=$(SLCFLAGS) - -INCLUDES += -I$(LDAP_SRC)/servers/slapd -I../shared - -LOCAL_OBJS= uid.o 7bit.o - -SHAREDDIR= ../shared - -OBJS = $(addprefix $(OBJDEST)/, $(LOCAL_OBJS)) - -ifeq ($(ARCH), WINNT) -#LIBUIDUNIQUE_DLL_OBJ = $(addprefix $(OBJDEST)/, uid.o 7bit.o) -endif - -LIBUIDUNIQUE= $(addprefix $(LIBDIR)/, $(UID_DLL).$(DLL_SUFFIX)) - -ifeq ($(ARCH), WINNT) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) -EXTRA_LIBS_DEP += $(LDAPSDK_DEP) -EXTRA_LIBS += $(LIBSLAPD) $(LDAP_SDK_LIBLDAP_DLL) -endif - - - -ifeq ($(ARCH), WINNT) -DLL_LDFLAGS += -def:"./libuiduniq.def" -EXTRA_LIBS += $(NSPRLINK) -endif # WINNT - -ifeq ($(ARCH), AIX) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) -EXTRA_LIBS_DEP += $(LDAPSDK_DEP) -EXTRA_LIBS += $(LIBSLAPD) $(LDAP_SDK_LIBLDAP_DLL) -EXTRA_LIBS += $(DLL_EXTRA_LIBS) -LD=ld -endif - -ifeq ($(ARCH), HPUX) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) $(LDAPSDK_DEP) $(NSPR_DEP) $(SECURITY_DEP) -EXTRA_LIBS += $(LDAPLINK) $(SECURITYLINK) $(NSPRLINK) $(ICULINK) -endif - -EXTRA_LIBS += $(SHAREDLIB) - -clientSDK: - -all: $(OBJDEST) $(LIBDIR) $(LIBUIDUNIQUE) - -$(LIBUIDUNIQUE): $(OBJS) $(LIBUIDUNIQUE_DLL_OBJ) $(DEF_FILE) -# $(LINK_DLL) $(LIBUIDUNIQUE_DLL_OBJ) $(PLATFORMLIBS) $(EXTRA_LIBS) - $(LINK_DLL) $(PLATFORMLIBS) $(EXTRA_LIBS) - -veryclean: clean - -clean: - $(RM) $(OBJS) -ifeq ($(ARCH), WINNT) - $(RM) $(LIBUIDUNIQUE_DLL_OBJ) -endif - $(RM) $(LIBUIDUNIQUE) - -$(OBJDEST): - $(MKDIR) $(OBJDEST) - -# -# header file dependencies (incomplete) -# -$(OBJS): $(LDAP_SRC)/servers/slapd/slapi-plugin.h \ - ../shared/plugin-utils.h - diff --git a/ldap/servers/plugins/vattrsp_template/Makefile b/ldap/servers/plugins/vattrsp_template/Makefile deleted file mode 100644 index 9ed7c0c7..00000000 --- a/ldap/servers/plugins/vattrsp_template/Makefile +++ /dev/null @@ -1,110 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -LDAP_SRC = ../../.. -BUILD_ROOT = ../../../.. - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST = $(OBJDIR)/lib/libvattrsp -LIBDIR = $(LDAP_PLUGIN_RELDIR) - -include $(BUILD_ROOT)/nsdefs.mk -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk - -ifeq ($(ARCH), WINNT) -DEF_FILE:=./vattrsp.def -endif - -VATTRSP_OBJS = vattrsp.o -OBJS = $(addprefix $(OBJDEST)/, $(VATTRSP_OBJS)) - -VATTRSP_DLL = libvattrsp-plugin - -INCLUDES += -I../../slapd -I../../../include -CFLAGS+=$(SLCFLAGS) -DSLAPD_LOGGING - -ifeq ($(ARCH), WINNT) -EXTRA_LIBS_DEP += $(LIBSLAPD) $(NSPR_DEP) $(LDAPSDK_DEP) -EXTRA_LIBS += $(NSPRLINK) $(LIBSLAPD) $(LDAP_SDK_LIBLDAP_DLL) -VATTRSP_DLL_OBJ = $(addprefix $(OBJDEST)/, dllmain.o) -endif - -ifeq ($(ARCH), AIX) -EXTRA_LIBS_DEP += $(LIBSLAPD) $(NSPR_DEP) $(LDAPSDK_DEP) -EXTRA_LIBS += $(LIBSLAPDLINK) $(NSPRLINK) $(LDAP_SDK_LIBLDAP_DLL) -LD=ld -endif - -ifeq ($(ARCH), HPUX) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) $(LDAPSDK_DEP) $(NSPR_DEP) $(SECURITY_DEP) -EXTRA_LIBS += $(LDAPLINK) $(SECURITYLINK) $(NSPRLINK) $(ICULINK) -endif - -VATTRSP= $(addprefix $(LIBDIR)/, $(VATTRSP_DLL).$(DLL_SUFFIX)) - -clientSDK: - -all: $(OBJDEST) $(LIBDIR) $(VATTRSP) - -ifeq ($(ARCH), WINNT) -$(VATTRSP): $(OBJS) $(VATTRSP_DLL_OBJ) $(DEF_FILE) - $(LINK_DLL) $(VATTRSP_DLL_OBJ) $(EXTRA_LIBS) /DEF:$(DEF_FILE) -else -$(VATTRSP): $(OBJS) $(VATTRSP_DLL_OBJ) - $(LINK_DLL) $(VATTRSP_DLL_OBJ) $(EXTRA_LIBS) -endif - - -veryclean: clean - -clean: - $(RM) $(OBJS) -ifeq ($(ARCH), WINNT) - $(RM) $(VATTRSP_DLL_OBJ) -endif - $(RM) $(VATTRSP) - -$(OBJDEST): - $(MKDIR) $(OBJDEST) - -$(LIBDIR): - $(MKDIR) $(LIBDIR) diff --git a/ldap/servers/plugins/views/Makefile b/ldap/servers/plugins/views/Makefile deleted file mode 100644 index 521b6f14..00000000 --- a/ldap/servers/plugins/views/Makefile +++ /dev/null @@ -1,107 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -LDAP_SRC = ../../.. -BUILD_ROOT = ../../../.. - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST = $(OBJDIR)/lib/libviews -LIBDIR = $(LDAP_PLUGIN_RELDIR) - -include $(BUILD_ROOT)/nsdefs.mk -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk - -ifeq ($(ARCH), WINNT) -DEF_FILE:=./views.def -endif - -VIEWS_OBJS = views.o -OBJS = $(addprefix $(OBJDEST)/, $(VIEWS_OBJS)) - -VIEWS_DLL = libviews-plugin - -INCLUDES += -I../../slapd -I../../../include -CFLAGS+=$(SLCFLAGS) -DSLAPD_LOGGING - -ifeq ($(ARCH), WINNT) -EXTRA_LIBS_DEP += $(LIBSLAPD) $(NSPR_DEP) $(LDAPSDK_DEP) -EXTRA_LIBS += $(NSPRLINK) $(LIBSLAPD) $(LDAP_SDK_LIBLDAP_DLL) -VIEWS_DLL_OBJ = $(addprefix $(OBJDEST)/, dllmain.o) -endif - -ifeq ($(ARCH), HPUX) -EXTRA_LIBS_DEP += $(LIBSLAPD_DEP) $(LDAPSDK_DEP) $(NSPR_DEP) $(SECURITY_DEP) -EXTRA_LIBS += $(LDAPLINK) $(SECURITYLINK) $(NSPRLINK) $(ICULINK) -endif - -ifeq ($(ARCH), AIX) -LD=ld -EXTRA_LIBS_DEP += $(LIBSLAPD) $(NSPR_DEP) $(LDAPSDK_DEP) -EXTRA_LIBS += $(LIBSLAPDLINK) $(NSPRLINK) $(LDAP_SDK_LIBLDAP_DLL) -endif - -VIEWS= $(addprefix $(LIBDIR)/, $(VIEWS_DLL).$(DLL_SUFFIX)) - -clientSDK: - -all: $(OBJDEST) $(LIBDIR) $(VIEWS) - -ifeq ($(ARCH), WINNT) -$(VIEWS): $(OBJS) $(VIEWS_DLL_OBJ) $(DEF_FILE) - $(LINK_DLL) $(VIEWS_DLL_OBJ) $(EXTRA_LIBS) /DEF:$(DEF_FILE) -else -$(VIEWS): $(OBJS) $(VIEWS_DLL_OBJ) - $(LINK_DLL) $(VIEWS_DLL_OBJ) $(EXTRA_LIBS) -endif - - -veryclean: clean - -clean: - $(RM) $(OBJS) -ifeq ($(ARCH), WINNT) - $(RM) $(VIEWS_DLL_OBJ) -endif - $(RM) $(VIEWS) - -$(OBJDEST): - $(MKDIR) $(OBJDEST) diff --git a/ldap/servers/slapd/Makefile b/ldap/servers/slapd/Makefile deleted file mode 100644 index 526350f4..00000000 --- a/ldap/servers/slapd/Makefile +++ /dev/null @@ -1,298 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -# -# GNU Makefile for Directory Server -# - -LDAP_SRC = ../.. -BUILD_ROOT = ../../.. - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST = $(OBJDIR)/servers/obj -BINDIR = $(LDAP_SERVER_RELDIR) -ifndef INSTDIR -INSTDIR = /opt/servers/ -endif - -include $(BUILD_ROOT)/nsdefs.mk -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk -include $(BUILD_ROOT)/ns_usepurify.mk -include $(BUILD_ROOT)/ns_usequantify.mk -include $(LDAP_SRC)/nsdeps.mk - - -ifdef HEAPAGENT -CFLAGS+=-DPURIFYING -LDAP_DONT_USE_SMARTHEAP=1 -endif - -ifdef USE_PURIFY -CFLAGS+=-DPURIFYING -LDAP_DONT_USE_SMARTHEAP=1 -endif - -ifdef USE_QUANTIFY -CFLAGS+=-DQUANTIFYING -LDAP_DONT_USE_SMARTHEAP=1 -endif - -ifndef LDAP_DONT_USE_SMARTHEAP -include $(BUILD_ROOT)/ns_usesh.mk -INCLUDES+=-I$(SH_INCLUDE) -else -CFLAGS+=-DLDAP_DONT_USE_SMARTHEAP -endif - -ifndef LDAP_USE_OLD_DB -_ldap_db_depend:=$(DB_LIB_DEP) -INCLUDES+=-I$(DB_INCLUDE) -endif - -INCLUDES += -I. -I$(ACLINC) -I$(BUILD_ROOT)/lib - -#ICONS = $(addprefix $(LDAP_SRC)/servers/slapd/ntwdog/, logo.ico key.ico) - -REGULAR_SLAPD_OBJS= abandon.o bind.o \ - compare.o config.o connection.o daemon.o sasl_io.o \ - detach.o globals.o house.o init.o \ - monitor.o saslbind.o search.o strdup.o tempnam.o \ - unbind.o extendop.o rootdse.o \ - configdse.o pw_mgmt.o auth.o \ - psearch.o conntable.o \ - stubs.o protect_db.o fileio.o lite_entries.o \ - getopt_ext.o start_tls_extop.o passwd_extop.o -FEDSE_OBJ= fedse.o -FEDSE_SRC= fedse.c -SLAPD_OBJS= $(REGULAR_SLAPD_OBJS) $(FEDSE_OBJ) - - -ifneq ($(ARCH), WINNT) -SLAPD_OBJS += main.o -endif - -ifeq ($(ARCH), WINNT) -LDAP_COMMON_EXTRALIBSLIST=libsi18n -LDAP_COMMON_EXTRALIBS = $(addsuffix .$(LIB_SUFFIX), \ - $(addprefix $(LDAP_LIBDIR)/, $(LDAP_COMMON_EXTRALIBSLIST))) - -EXTRA_LIBS_DEP = \ - $(LDAP_SDK_LIBLDAP_DLL_DEP) \ - $(LDAP_SDK_LIBSSLDAP_LIB_DEP) $(LIBLDAPU_DEP) \ - $(_ldap_db_depend) $(LDAP_COMMON_EXTRALIBS) - -EXTRA_LIBS += $(LIBSLAPD) $(LIBLDAPU) $(SVRCORELINK)\ - $(LDAPLINK) $(SECURITYLINK) $(NSPRLINK) \ - $(LDAP_COMMON_EXTRALIBS) - -# JCM - Warnings as Errors -CFLAGS += /WX -else -LDFLAGS = $(SSLLIBFLAG) -EXTRA_LIBS_DEP = $(SECURITY_DEP) $(NSPR_DEP) \ - $(LDAP_LIBLDBM_DEP) $(LDAP_LIBAVL_DEP) $(LDAP_LIBLDIF_DEP) \ - $(LDAPSDK_DEP) $(LIBLDAPU_DEP) \ - $(_ldap_db_depend) \ - $(SVRCORE_DEP) - - -#IRIX linker needs LIBSEC first, couldn't find away that would make both IRIX and -# solaris happy, hence the ifeq -ifeq ($(ARCH), IRIX) -# -llitekey is added; but it looks to me these two EXTRA_LIBS are identical... -EXTRA_LIBS = $(LIBSLAPD) \ - $(LIBLDAPU) $(LDAPLINK) \ - $(SECURITYLINK) $(NSPRLINK) $(LDAP_LIBLDBM) \ - $(DBMLINK) -lavl -lldif -llitekey \ - $(ALIBS) $(DYNALIBS) $(THREADSLIB) $(SVRCORELINK) -else -EXTRA_LIBS = $(LIBSLAPD) \ - $(LIBLDAPU) $(SECURITYLINK) $(LDAPLINK) \ - $(NSPRLINK) $(LDAP_LIBLDBM) \ - $(DBMLINK) -lavl -lldif -llitekey \ - $(ALIBS) $(DYNALIBS) $(THREADSLIB) \ - $(SVRCORELINK) -endif - -endif - -EXTRA_LIBS_DEP+=$(LIBSLAPD_DEP) - -EXTRA_LIBS += $(SASL_LINK) - -ifeq ($(ARCH), Linux) -EXTRA_LIBS += -lcrypt -lpthread -endif - -# In order for debugging to work properly with shared libraries on HP/UX, -# we need to link with end.o. -ifeq ($(ARCH), HPUX) - # need to add arch flags :maybe - LDFLAGS+=$(ARCH_CFLAGS) - # HPUX linker voodoo - ifeq ($(DEBUG), full) - ifeq ($(USE_64), 1) - EXTRA_LIBS_TEMP:=$(EXTRA_LIBS) - ifneq ($(NSOS_TEST1), ia64) - EXTRA_LIBS += /opt/langtools/lib/pa20_64/end.o - endif - else - EXTRA_LIBS_TEMP:=$(EXTRA_LIBS) - ifneq ($(NSOS_TEST1), ia64) - EXTRA_LIBS += /opt/langtools/lib/end.o - endif - endif #USE_64 - endif #DEBUG - # Always put libpthread at the beginning of the library list, otherwise NSPR gets upset (very) - EXTRA_LIBS_TEMP:=$(EXTRA_LIBS) - EXTRA_LIBS =-lpthread $(EXTRA_LIBS_TEMP) -endif #HPUX - -#Put SmartHeap at the beginning of the linker library list -EXTRA_LIBS_TEMP:=$(EXTRA_LIBS) -EXTRA_LIBS=$(SH_LIB) $(EXTRA_LIBS_TEMP) - -ifeq ($(ARCH), SOLARIS) -ifeq ($(USE_64), 1) -LDFLAGS+= -xarch=v9 -endif -endif - -ifeq ($(ARCH), SOLARIS) - SH_LIB = -lmtmalloc -endif - -ifeq ($(ARCH), SOLARISx86) - SH_LIB= -lmtmalloc -endif - -OBJS = $(addprefix $(OBJDEST)/, $(SLAPD_OBJS)) - -STUB_OBJS = $(addprefix $(OBJDEST)/, stubrepl.o) - -ifeq ($(ARCH), WINNT) -MAIN_OBJ = $(addprefix $(OBJDEST)/, main.o) -SLAPD_RES = $(addprefix $(SVRCORE_LIBPATH)/, ntsvrcore.res) -EXTRA_OBJS = $(MAIN_OBJ) $(SLAPD_RES) -SUBSYSTEM=console -endif - -ifeq ($(ARCH), WINNT) -SLAPD = $(addprefix $(BINDIR)/, slapd.exe) -else -ifdef USE_PURIFY -SLAPD = $(addprefix $(BINDIR)/, ns-slapd.pure) -else -ifdef USE_QUANTIFY -SLAPD = $(addprefix $(BINDIR)/, ns-slapd.quantify) -else -SLAPD = $(addprefix $(BINDIR)/, ns-slapd) -endif -endif -endif - -ifeq ($(ARCH), AIX) -ifdef OLD_AIX_LINKING - CCC = svxlC_r -endif - -#LDFLAGS += -bloadmap:$(BINDIR)/loadmap_slapd -# setup the bmaxdata flag to use 5 segments (1.25 GB). -# This is a trade-off that allows dbcachesize to be up to about 1GB. -LDFLAGS += -bmaxdata:0x50000000 -EXTRA_LIBS += -L$(OBJDIR) $(EXE_EXTRA_LIBS) -LINK_EXE = $(CCC) -bautoexp -brtl $(ALDFLAGS) $(LDFLAGS) \ - $(RPATHFLAG_PREFIX)$(RPATHFLAG)$(RPATHFLAG_EXTRAS) \ - -o $@ $(OBJS) $(EXTRA_LIBS) -endif - -#ifeq ($(ARCH),OSF1) -#LINK_EXE = $(CXX) $(ALDFLAGS) $(LDFLAGS) \ -# $(RPATHFLAG_PREFIX)$(RPATHFLAG)$(RPATHFLAG_EXTRAS) \ -# -o $@ $(OBJS) $(EXTRA_LIBS) -#endif # OSF1 - -# Special rule to compile a large source file on Win32: -# Use the /Zm option to increase internal compiler heap size. -ifeq ($(ARCH), WINNT) -$(OBJDEST)/$(FEDSE_OBJ): $(FEDSE_SRC) - $(CC) -c /Zm250 $(CFLAGS) $(MCC_INCLUDE) $< -Fo$(OBJDEST)/$(FEDSE_OBJ) $(CBSCFLAGS) -endif - -all: $(OBJDEST) $(BINDIR) $(BUILD_DEP) libslapd $(SLAPD) $(STUB_OBJS) - -static: $(OBJDEST) $(LIBSLAPD) - -clientSDK: static - -.PHONY: libslapd push - -libslapd $(LIBSLAPD_DEP): - $(MAKE) -f libmakefile $(MFLAGS) all - -#$(SLAPD_RES): $(LDAP_SRC)/libraries/libutil/ntslapd.rc \ -# $(DIRVER_H) -# $(RSC) -fo $(SLAPD_RES) -i. -i $(OBJDIR)/include $< - -$(SLAPD): $(SH_LIB_DEP) $(OBJS) $(MAIN_OBJ) $(SLAPD_RES) $(EXTRA_LIBS_DEP) - $(QUANTIFY) $(PURIFY) $(PUREOPTS) $(LINK_EXE) $(EXTRA_OBJS) $(DB_LIB) - -veryclean: clean - -clean: - -$(RM) $(OBJS) - -$(RM) $(STUB_OBJS) -ifeq ($(ARCH), WINNT) - -$(RM) $(MAIN_OBJ) -# -$(RM) $(SLAPD_RES) -endif - -$(RM) $(SLAPD) - $(MAKE) -f libmakefile clean - -# Target to push the built binary to an installed server -SLAPD_PUSH = $(addprefix $(INSTDIR)/, bin/slapd/server/slapd.exe) -push: $(SLAPD_PUSH) - $(MAKE) -f libmakefile $(MFLAGS) push - -$(SLAPD_PUSH): $(SLAPD) - cp $(SLAPD) $(SLAPD_PUSH) - diff --git a/ldap/servers/slapd/back-ldbm/Makefile b/ldap/servers/slapd/back-ldbm/Makefile deleted file mode 100644 index fa8e4927..00000000 --- a/ldap/servers/slapd/back-ldbm/Makefile +++ /dev/null @@ -1,222 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -# -# GNU Makefile for Directory Server libback-ldbm -# -LDAP_SRC = ../../.. -BUILD_ROOT = ../../../.. - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST = $(OBJDIR)/lib/libback-ldbm - -ifndef INSTDIR -INSTDIR = /netscape/server4/ -endif - -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk -ifndef LDAP_USE_OLD_DB -INCLUDES+=-I$(DB_INCLUDE) -else -CFLAGS+=-DLDAP_USE_DB185 -endif -include $(LDAP_SRC)/nsdeps.mk - -CFLAGS+=$(SLCFLAGS) - -INCLUDES += -I$(LDAP_SRC)/servers/slapd - -LIBBACK_LDBM_OBJS= idl.o idl_shim.o idl_new.o idl_common.o cache.o dn2entry.o \ - id2entry.o index.o haschildren.o nextid.o init.o \ - filterindex.o close.o backentry.o monitor.o seq.o start.o \ - rmdb.o ldif2ldbm.o dblayer.o findentry.o archive.o \ - sort.o dbsize.o dbtest.o vlv.o vlv_key.o \ - vlv_srch.o matchrule.o entrystore.o parents.o misc.o \ - upgrade.o dbversion.o cleanup.o uniqueid2entry.o \ - perfctrs.o instance.o import-threads.o import.o import-merge.o \ - ldbm_config.o ldbm_instance_config.o ldbm_index_config.o ldbm_attrcrypt_config.o \ - ldbm_attr.o \ - ldbm_abandon.o \ - ldbm_compare.o \ - ldbm_add.o \ - ldbm_search.o \ - ldbm_modify.o \ - ldbm_modrdn.o \ - ldbm_delete.o \ - ldbm_bind.o \ - ldbm_unbind.o \ - ancestorid.o \ - ldbm_attrcrypt.o \ - dbhelp.o - -OBJS = $(addprefix $(OBJDEST)/, $(LIBBACK_LDBM_OBJS)) - -ifeq ($(ARCH), WINNT) -LIBBACK_LDBM_DLL_OBJ = $(addprefix $(OBJDEST)/, dllmain.o) -endif - -LIBBACK_LDBM= $(addprefix $(LDAP_LIBBACK_LDBM_DLLDIR)/, $(LIBBACK_LDBM_DLL).$(DLL_SUFFIX)) - -ifeq ($(ARCH), WINNT) -EXTRA_LIBS_DEP += \ - $(LDAPSDK_DEP) \ - $(LDAP_LIBLDIF_DEP) \ - $(LDAP_LIBAVL_DEP) -EXTRA_LIBS += \ - $(NSPRLINK) \ - $(LDAP_SDK_LIBLDAP_DLL) \ - $(LDAP_LIBLDIF) \ - $(LDAP_LIBAVL) -CFLAGS+= /WX -endif - -ifeq ($(ARCH), AIX) -EXTRA_LIBS_DEP += \ - $(LDAP_SDK_LIBLDAP_DLL_DEP) \ - $(LDAP_LIBLDIF_DEP) \ - $(LDAP_LIBAVL_DEP) -EXTRA_LIBS += \ - $(NSPRLINK) \ - $(LDAP_SDK_LIBLDAP_DLL) \ - $(LDAP_LIBLDIF) \ - $(LDAP_LIBAVL) \ - $(DLL_EXTRA_LIBS) -LD=ld -endif - -ifeq ($(ARCH), SOLARIS) -EXTRA_LIBS_DEP += \ - $(LDAPSDK_DEP) \ - $(LDAP_LIBLDIF_DEP) \ - $(LDAP_LIBAVL_DEP) -EXTRA_LIBS += \ - $(LDAPLINK) $(SECURITYLINK) $(NSPRLINK) \ - $(LDAP_LIBLDIF) \ - $(LDAP_LIBAVL) \ - $(DLL_EXTRA_LIBS) -lc -# All the dependent libraries may not be linked with. (e.g., Cyrus SASL) -# LINK_DLL += -z defs -endif - -ifeq ($(ARCH), HPUX) -EXTRA_LIBS_DEP += \ - $(LDAPSDK_DEP) \ - $(LDAP_LIBLDIF_DEP) \ - $(LDAP_LIBAVL_DEP) -EXTRA_LIBS += \ - $(LDAPLINK) $(SECURITYLINK) $(NSPRLINK) \ - $(LDAP_LIBLDIF) \ - $(LDAP_LIBAVL) \ - $(DLL_EXTRA_LIBS) -lc -endif - -ifeq ($(ARCH), WINNT) -DLL_LDFLAGS += -def:"./libback-ldbm.def" -IMPLIB= /IMPLIB:$(LDAP_LIBBACK_LDBM_LIBDIR)/$(LIBBACK_LDBM_DLL).lib -MAPFILE= /MAP:$(LDAP_LIBBACK_LDBM_LIBDIR)/$(LIBBACK_LDBM_DLL).map -endif # WINNT - -ifeq ($(ARCH), UnixWare) -EXTRA_LIBS_DEP += $(LDAP_LIBAVL_DEP) -EXTRA_LIBS += $(LDAP_LIBAVL) -endif # UnixWare - -ifeq ($(ARCH), Linux) -EXTRA_LIBS_DEP += $(LDAP_LIBLDBM_DEP) $(LDAP_LIBAVL_DEP) $(LDAP_LIBLDIF_DEP) -EXTRA_LIBS += $(LDAP_LIBLDBM) $(LDAP_LIBAVL) $(LDAP_LIBLDIF) -EXTRA_LIBS += $(DLL_EXTRA_LIBS) -endif # Linux - -EXTRA_LIBS_DEP += $(DB_LIB_DEP) - -clientSDK: - -all: $(OBJDEST) $(LDAP_LIBBACK_LDBM_LIBDIR) $(LDAP_LIBBACK_LDBM_DLLDIR) \ - $(BUILD_DEP) $(LIBBACK_LDBM) -ifeq ($(ARCH), WINNT) - cd ntdbperfdll; $(MAKE) $(MFLAGS) all -endif - -dummy: - -@echo LDAP_LIBDIR = $(LDAP_LIB_RELDIR) - -@echo LDAP_LIBBACK_LDBM_LIBDIR = $(LDAP_LIBBACK_LDBM_LIBDIR) - -@echo LIB_RELDIR = $(LIB_RELDIR) - -@echo LDAP_LIBBACK_LDBM_DLLDIR = $(LDAP_LIBBACK_LDBM_DLLDIR) - -@echo LDAP_LIBBACK_LDBM = $(LDAP_LIBBACK_LDBM) - -@echo LIBBACK_LDBM = $(LIBBACK_LDBM) - abort - -$(LIBBACK_LDBM): $(OBJS) $(LIBBACK_LDBM_DLL_OBJ) $(EXTRA_LIBS_DEP) $(LIBSLAPD_DEP) - $(LINK_DLL) $(IMPLIB) $(MAPFILE) $(LIBBACK_LDBM_DLL_OBJ) $(EXTRA_LIBS) $(DB_LIB) $(LIBSLAPD) - -veryclean: clean - -clean: - $(RM) $(OBJS) -ifeq ($(ARCH), WINNT) - $(RM) $(LIBBACK_LDBM_DLL_OBJ) -endif - $(RM) $(LIBBACK_LDBM) - -$(OBJDEST) $(LIBBACK_LDBM_LIBDIR): - $(MKDIR) $@ - -ifeq ($(ARCH), AIX) -ifeq ($(DEBUG), optimize) - -# For some reason compiling ldif2ldbm.c with the -O flag on AIX causes -# the new import code to hang. For now we will avoid the -O flag. - -TEMP_CFLAGS = $(subst -O,,$(CFLAGS)) - -$(OBJDEST)/ldif2ldbm.o: ldif2ldbm.c - $(CC) -o $(OBJDEST)/ldif2ldbm.o -c $(TEMP_CFLAGS) $(MCC_INCLUDE) ldif2ldbm.c -endif -endif - -# Target to push the built binary to an installed server -LDBM_PUSH = $(addprefix $(INSTDIR)/, lib/libback-ldbm.dll) -push: $(LDBM_PUSH) - -$(LDBM_PUSH): $(LIBBACK_LDBM) - cp $(LIBBACK_LDBM) $(LDBM_PUSH) - diff --git a/ldap/servers/slapd/back-ldbm/tools/index_dump/Makefile b/ldap/servers/slapd/back-ldbm/tools/index_dump/Makefile deleted file mode 100644 index 20d3e245..00000000 --- a/ldap/servers/slapd/back-ldbm/tools/index_dump/Makefile +++ /dev/null @@ -1,72 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -# -# GNU Makefile for Directory Server libback-ldbm -# - -LDAP_SRC = ../../../../.. -BUILD_ROOT = ../../../../../.. - -OBJDEST = $(OBJDIR)/lib/libback-ldbm -LIBDIR = $(LDAP_LIBDIR) - -include $(BUILD_ROOT)/nsdefs.mk -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk -include $(BUILD_ROOT)/ns_usedb.mk - -INCLUDES += -I$(LDAP_SRC)/servers/slapd - -INDEX_DUMP_OBJS= index_dump.o - -OBJS = $(addprefix $(OBJDEST)/, $(INDEX_DUMP_OBJS)) - -all: $(OBJDEST) $(LIBDIR) $(SLIBBACK_LDBM) $(LIBBACK_LDBM) - -veryclean: clean - -clean: - -$(OBJDEST): - $(MKDIR) $(OBJDEST) - -$(BINDIR): - $(MKDIR) $(LIBDIR) - diff --git a/ldap/servers/slapd/back-ldif/Makefile b/ldap/servers/slapd/back-ldif/Makefile deleted file mode 100644 index 6b616bc6..00000000 --- a/ldap/servers/slapd/back-ldif/Makefile +++ /dev/null @@ -1,112 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -# -# GNU Makefile for LDAP Back-ldif backend -# - -LDAP_SRC = ../../.. -BUILD_ROOT = ../../../.. - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST = $(OBJDIR)/lib/libback-ldif -LIBDIR = $(LDAP_LIBDIR) -SERVER_OBJDEST = $(OBJDIR)/servers/obj - -include $(BUILD_ROOT)/nsdefs.mk -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk - -BACKLDIF_OBJS = close.o delete.o modrdn.o unbind.o add.o \ - compare.o init.o search.o bind.o config.o modify.o monitor.o \ - start.o - -OBJS = $(addprefix $(OBJDEST)/, $(BACKLDIF_OBJS)) - -SERVER_OBJS= ch_malloc.o entry.o result.o modutil.o - -EXTRA_OBJS = $(addprefix $(SERVER_OBJDEST)/, $(SERVER_OBJS)) - -INCLUDES += -I.. - -ifeq ($(ARCH), WINNT) -BACKLDIF_DLL_OBJ = $(addprefix $(OBJDEST)/, dllmain.o) -endif - -LDAP_BACKLDIF= $(addprefix $(LIBDIR)/, $(LIBBACK_LDIF_DLL).$(DLL_SUFFIX)) - -ifeq ($(ARCH), WINNT) -EXTRA_LIBS_DEP += $(LIBSECURITY) $(LIBNSPR) \ - $(LDAP_COMMON_LIBS_DEP) $(LDAP_SDK_LIBS_DEP) \ - $(LIBSLAPD_DEP) $(LIBLDAPU_DEP) - -EXTRA_LIBS += $(LIBSECURITY) $(LIBNSPR) \ - $(LDAP_COMMON_LIBS) $(LDAP_SDK_LIBS) \ - $(LIBSLAPD) $(THREADSLIB) $(LIBLDAPU) -endif - -ifeq ($(ARCH), AIX) -EXTRA_LIBS += $(DLL_EXTRA_LIBS) -endif - -clientSDK: - -all: $(OBJDEST) $(LIBDIR) $(LDAP_BACKLDIF) - -$(LIBDIR): - $(MKDIR) $(LIBDIR) - -$(LDAP_BACKLDIF): $(OBJS) $(BACKLDIF_DLL_OBJ) - $(LINK_DLL) $(BACKLDIF_DLL_OBJ) $(EXTRA_LIBS) - -$(SERVER_OBJDEST)/ch_malloc.o: ../ch_malloc.c - $(CC) -c $(CFLAGS) $(MCC_INCLUDE) $< $(OFFLAG)$*.o - -clean: - $(RM) $(OBJS) -ifeq ($(ARCH), WINNT) - $(RM) $(BACKLDIF_DLL_OBJ) -endif - $(RM) $(LDAP_BACKLDIF) - -$(OBJDEST): - $(MKDIR) $(OBJDEST) - diff --git a/ldap/servers/slapd/libsh_stub/Makefile b/ldap/servers/slapd/libsh_stub/Makefile deleted file mode 100644 index 9614bbed..00000000 --- a/ldap/servers/slapd/libsh_stub/Makefile +++ /dev/null @@ -1,90 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -# -# GNU Makefile for libsh_stub.so -# -LDAP_SRC = ../../.. -BUILD_ROOT = ../../../.. - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST = $(OBJDIR)/lib/libsh_stub - -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk -include $(LDAP_SRC)/nsdeps.mk - - -LIBSH_STUB_C= libsh_stub.c - -SHARE_LIB = $(addprefix $(OBJDEST)/, libsh_stub.so) - -# share lib -CFLAGS = -G $(SLCFLAGS) - -# link libmtmalloc.so when built on 5.8 or 5.9 -ifeq ($(ARCH), SOLARIS) - LINKFLAGS = -lmtmalloc - LIBSH_STUB = libsh_stub -else - # do nothing on non-SOLARIS platforms - LIBSH_STUB = no_op -endif - -all: $(LIBSH_STUB) - -.PHONY: libsh_stub no_op - -libsh_stub: $(OBJDEST) $(SHARE_LIB) - -$(SHARE_LIB): $(LIBSH_STUB_C) - $(CC) -o $(SHARE_LIB) $(CFLAGS) $(LIBSH_STUB_C) $(LINKFLAGS) - -no_op: - -@echo libsh_stub.so is not built on $(ARCH) platform - -$(OBJDEST) : - $(MKDIR) $@ - -veryclean: clean - -clean: - $(RM) $(SHARE_LIB) diff --git a/ldap/servers/slapd/ntmsgdll/Makefile b/ldap/servers/slapd/ntmsgdll/Makefile deleted file mode 100644 index c152ef0f..00000000 --- a/ldap/servers/slapd/ntmsgdll/Makefile +++ /dev/null @@ -1,93 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -# -# GNU Makefile for Directory Server NT messages DLL -# - -LDAP_SRC = ../../.. -BUILD_ROOT = ../../../.. - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST = $(OBJDIR)/ntmsgdll/obj -BINDIR = $(LDAP_SERVER_RELDIR) - -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk - -MSGFILE = slapdmessages30 - -MSG_SRC = ntslapdmessages - -NTMSGDLL = $(addprefix $(BINDIR)/, $(MSGFILE).$(DLL_SUFFIX)) - -LDAP_MSG_OBJS= $(MSG_SRC).o $(MSG_SRC).res - -OBJS = $(addprefix $(OBJDEST)/, $(LDAP_MSG_OBJS)) - -clientSDK: all - -all: $(OBJDEST) $(BINDIR) $(NTMSGDLL) - -veryclean: clean - -clean: - $(RM) $(OBJS) - $(RM) $(OBJDEST)/msg00001.bin - $(RM) $(LDAP_HDIR)/$(MSG_SRC).h - $(RM) $(OBJDEST)/$(MSG_SRC).rc - $(RM) $(NTMSGDLL) - -$(OBJDEST): - $(MKDIR) $@ - -$(NTMSGDLL): $(OBJS) $(LDAP_HDIR)/$(MSG_SRC).h - $(LINK_DLL) - -$(LDAP_HDIR)/$(MSG_SRC).h: $(MSG_SRC).mc - -$(OBJDEST)/msg0001.bin: $(MSG_SRC).mc - -$(OBJDEST)/$(MSG_SRC).rc: $(MSG_SRC).mc - $(MC) $< -h $(LDAP_HDIR) -r $(OBJDEST) - -$(OBJDEST)/$(MSG_SRC).res: $(OBJDEST)/$(MSG_SRC).rc - $(RSC) -fo $(OBJDEST)/$(MSG_SRC).res $< diff --git a/ldap/servers/slapd/ntperfdll/Makefile b/ldap/servers/slapd/ntperfdll/Makefile deleted file mode 100644 index 448ef9bb..00000000 --- a/ldap/servers/slapd/ntperfdll/Makefile +++ /dev/null @@ -1,84 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# - -BUILD_ROOT = ../../../.. -LDAP_SRC = ../../.. - -OBJDEST = $(OBJDIR)/servers/obj -BINDIR = $(LDAP_SERVER_RELDIR) -ALLDIRS = $(BINDIR) $(OBJDEST) - -include $(BUILD_ROOT)/nsdefs.mk -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk - -LINK32=link.exe - -MC=mc #message compiler? - -DLLS = nsldapctr - -# -D's get all screwed up: we need to fix them: -CFLAGS+= -UNS_PERSONAL -# this lets us pickup regparms.h -CFLAGS += -I $(BUILD_ROOT)/include - -MCS = nsldapctrmc -DEPMC = $(addsuffix .h, $(MCS)) - -OBJS = $(OBJDEST)/nsldapctr.o $(OBJDEST)/nsldapctrutil.o - -RELFILES = nsldapctrs.ini nsldapctrdef.h - -DESTRELFILES = $(addprefix $(LDAP_INSTALL_BIN_RELDIR)/, $(RELFILES)) - -all: $(ALLDIRS) $(addprefix $(BINDIR)/, $(addsuffix .dll, $(DLLS) ) ) $(DESTRELFILES) - -nsldapctrmc.h: - $(MC) -s -v $*.mc - -$(OBJDEST)/%.o: %.cpp - cl -nologo -c $(CFLAGS) $(MCC_INCLUDE) /Tp $< -Fo$@ - -$(BINDIR)/nsldapctr.dll: $(DEPMC) $(OBJS) - $(LINK_DLL) /OUT:$@ /DEF:exports.def - -$(LDAP_INSTALL_BIN_RELDIR)/%: % $(LDAP_INSTALL_BIN_RELDIR) - $(CP) $< $(dir $@) diff --git a/ldap/servers/slapd/ntwdog/Makefile b/ldap/servers/slapd/ntwdog/Makefile deleted file mode 100644 index 883aaf7f..00000000 --- a/ldap/servers/slapd/ntwdog/Makefile +++ /dev/null @@ -1,91 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -# -# GNU Makefile for LDAP Server NT Service watchdog -# - -LDAP_SRC = ../../.. -BUILD_ROOT = ../../../.. - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST = $(OBJDIR)/ntwdog/obj -SLAPD_OBJDEST= $(OBJDIR)/obj -BINDIR = $(LDAP_SERVER_RELDIR) -LDAP_LIBDIR = $(OBJDIR)/lib - -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk - -ifeq ($(ARCH), WINNT) -SUBSYSTEM=windows -endif - -#INCLUDES += -I$(BUILD_ROOT)/include/libadmin - -DS_SERVER_DEFS = - -NTWDOG_OBJS= ntwatchdog.o - -OBJS = $(addprefix $(OBJDEST)/, $(NTWDOG_OBJS)) - -LIBS_DEP = $(LDAP_LIBUTIL_DEP) $(LIBADMIN_DEP) - -LIBS = $(LDAP_LIBUTIL) - -EXTRA_LIBS += $(LIBS) - -NTWDOG = $(addprefix $(BINDIR)/, ns-slapd.exe) - -all: $(OBJDEST) $(BINDIR) $(NTWDOG) - -$(OBJDEST): - $(MKDIR) $(OBJDEST) - -$(NTWDOG): $(OBJS) $(LIBS_DEP) - $(LINK_EXE) - -veryclean: clean - -clean: - $(RM) $(OBJS) - $(RM) $(NTWDOG) - diff --git a/ldap/servers/slapd/tools/Makefile b/ldap/servers/slapd/tools/Makefile deleted file mode 100644 index 736fe03b..00000000 --- a/ldap/servers/slapd/tools/Makefile +++ /dev/null @@ -1,216 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -# -# gnu makefile for LDAP Server tools. -# - -LDAP_SRC = ../../.. -BUILD_ROOT = ../../../.. - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST = $(OBJDIR)/servers/tools/obj -BINDIR = $(LDAP_SERVER_RELDIR) - -SLAPD_OBJDIR = $(LDAP_OBJDIR) - -include $(BUILD_ROOT)/nsdefs.mk -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk -ifndef LDAP_USE_OLD_DB -INCLUDES+=-I$(DB_INCLUDE) -else -CFLAGS+=-DLDAP_USE_DB185 -endif - -SLAPDHDIR = ../ - -ifeq ($(ARCH), OSF1) -PLATFORM_SPECIFIC_EXTRA_LIBRARY = -lcxx -else # OSF1 -# oems might need to edit this for their platform -PLATFORM_SPECIFIC_EXTRA_LIBRARY = -endif # OSF1 - -INCLUDES += $(SSLINCLUDE) -DEFS += $(SSL) - -OBJS1 += $(OBJDEST)/pwenc.o - -ifeq ($(USE_64), 1) - ifeq ($(ARCH), HPUX) - ifeq ($(NSOS_RELEASE),B.11.23) - LDFLAGS += -lpthread +DD64 - else - LDFLAGS += -lpthread +DA2.0W +DS2.0 +Z - endif - endif - ifeq ($(ARCH), SOLARIS) - LDFLAGS += -xarch=v9 - endif -endif - -CFLAGS += $(ARCH_CFLAGS) - -INCLUDES += -I$(SLAPDHDIR) -I$(LDAP_ADMINCDIR) -INCLUDES += -I$(ACLINC) -INCLUDES += -I ../../plugins/rever -LDFLAGS += $(EXLDFLAGS) $(SSLLIBFLAG) - -ifeq ($(ARCH), WINNT) -SUBSYSTEM=console -endif - -DEPLIBS= - -EXTRA_LIBS_DEP = $(LDAPSDK_DEP) \ - $(LDAP_LIBLDIF_DEP) \ - $(LDAP_SLIBLCACHE_DEP) $(DB_LIB_DEP) $(LIBSLAPD_DEP) \ - $(LDAP_COMMON_LIBS_DEP) $(SASL_DEP) - -EXTRA_LIBS += $(LDAPLINK) \ - $(LDAP_SLIBLCACHE) $(DB_LIB) \ - $(PLATFORM_SPECIFIC_EXTRA_LIBRARY) $(LIBSLAPD) $(LDAP_LIBLITEKEY) \ - $(ALIBS) \ - $(SECURITYLINK) $(DBMLINK) \ - $(THREADSLIB) $(LDAP_COMMON_LIBS) $(NSPRLINK) $(SVRCORELINK) \ - $(SASL_LINK) - -ifeq ($(ARCH), Linux) -EXTRA_LIBS += -lcrypt -endif - - -KEYUPG_LIBS_DEP= -KEYUPG_LIBS=$(LDAP_LIBLITEKEY) - -ifeq ($(ARCH), WINNT) -KEYUPG_LIBS_DEP=$(LDAP_LIBUTIL_DEP) -KEYUPG_LIBS += $(LDAP_LIBUTIL) -endif - -ifdef HEAPAGENT -CFLAGS+=-DPURIFYING -LDAP_DONT_USE_SMARTHEAP=1 -endif - -# It looks like all of the latest versions of Unix that we ship on -# have a good enough heap implementations that they don't need -# SmartHeap. We still need it on NT. -ifneq ($(ARCH), WINNT) -LDAP_DONT_USE_SMARTHEAP=1 -endif - -# Don't use smartheap for debug builds on NT -ifeq ($(ARCH), WINNT) -ifeq ($(DEBUG), full) -LDAP_DONT_USE_SMARTHEAP=1 -endif -endif - -ifndef LDAP_DONT_USE_SMARTHEAP -include $(BUILD_ROOT)/ns_usesh.mk -_smartheap_depend = $(SH_LIB_DEP) -else -CFLAGS+=-DLDAP_DONT_USE_SMARTHEAP -endif - - -TOOL_OBJS = ldif.o keyupg.o pwenc.o mmldif.o migratecred.o eggencode.o dbscan.o -ALL_OBJS = $(addprefix $(OBJDEST)/, $(TOOL_OBJS)) - -LDIF = $(addsuffix $(EXE_SUFFIX), \ - $(addprefix $(BINDIR)/, ldif)) -PWDHASH = $(addsuffix $(EXE_SUFFIX), \ - $(addprefix $(BINDIR)/, pwdhash)) -MIGRATECRED = $(addsuffix $(EXE_SUFFIX), \ - $(addprefix $(BINDIR)/, migratecred)) -KEYUPG = $(addsuffix $(EXE_SUFFIX), \ - $(addprefix $(BINDIR)/, keyupg)) -MMLDIF = $(addsuffix $(EXE_SUFFIX), \ - $(addprefix $(BINDIR)/, mmldif)) -EGGENCODE = $(addsuffix $(EXE_SUFFIX), \ - $(addprefix $(BINDIR)/, eggencode)) -DBSCAN = $(addsuffix $(EXE_SUFFIX), \ - $(addprefix $(BINDIR)/, dbscan)) - -BINS= $(LDIF) $(PWDHASH) $(KEYUPG) $(MMLDIF) $(MIGRATECRED) $(DBSCAN) -EXTRABINS= $(EGGENCODE) - -all: $(OBJDEST) $(BINDIR) $(LDAP_ADMIN_BIN_RELDIR) $(BINS) buildRsearch buildLdclt - -extras: $(OBJDEST) $(BINDIR) $(EGGENCODE) - -$(LDIF): $(OBJDEST)/ldif.o $(LDAP_LIBLDIF_DEP) - $(LINK_EXE) $< $(LDAP_LIBLDIF) $(SASL_LINK) - -$(PWDHASH): $(OBJS1) $(EXTRA_LIBS_DEP) - $(LINK_EXE) $(OBJS1) $(EXTRA_LIBS) - -$(MIGRATECRED): $(OBJDEST)/migratecred.o $(EXTRA_LIBS_DEP) - $(LINK_EXE) $(OBJDEST)/migratecred.o $(EXTRA_LIBS) - -$(KEYUPG): $(OBJDEST)/keyupg.o $(KEYUPG_LIBS_DEP) - $(LINK_EXE_NOLIBSOBJS) $< $(KEYUPG_LIBS) - -$(MMLDIF): $(OBJDEST)/mmldif.o $(EXTRA_LIBS_DEP) - $(LINK_EXE_NOLIBSOBJS) $(OBJDEST)/mmldif.o $(EXTRA_LIBS) - -$(EGGENCODE): $(OBJDEST)/eggencode.o - $(LINK_EXE_NOLIBSOBJS) $(OBJDEST)/eggencode.o - -$(DBSCAN): $(OBJDEST)/dbscan.o - $(LINK_EXE) $< - -$(OBJDEST): - $(MKDIR) $(OBJDEST) - -buildRsearch: - cd rsearch; $(MAKE) LDFLAGS="$(LDFLAGS)" - -buildLdclt: - cd ldclt; $(MAKE) LDFLAGS="$(LDFLAGS)" - -clean: - -$(RM) $(ALL_OBJS) - -$(RM) $(BINS) $(EXTRABINS) - cd rsearch; $(MAKE) clean - diff --git a/ldap/servers/slapd/tools/ldclt/Makefile b/ldap/servers/slapd/tools/ldclt/Makefile deleted file mode 100644 index 5209c952..00000000 --- a/ldap/servers/slapd/tools/ldclt/Makefile +++ /dev/null @@ -1,138 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2006 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -# -# This Makefile is targetted to build the ldclt tool. This tool is a -# multithreaded ldap client, specially targetted to ensure good -# reliability of the product under test. -# -# ----------------------------------------------------------------------------- - -LDAP_SRC = ../../../.. -BUILD_ROOT = ../../../../.. - -OBJDEST = $(OBJDIR)/servers/tools/obj -BINDIR = $(RELDIR)/usr/bin -DATDIR = $(RELDIR)/usr/share/data - -include $(BUILD_ROOT)/nsdefs.mk -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk - -ifeq ($(OS_ARCH), WINNT) -OBJEXT =.obj -else -OBJEXT =.o -endif - -EXTRA_LIBS_DEP = $(LDAPSDK_DEP) $(DB_LIB_DEP) $(LDAP_COMMON_LIBS_DEP) $(SASL_DEP) - -EXTRA_LIBS += $(LDAPLINK) $(DB_LIB) \ - $(PLATFORM_SPECIFIC_EXTRA_LIBRARY) \ - $(ALIBS) $(NSPRLINK) $(SECURITYLINK) \ - $(THREADSLIB) $(LDAP_COMMON_LIBS) $(SASL_LINK) - -LDCLTSRC = \ - data.c \ - ldapfct.c \ - ldclt.c \ - ldcltU.c \ - parser.c \ - port.c \ - scalab01.c \ - threadMain.c \ - utils.c \ - version.c \ - workarounds.c - -#ifdef SUN_DS_3_X_SUPPORT -LDCLTSRC += opCheck.c -#endif - -LDCLTOBJS = $(addprefix $(OBJDEST)/, $(LDCLTSRC:.c=$(OBJEXT))) - -HDIR = $(LDAP_SRC)/include - -LDCLTBIN = $(addsuffix $(EXE_SUFFIX), $(addprefix $(BINDIR)/, ldclt)) - -INC_FILES = \ - ldclt.h \ - port.h \ - utils.h \ - remote.h - -INC_PLUGINS = \ - scalab01.h - -ADDLIBS = $(LDAPLIBS) $(SPEC_LIBS) $(SYSTEM_LIBS) $(END) - -CFLAGS+=-DLDAP_DONT_USE_SMARTHEAP - -ifeq ($(ARCH), Linux) -CFLAGS+=-D_XOPEN_SOURCE=500 -endif - -EXTRA_LIBS_DEP = $(LDAPSDK_DEP) $(DB_LIB_DEP) $(LDAP_COMMON_LIBS_DEP) - -EXTRA_LIBS += $(LDAPLINK) $(DB_LIB) \ - $(PLATFORM_SPECIFIC_EXTRA_LIBRARY) \ - $(ALIBS) $(NSPRLINK) $(SECURITYLINK) \ - $(THREADSLIB) $(LDAP_COMMON_LIBS) - -########################################################################## - -all: $(OBJDEST) $(BINDIR) $(LDCLTBIN) - -clean: - -$(RM) $(LDCLTOBJS) $(LDCLTBIN) - -$(OBJDEST): - if [ ! -d $(OBJDEST) ]; then \ - $(MKDIR) $(OBJDEST); \ - fi - -$(BINDIR): - if [ ! -d $(BINDIR) ]; then \ - $(MKDIR) $(BINDIR); \ - fi - -$(LDCLTBIN): $(LDCLTOBJS) - $(LINK_EXE) $(LDCLTOBJS) $(EXTRA_LIBS) - -chmod 755 $(LDCLTBIN) - diff --git a/ldap/servers/slapd/tools/rsearch/Makefile b/ldap/servers/slapd/tools/rsearch/Makefile deleted file mode 100644 index 8a85af00..00000000 --- a/ldap/servers/slapd/tools/rsearch/Makefile +++ /dev/null @@ -1,155 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2006 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -# -# gnu makefile for LDAP Server tools. -# - -LDAP_SRC = ../../../.. -BUILD_ROOT = ../../../../.. - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST = $(OBJDIR)/servers/tools/obj -BINDIR = $(RELDIR)/usr/bin -DATDIR = $(RELDIR)/usr/share/$(DS_BRAND)-ds/data - -include $(BUILD_ROOT)/nsdefs.mk -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk - -ifeq ($(ARCH), OSF1) -PLATFORM_SPECIFIC_EXTRA_LIBRARY = -lcxx -else # OSF1 -# oems might need to edit this for their platform -PLATFORM_SPECIFIC_EXTRA_LIBRARY = -endif # OSF1 - -EXTRA_LIBS_DEP = $(LDAPSDK_DEP) $(DB_LIB_DEP) $(LDAP_COMMON_LIBS_DEP) $(SASL_DEP) - -EXTRA_LIBS += $(LDAPLINK) $(DB_LIB) \ - $(PLATFORM_SPECIFIC_EXTRA_LIBRARY) \ - $(ALIBS) $(NSPRLINK) $(SECURITYLINK) \ - $(THREADSLIB) $(LDAP_COMMON_LIBS) $(SASL_LINK) - -ifeq ($(ARCH), Linux) -EXTRA_LIBS += -lcrypt -endif - -# It looks like all of the latest versions of Unix that we ship on -# have a good enough heap implementations that they don't need -# SmartHeap. We still need it on NT. -ifneq ($(ARCH), WINNT) -LDAP_DONT_USE_SMARTHEAP=1 -endif - -# Don't use smartheap for debug builds on NT -ifeq ($(ARCH), WINNT) -ifeq ($(DEBUG), full) -LDAP_DONT_USE_SMARTHEAP=1 -endif -endif - -ifndef LDAP_DONT_USE_SMARTHEAP -include $(BUILD_ROOT)/ns_usesh.mk -_smartheap_depend = $(SH_LIB_DEP) -else -CFLAGS+=-DLDAP_DONT_USE_SMARTHEAP -endif - -RSEARCHSRC := nametable.c sdattable.c searchthread.c rsearch.c - -INFADDSRC := nametable.c addthread.c infadd.c - -DATAFILES := scripts/dbgen-GivenNames scripts/dbgen-FamilyNames scripts/dbgen-OrgUnits - -DBGEN := scripts/dbgen.pl - -ifeq ($(OS_ARCH), WINNT) -OBJEXT :=.obj -else -OBJEXT :=.o -endif - -RSEARCHOBJS = $(addprefix $(OBJDEST)/, $(RSEARCHSRC:.c=$(OBJEXT))) -INFADDOBJS = $(addprefix $(OBJDEST)/, $(INFADDSRC:.c=$(OBJEXT))) -HDIR = $(LDAP_SRC)/include - -ALL_OBJS = $(RSEARCHOBJS) $(INFADDOBJS) - -RSEARCH = $(addsuffix $(EXE_SUFFIX), $(addprefix $(BINDIR)/, rsearch)) -INFADD = $(addsuffix $(EXE_SUFFIX), $(addprefix $(BINDIR)/, infadd)) -DBGEN = $(addsuffix $(EXE_SUFFIX), $(addprefix $(BINDIR)/, dbgen.pl)) - -BINS= $(RSEARCH) $(INFADD) $(DBGEN) - -all: $(OBJDEST) $(BINDIR) $(BINS) $(DATDIR) - -$(RSEARCH): $(RSEARCHOBJS) $(BINDIR) - $(LINK_EXE) $(RSEARCHOBJS) $(LDAP_LIBLDIF) - -chmod 755 $(RSEARCH) - -$(INFADD): $(INFADDOBJS) $(BINDIR) - $(LINK_EXE) $(INFADDOBJS) $(LDAP_LIBLDIF) - -chmod 755 $(INFADD) - -$(DBGEN): scripts/dbgen.pl $(BINDIR) - cp scripts/dbgen.pl $(BINDIR) - -chmod 755 $(DBGEN) - -$(OBJDEST): - if [ ! -d $(OBJDEST) ]; then \ - $(MKDIR) $(OBJDEST); \ - fi - -$(BINDIR): - if [ ! -d $(BINDIR) ]; then \ - $(MKDIR) $(BINDIR); \ - fi - -$(DATDIR): - -$(RM) -r $(DATDIR) - -$(MKDIR) $(DATDIR) - cp scripts/dbgen-* $(DATDIR) - -clean: - -$(RM) $(ALL_OBJS) - -$(RM) -r $(BINS) $(DATDIR) - diff --git a/ldap/servers/snmp/Makefile b/ldap/servers/snmp/Makefile deleted file mode 100644 index 50a48c35..00000000 --- a/ldap/servers/snmp/Makefile +++ /dev/null @@ -1,141 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -# -# Make file SNMP subagent for Fedora Directory Server -# -# -# Revision History: -# -# 07/31/97 Created by stevross -# -# - -BUILD_ROOT = ../../.. -LDAP_SRC = ../.. - -NOSTDCLEAN=true # don't let nsconfig.mk define target clean -NOSTDSTRIP=true # don't let nsconfig.mk define target strip - -OBJDEST = $(OBJDIR)/ldap-agent -BINDIR = $(LDAP_SERVER_RELDIR) - -include $(BUILD_ROOT)/nsconfig.mk -include $(LDAP_SRC)/nsldap.mk - -ARCH := $(shell uname -s) -ifneq ($(ARCH), WINNT) -ARCH := $(shell $(BUILD_ROOT)/nsarch) -endif - -ifeq ($(USE_64), 1) - ifeq ($(ARCH), HPUX) - ifeq ($(NSOS_RELEASE), B.11.23) - LDFLAGS += -lpthread +DD64 +Z - else - LDFLAGS += -lpthread +DA2.0W +DS2.0 +Z - endif - endif - ifeq ($(ARCH), SOLARIS) - LDFLAGS += -xarch=v9 - endif -endif - -SNMP_OBJS = main.o ldap-agent.o agtmmap.o -OBJS = $(addprefix $(OBJDEST)/, $(SNMP_OBJS)) -SNMPMODULE = ldap-agent -AGTMMAP_DIR = $(LDAP_SRC)/servers/slapd - -ifneq ($(ARCH), WINNT) - INCLUDES += -I. $(NETSNMP_INCLUDE) $(NSPR_INCLUDE) - EXTERNAL_AGENT_LIBS = $(shell $(NETSNMP_BINDIR)/net-snmp-config --external-agent-libs) - EXTRA_LIBS += $(NETSNMP_LINK) $(EXTERNAL_AGENT_LIBS) -endif - -# the redhat-directory.mib goes in the _datadir/brand-ds/plugins/snmp directory, and the other mib like -# files go in the _datadir/brand-ds/plugins/snmp/mibs directory -MIB_DEST_DIR = $(RELDIR)/$(DS_PLUGINDIR)/snmp -MIB_SRC_FILES =redhat-directory.mib -MIBS_DEST_DIR = $(MIB_DEST_DIR)/mibs -MIBS_SRC_FILES = NETWORK-SERVICES-MIB.txt \ - RFC1155-SMI.txt \ - RFC-1215.txt \ - SNMPv2-CONF.txt \ - SNMPv2-SMI.txt \ - SNMPv2-TC.txt -MIB_DEST_FILES = $(addprefix $(MIBS_DEST_DIR)/,$(notdir $(MIBS_SRC_FILES))) \ - $(addprefix $(MIB_DEST_DIR)/,$(MIB_SRC_FILES)) - -default: all - -ifneq ($(ARCH), WINNT) -all: $(OBJDEST) $(BINDIR)/$(SNMPMODULE) $(MIB_DEST_DIR)/$(MIB_SRC_FILES) $(MIB_DEST_FILES) -else -OBJ_SUFFIX=obj -all: $(MIB_DEST_FILES) - cd ntagt; $(MAKE) $(MFLAGS) all -endif - -# Rule to make agtmmap -$(OBJDEST)/agtmmap.o: $(AGTMMAP_DIR)/agtmmap.c - $(CC) $(CFLAGS) -g -o $@ -c $< - -# Rule to create destination directories -$(MIBS_DEST_DIR) $(MIB_DEST_DIR) $(OBJDEST): - $(MKDIR) $@ - -# Rule to build subagent binary -$(BINDIR)/$(SNMPMODULE): $(OBJS) - $(LINK_EXE) - -# this rule is for mib files in the local directory that go in the nsmib directory -$(MIB_DEST_DIR)/$(MIB_SRC_FILES): $(MIB_DEST_DIR) - $(CP) ./$(MIB_SRC_FILES) $@ - -# this rule is for mib files which go in the mibs subdir -$(MIBS_DEST_DIR)/%: % $(MIBS_DEST_DIR) - $(CP) $< $@ - -clean: localclean - -localclean: -ifneq ($(ARCH), WINNT) - $(RM) $(EXTDEST)/$(SNMPMODULE)$(EXE_SUFFIX) -endif - diff --git a/ldap/servers/snmp/ntagt/Makefile b/ldap/servers/snmp/ntagt/Makefile deleted file mode 100644 index 501defdf..00000000 --- a/ldap/servers/snmp/ntagt/Makefile +++ /dev/null @@ -1,134 +0,0 @@ -# -# BEGIN COPYRIGHT BLOCK -# This Program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; version 2 of the License. -# -# This Program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA 02111-1307 USA. -# -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# -# -# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. -# Copyright (C) 2005 Red Hat, Inc. -# All rights reserved. -# END COPYRIGHT BLOCK -# -############################################################################# -# SNMP NT Subagent Common Rulesets # -############################################################################# - -BUILD_ROOT = ../../../.. -MSRV_ROOT = ../../.. -SLAPD_ROOT = $(MSRV_ROOT)/servers/slapd -SNMP_ROOT = $(MSRV_ROOT)/servers/snmp -LIBDEST = $(OBJDIR)/obj -BINDIR = $(LDAP_SERVER_RELDIR) - -NOSTDCLEAN = true # don't let nsconfig.mk define target clean -NOSTDSTRIP = true # don't let nsconfig.mk define target strip - -include $(BUILD_ROOT)/nsconfig.mk -include $(MSRV_ROOT)/nsldap.mk - -OBJ_SUFFIX = obj - -INCLUDES += -I../../slapd -I$(BUILD_ROOT)/ldap/include - -CCOPTS += $(CFLAGS) $(DLL_CFLAGS) $(MCC_INCLUDE) $(INCLUDES) -I$(SNMP_ROOT) -CXXOPTS += $(CFLAGS) $(DLL_CXXFLAGS) $(MCC_INCLUDE) $(INCLUDES) -I$(SNMP_ROOT) - -EXTRA_LIBS = advapi32.lib user32.lib snmpapi.lib mgmtapi.lib $(LDAP_SDK_LIBLDAP_DLL) - -############################################################################# -# SNMP NT Subagent Core Components # -############################################################################# - -LOCAL_SRCS = agtmmap.c \ - nsldapagt_nt.c \ - nsldapmib_nt.c - -SNMP_SRCS = $(LOCAL_SRCS) - -LOCAL_INCS = agtmmap.h \ - nsldapagt_nt.h \ - nsldapmib_nt.h - -SNMP_INCS = $(LOCAL_INCS) - -SNMP_OBJS = $(addprefix $(LIBDEST)/, \ - agtmmap.$(OBJ_SUFFIX) \ - nsldapagt_nt.$(OBJ_SUFFIX) \ - nsldapmib_nt.$(OBJ_SUFFIX)) - - -SNMP_LIB = ns-ldapagt.$(DLL_SUFFIX) -SNMP_IMPLIB = ns-ldapagt.$(LIB_SUFFIX) - -############################################################################# -# SNMP NT Subagent Build Rules # -############################################################################# - -# Now we get into the actual build rules -AGTMMAP = agtmmap - -all: $(LDAP_SERVER_RELDIR) $(AGTMMAP) $(BINDIR)/$(SNMP_LIB) - -over: clean all - -$(AGTMMAP): $(SLAPD_ROOT)/$(AGTMMAP).c $(SLAPD_ROOT)/$(AGTMMAP).h - $(CP) $(SLAPD_ROOT)/$(AGTMMAP).c . - $(CP) $(SLAPD_ROOT)/$(AGTMMAP).h . - -$(SNMP_OBJS): $(SNMP_SRCS) $(SNMP_INCS) - -$(BINDIR)/$(SNMP_LIB): $(SNMP_OBJS) $(SNMP_RES) Makefile - $(LINK_DLL) $(LD_EXTRAS) /DEF:"nsldapagt_nt.def" /VERSION:"1" \ - $(SNMP_OBJS) $(EXTRA_LIBS) - -$(LIBDEST)/%.$(OBJ_SUFFIX): %.cxx - $(CCP) -c $(CXXOPTS) $< -Fo$(LIBDEST)/$*.$(OBJ_SUFFIX) - -$(LIBDEST)/%.$(OBJ_SUFFIX): %.c - $(CC) -c $(CCOPTS) $< -Fo$(LIBDEST)/$*.$(OBJ_SUFFIX) - -$(LIBDEST)/%.$(OBJ_SUFFIX): $(SNMP_ROOT)/%.cxx - $(CCP) -c $(CXXOPTS) $< -Fo$(LIBDEST)/$*.$(OBJ_SUFFIX) - -$(LIBDEST)/%.$(OBJ_SUFFIX): $(SNMP_ROOT)/%.c - $(CC) -c $(CCOPTS) $< -Fo$(LIBDEST)/$*.$(OBJ_SUFFIX) - -clean: localclean - -localclean: - $(RM) $(SNMP_OBJS) $(LIBDEST)/$(SNMP_LIB) $(LIBDEST)/$(SNMP_IMPLIB) $(AGTMMAP).c $(AGTMMAP).h - -############################################################################# -# Depend Area # -############################################################################# - -# DO NOT DELETE THIS LINE -- make depend depends on it. - |