2002-03-27 00:54:41 +03:00
|
|
|
#
|
2003-10-10 19:03:52 +04:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
2003-10-15 21:26:10 +04:00
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
2003-10-10 19:03:52 +04:00
|
|
|
#
|
2003-10-15 21:26:10 +04:00
|
|
|
# The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
# the License. You may obtain a copy of the License at
|
|
|
|
# http://www.mozilla.org/MPL/
|
2003-10-10 19:03:52 +04:00
|
|
|
#
|
|
|
|
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
# for the specific language governing rights and limitations under the
|
|
|
|
# License.
|
|
|
|
#
|
2002-03-27 00:54:41 +03:00
|
|
|
# The Original Code is Mozilla Communicator client code, released
|
|
|
|
# March 31, 1998.
|
|
|
|
#
|
2003-10-10 19:03:52 +04:00
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# Netscape Communications Corporation.
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 1998-1999
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
|
|
|
#
|
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# either of the GNU General Public License Version 2 or later (the "GPL"),
|
|
|
|
# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
# of those above. If you wish to allow use of your version of this file only
|
|
|
|
# under the terms of either the GPL or the LGPL, and not to allow others to
|
2003-10-15 21:26:10 +04:00
|
|
|
# use your version of this file under the terms of the MPL, indicate your
|
2003-10-10 19:03:52 +04:00
|
|
|
# decision by deleting the provisions above and replace them with the notice
|
|
|
|
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
# the provisions above, a recipient may use your version of this file under
|
2003-10-15 21:26:10 +04:00
|
|
|
# the terms of any one of the MPL, the GPL or the LGPL.
|
2003-10-10 19:03:52 +04:00
|
|
|
#
|
|
|
|
# ***** END LICENSE BLOCK *****
|
2002-03-27 00:54:41 +03:00
|
|
|
|
|
|
|
MOD_DEPTH = ../../..
|
|
|
|
srcdir = @srcdir@
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
|
|
|
|
include $(MOD_DEPTH)/config/autoconf.mk
|
|
|
|
include $(topsrcdir)/build.mk
|
|
|
|
|
|
|
|
INSTALLDIR = $(DIST)/$(OBJDIR_NAME)/bin
|
2004-05-24 17:03:16 +04:00
|
|
|
DIST_LIB_PATH = $(DIST)/$(RELEASE_OBJDIR_NAME)/lib
|
2002-03-27 00:54:41 +03:00
|
|
|
HEADERDIR = $(MOD_DEPTH)/dist/$(OBJDIR_NAME)
|
|
|
|
|
|
|
|
INCLUDES += -I$(HEADERDIR)/include \
|
|
|
|
-I$(DIST)/include/obsolete \
|
|
|
|
-I$(DIST)/include/nspr \
|
2004-05-24 17:03:16 +04:00
|
|
|
-I$(DIST)/$(RELEASE_OBJDIR_NAME)/include \
|
2002-03-27 00:54:41 +03:00
|
|
|
-I$(DIST)/include \
|
|
|
|
-I$(DIST)/public/security \
|
|
|
|
-I$(DIST)/public/nss \
|
|
|
|
-I$(DIST)/public/ldap \
|
|
|
|
-I$(topsrcdir)/ldap/include
|
|
|
|
|
|
|
|
ifeq ($(HAVE_CCONF), 1)
|
|
|
|
COMPS_FROM_OBJDIR=1
|
|
|
|
endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# The "arg pin" feature depends on the server core library.
|
|
|
|
#
|
|
|
|
ifeq ($(HAVE_SVRCORE), 1)
|
|
|
|
LDAP_TOOL_ARGPIN=1
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(LDAP_TOOL_ARGPIN),1)
|
|
|
|
INCLUDES += -I../../../../../dist/public/svrcore
|
|
|
|
CFLAGS+=-DLDAP_TOOL_ARGPIN -DLDAP_TOOL_PKCS11
|
|
|
|
SVRCORE_LINK=-l$(SVRCORE_LIBNAME)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef HAVE_LIBNLS
|
|
|
|
INCLUDES += -I$(LIBNLS_INCLUDES)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS_ARCH), WINNT)
|
|
|
|
DEFS += -DXP_WIN -DXP_WIN32
|
|
|
|
endif
|
|
|
|
DEFINES += $(DEFS)
|
|
|
|
|
|
|
|
CXXSRCS = convutf8.cpp
|
|
|
|
|
|
|
|
OBJDEST = $(OBJDIR_NAME)
|
|
|
|
BINDIR = $(OBJDIR_NAME)/bin
|
|
|
|
LIBDIR = $(OBJDIR_NAME)/lib
|
|
|
|
|
|
|
|
ifeq ($(OS_ARCH), WINNT)
|
|
|
|
LDAPDELETE_OBJ = $(addprefix $(OBJDEST)/, ldapdelete.obj)
|
|
|
|
LDAPMODIFY_OBJ = $(addprefix $(OBJDEST)/, ldapmodify.obj)
|
|
|
|
LDAPSEARCH_OBJ = $(addprefix $(OBJDEST)/, ldapsearch.obj)
|
|
|
|
LDAPCOMPARE_OBJ = $(addprefix $(OBJDEST)/, ldapcompare.obj)
|
|
|
|
LDAPCMP_OBJ = $(addprefix $(OBJDEST)/, ldapcmp.obj)
|
|
|
|
LDAPTOOLCOMMON_OBJ = $(addprefix $(OBJDEST)/, common.obj) \
|
|
|
|
$(addprefix $(OBJDEST)/, convutf8.obj) \
|
|
|
|
$(addprefix $(OBJDEST)/, fileurl.obj)
|
|
|
|
ifeq ($(LDAP_TOOL_ARGPIN),1)
|
|
|
|
LDAPTOOLCOMMON_OBJ += $(addprefix $(OBJDEST)/, argpin.obj) \
|
|
|
|
$(addprefix $(OBJDEST)/, ntuserpin.obj)
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
LDAPDELETE_OBJ = $(addprefix $(OBJDEST)/, ldapdelete.o)
|
|
|
|
LDAPMODIFY_OBJ = $(addprefix $(OBJDEST)/, ldapmodify.o)
|
|
|
|
LDAPSEARCH_OBJ = $(addprefix $(OBJDEST)/, ldapsearch.o)
|
|
|
|
LDAPCOMPARE_OBJ = $(addprefix $(OBJDEST)/, ldapcompare.o)
|
|
|
|
LDAPCMP_OBJ = $(addprefix $(OBJDEST)/, ldapcmp.o)
|
|
|
|
ifeq ($(OS_ARCH), HP-UX)
|
|
|
|
LDAPTOOLCOMMON_OBJ = $(addprefix $(OBJDEST)/, common.o) \
|
|
|
|
$(addprefix $(OBJDEST)/, fileurl.o)
|
|
|
|
else
|
|
|
|
LDAPTOOLCOMMON_OBJ = $(addprefix $(OBJDEST)/, common.o) \
|
|
|
|
$(addprefix $(OBJDEST)/, convutf8.o) \
|
|
|
|
$(addprefix $(OBJDEST)/, fileurl.o)
|
|
|
|
endif
|
|
|
|
ifeq ($(LDAP_TOOL_ARGPIN),1)
|
|
|
|
LDAPTOOLCOMMON_OBJ += $(addprefix $(OBJDEST)/, argpin.o) \
|
|
|
|
$(addprefix $(OBJDEST)/, ntuserpin.o)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS_ARCH), HP-UX)
|
|
|
|
LDAPTOOLCPPCOMMON_OBJ = $(addprefix $(OBJDEST)/, convutf8.o)
|
|
|
|
endif
|
|
|
|
|
|
|
|
CLIENT_OBJS = $(LDAPDELETE_OBJ) $(LDAPMODIFY_OBJ) \
|
|
|
|
$(LDAPSEARCH_OBJ) $(LDAPCOMPARE_OBJ) $(LDAPCMP_OBJ) $(LDAPTOOLCOMMON_OBJ)
|
|
|
|
|
2004-05-24 17:03:16 +04:00
|
|
|
# For 'clean' target:
|
|
|
|
TARGETS=$(BINDIR) $(LIBDIR) $(CLIENT_OBJS)
|
|
|
|
|
2002-03-27 00:54:41 +03:00
|
|
|
LDAPDELETE = $(addsuffix $(EXE_SUFFIX), $(addprefix $(BINDIR)/, ldapdelete))
|
|
|
|
LDAPMODIFY = $(addsuffix $(EXE_SUFFIX), $(addprefix $(BINDIR)/, ldapmodify))
|
|
|
|
LDAPSEARCH = $(addsuffix $(EXE_SUFFIX), $(addprefix $(BINDIR)/, ldapsearch))
|
|
|
|
LDAPCOMPARE = $(addsuffix $(EXE_SUFFIX), $(addprefix $(BINDIR)/, ldapcompare))
|
|
|
|
LDAPCMP = $(addsuffix $(EXE_SUFFIX), $(addprefix $(BINDIR)/, ldapcmp))
|
|
|
|
|
|
|
|
BINS= $(LDAPDELETE) $(LDAPMODIFY) $(LDAPSEARCH) $(LDAPCOMPARE) $(LDAPCMP)
|
|
|
|
|
|
|
|
ifeq ($(OS_ARCH), WINNT)
|
|
|
|
LDTOOLS_LIBS += $(LIBNSPR)
|
|
|
|
else
|
|
|
|
LDTOOLS_LIBS += $(DYNAMICNSPR)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(NSS_DYNAMIC_SOFTOKN),1)
|
|
|
|
LDAPTOOLS_NSS_LINK=-l$(SSL_LIBNAME) -l$(NSS_LIBNAME) -l$(SOFTOKN_LIBNAME)
|
|
|
|
else
|
|
|
|
LDAPTOOLS_NSS_LINK=-l$(SSL_LIBNAME) -l$(NSS_LIBNAME)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS_ARCH), SunOS)
|
|
|
|
EXTRA_LIBS = -L$(DIST)/$(OBJDIR_NAME)/lib -l$(LDAP_LIBNAME) \
|
|
|
|
-l$(LDIF_LIBNAME) -l$(SSLDAP_LIBNAME) -l$(PRLDAP_LIBNAME) \
|
2004-05-24 17:03:16 +04:00
|
|
|
-L$(DIST)/lib -L$(DIST_LIB_PATH) $(SVRCORE_LINK) \
|
2002-03-27 00:54:41 +03:00
|
|
|
$(LDAPTOOLS_NSS_LINK) \
|
|
|
|
-lthread -lposix4 -lsocket -lnls \
|
|
|
|
-ldl -lresolv -lgen
|
|
|
|
EXTRA_LIBS += -L$(DIST)/lib $(DYNAMICNSPR)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS_ARCH), WINNT)
|
|
|
|
EXTRA_LIBS =wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib \
|
|
|
|
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \
|
|
|
|
rpcrt4.lib uuid.lib odbc32.lib odbccp32.lib winmm.lib
|
|
|
|
EXTRA_LIBS += $(DIST)/$(OBJDIR_NAME)/lib/$(LBER_LIBNAME).lib
|
|
|
|
EXTRA_LIBS += $(DIST)/$(OBJDIR_NAME)/lib/$(LDAP_LIBNAME).lib
|
|
|
|
EXTRA_LIBS += $(DIST)/$(OBJDIR_NAME)/lib/$(LDIF_LIBNAME).lib
|
|
|
|
EXTRA_LIBS += $(DIST)/$(OBJDIR_NAME)/lib/$(PLC_BASENAME).lib
|
|
|
|
EXTRA_LIBS += $(DIST)/$(OBJDIR_NAME)/lib/$(PLDS_BASENAME).lib
|
|
|
|
EXTRA_LIBS += $(DIST)/$(OBJDIR_NAME)/lib/$(NSPR_BASENAME).lib
|
|
|
|
EXTRA_LIBS += $(DIST)/$(OBJDIR_NAME)/lib/$(UTIL_LIBNAME).lib
|
|
|
|
ifeq ($(LDAP_TOOL_ARGPIN),1)
|
|
|
|
EXTRA_LIBS += $(DIST)/$(OBJDIR_NAME)/lib/$(SVRCORE_LIBNAME).lib
|
|
|
|
endif
|
|
|
|
EXTRA_LIBS += $(DIST)/$(OBJDIR_NAME)/lib/$(SSLDAP_LIBNAME).lib
|
|
|
|
EXTRA_LIBS += $(DIST)/$(OBJDIR_NAME)/lib/$(PRLDAP_LIBNAME).lib
|
|
|
|
EXTRA_LIBS += $(DIST)/$(OBJDIR_NAME)/lib/$(NSS_LIBNAME).lib
|
|
|
|
ifeq ($(NSS_DYNAMIC_SOFTOKN),1)
|
|
|
|
EXTRA_LIBS += $(DIST)/$(OBJDIR_NAME)/lib/$(SOFTOKN_LIBNAME).lib
|
|
|
|
endif
|
|
|
|
EXTRA_LIBS += $(DIST)/$(OBJDIR_NAME)/lib/$(SSL_LIBNAME).lib
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS_ARCH), OSF1)
|
|
|
|
EXTRA_LIBS = -L$(DIST)/$(OBJDIR_NAME)/lib -l$(LDAP_LIBNAME) \
|
|
|
|
-l$(LDIF_LIBNAME) -l$(SSLDAP_LIBNAME) -l$(PRLDAP_LIBNAME) \
|
2004-05-24 17:03:16 +04:00
|
|
|
-L$(DIST)/lib -L$(DIST_LIB_PATH) $(SVRCORE_LINK) \
|
2002-03-27 00:54:41 +03:00
|
|
|
$(LDAPTOOLS_NSS_LINK) \
|
|
|
|
-lcxx -lpthread -lrt -lmach -lexc
|
|
|
|
EXTRA_LIBS += -L$(DIST)/lib $(DYNAMICNSPR)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS_ARCH), Linux)
|
|
|
|
EXTRA_LIBS = -L$(DIST)/$(OBJDIR_NAME)/lib -l$(LDAP_LIBNAME) \
|
|
|
|
-l$(LDIF_LIBNAME) -l$(SSLDAP_LIBNAME) -l$(PRLDAP_LIBNAME) \
|
2004-05-24 17:03:16 +04:00
|
|
|
-L$(DIST)/lib -L$(DIST_LIB_PATH) $(SVRCORE_LINK) \
|
2002-03-27 00:54:41 +03:00
|
|
|
$(LDAPTOOLS_NSS_LINK) \
|
|
|
|
-l$(LBER_LIBNAME) \
|
|
|
|
-ldl -lresolv -lpthread
|
|
|
|
EXTRA_LIBS += -L$(DIST)/lib $(DYNAMICNSPR)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS_ARCH), HP-UX)
|
|
|
|
EXTRA_LIBS = -ldld -lm -lpthread -lrt \
|
|
|
|
-L$(DIST)/$(OBJDIR_NAME)/lib -l$(LDAP_LIBNAME) \
|
|
|
|
-l$(LDIF_LIBNAME) -l$(SSLDAP_LIBNAME) -l$(PRLDAP_LIBNAME) \
|
2004-05-24 17:03:16 +04:00
|
|
|
-L$(DIST)/lib -L$(DIST_LIB_PATH) $(SVRCORE_LINK) \
|
|
|
|
-l$(LBER_LIBNAME) $(LDAPTOOLS_NSS_LINK)
|
2002-03-27 00:54:41 +03:00
|
|
|
EXTRA_LIBS += -L$(DIST)/lib $(DYNAMICNSPR)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS_ARCH), AIX)
|
|
|
|
EXTRA_LIBS = -L$(DIST)/$(OBJDIR_NAME)/lib -l$(LDAP_LIBNAME) \
|
|
|
|
-l$(LDIF_LIBNAME) -l$(SSLDAP_LIBNAME) -l$(PRLDAP_LIBNAME) \
|
2004-05-24 17:03:16 +04:00
|
|
|
-L$(DIST)/lib -L$(DIST_LIB_PATH) $(SVRCORE_LINK) \
|
2002-03-27 00:54:41 +03:00
|
|
|
$(LDAPTOOLS_NSS_LINK) \
|
|
|
|
-ldl -brtl -lpthreads -lc_r -lm
|
|
|
|
EXTRA_LIBS += -L$(DIST)/lib $(DYNAMICNSPR)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef HAVE_LIBNLS
|
|
|
|
ifeq ($(OS_ARCH), WINNT)
|
|
|
|
EXTRA_LIBS += $(LIBNLS_LIBDIR)/$(NSCNV_LIBNAME) \
|
|
|
|
$(LIBNLS_LIBDIR)/$(NSJPN_LIBNAME) \
|
|
|
|
$(LIBNLS_LIBDIR)/$(NSCCK_LIBNAME) \
|
|
|
|
$(LIBNLS_LIBDIR)/$(NSSB_LIBNAME)
|
|
|
|
else
|
|
|
|
ifeq ($(OS_ARCH), SunOS)
|
2002-05-09 20:50:55 +04:00
|
|
|
ifdef SOLARIS_USE_FORTE6
|
|
|
|
SOLARIS_CXX_LIB=Crun
|
|
|
|
else
|
|
|
|
ifeq ($(OS_RELEASE),5.6)
|
|
|
|
SOLARIS_CXX_LIB=C
|
2002-03-27 00:54:41 +03:00
|
|
|
else
|
2002-05-09 20:50:55 +04:00
|
|
|
SOLARIS_CXX_LIB=Crun
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
EXTRA_LIBS += $(LIBNLS_LIBDIR)/$(NSCNV_LIBNAME) -l$(SOLARIS_CXX_LIB) \
|
2002-03-27 00:54:41 +03:00
|
|
|
$(LIBNLS_LIBDIR)/$(NSJPN_LIBNAME) \
|
|
|
|
$(LIBNLS_LIBDIR)/$(NSCCK_LIBNAME) \
|
|
|
|
$(LIBNLS_LIBDIR)/$(NSSB_LIBNAME)
|
|
|
|
else
|
|
|
|
endif
|
|
|
|
EXTRA_LIBS += $(LIBNLS_LIBDIR)/$(NSCNV_LIBNAME) \
|
|
|
|
$(LIBNLS_LIBDIR)/$(NSJPN_LIBNAME) \
|
|
|
|
$(LIBNLS_LIBDIR)/$(NSCCK_LIBNAME) \
|
|
|
|
$(LIBNLS_LIBDIR)/$(NSSB_LIBNAME)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
LDTOOLS_LIBS += $(EXTRA_LIBS)
|
|
|
|
LIBLOCATION = $(DIST)/$(OBJDIR_NAME)/lib
|
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
|
|
|
###########################################################################
|
|
|
|
|
2004-05-24 17:03:16 +04:00
|
|
|
all:: $(OBJDEST) linklibnls libdir $(BINS)
|
2002-03-27 00:54:41 +03:00
|
|
|
|
|
|
|
libdir: linklibnls
|
|
|
|
ifeq ($(OS_ARCH), WINNT)
|
|
|
|
$(NSINSTALL) $(LIBLOCATION)/$(LDAP_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
$(NSINSTALL) $(LIBLOCATION)/$(PRLDAP_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
$(NSINSTALL) $(LIBLOCATION)/$(SSLDAP_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
else
|
|
|
|
$(NSINSTALL) $(LIBLOCATION)/lib$(LDAP_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
$(NSINSTALL) $(LIBLOCATION)/lib$(PRLDAP_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
$(NSINSTALL) $(LIBLOCATION)/lib$(SSLDAP_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
endif
|
|
|
|
ifeq ($(COMPS_FROM_OBJDIR), 1)
|
|
|
|
ifeq ($(OS_ARCH), WINNT)
|
2004-05-24 17:03:16 +04:00
|
|
|
# Windows, COMPS_FROM_OBJDIR
|
2002-03-27 00:54:41 +03:00
|
|
|
$(NSINSTALL) $(DIST)/$(OBJDIR_NAME)/lib/$(PLC_BASENAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
$(NSINSTALL) $(DIST)/$(OBJDIR_NAME)/lib/$(PLDS_BASENAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
$(NSINSTALL) $(DIST)/$(OBJDIR_NAME)/lib/$(NSPR_BASENAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
$(NSINSTALL) $(DIST)/$(OBJDIR_NAME)/lib/$(SSL_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
$(NSINSTALL) $(DIST)/$(OBJDIR_NAME)/lib/$(NSS_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
ifeq ($(NSS_DYNAMIC_SOFTOKN),1)
|
|
|
|
$(NSINSTALL) $(DIST)/$(OBJDIR_NAME)/lib/$(SOFTOKN_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
endif
|
|
|
|
else
|
2004-05-24 17:03:16 +04:00
|
|
|
# Non-Windows, COMPS_FROM_OBJDIR
|
2002-03-27 00:54:41 +03:00
|
|
|
$(NSINSTALL) $(DIST)/$(OBJDIR_NAME)/lib/lib$(PLC_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
$(NSINSTALL) $(DIST)/$(OBJDIR_NAME)/lib/lib$(PLDS_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
$(NSINSTALL) $(DIST)/$(OBJDIR_NAME)/lib/lib$(NSPR_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
$(NSINSTALL) $(DIST)/$(OBJDIR_NAME)/lib/lib$(SSL_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
$(NSINSTALL) $(DIST)/$(OBJDIR_NAME)/lib/lib$(NSS_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
ifeq ($(NSS_DYNAMIC_SOFTOKN),1)
|
|
|
|
$(NSINSTALL) $(DIST)/$(OBJDIR_NAME)/lib/lib$(SOFTOKN_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
ifeq ($(COPYFREEBL), 1)
|
|
|
|
$(NSINSTALL) $(DIST)/$(OBJDIR_NAME)/lib/lib$(HYBRID_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
$(NSINSTALL) $(DIST)/$(OBJDIR_NAME)/lib/lib$(PURE32_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
endif
|
|
|
|
else
|
2004-05-24 17:03:16 +04:00
|
|
|
# Windows, !COMPS_FROM_OBJDIR
|
2002-03-27 00:54:41 +03:00
|
|
|
ifeq ($(OS_ARCH), WINNT)
|
|
|
|
$(NSINSTALL) $(DIST)/lib/$(PLC_BASENAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
$(NSINSTALL) $(DIST)/lib/$(PLDS_BASENAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
$(NSINSTALL) $(DIST)/lib/$(NSPR_BASENAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
$(NSINSTALL) $(DIST)/lib/$(SSL_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
$(NSINSTALL) $(DIST)/lib/$(NSS_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
ifeq ($(NSS_DYNAMIC_SOFTOKN),1)
|
|
|
|
$(NSINSTALL) $(DIST)/lib/$(SOFTOKN_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
endif
|
|
|
|
else
|
2004-05-24 17:03:16 +04:00
|
|
|
# Non-Windows, !COMPS_FROM_OBJDIR
|
|
|
|
$(NSINSTALL) $(DIST_LIB_PATH)/lib$(PLC_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
$(NSINSTALL) $(DIST_LIB_PATH)/lib$(PLDS_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
$(NSINSTALL) $(DIST_LIB_PATH)/lib$(NSPR_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
$(NSINSTALL) $(DIST_LIB_PATH)/lib$(SSL_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
$(NSINSTALL) $(DIST_LIB_PATH)/lib$(NSS_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
2002-03-27 00:54:41 +03:00
|
|
|
ifeq ($(NSS_DYNAMIC_SOFTOKN),1)
|
2004-05-24 17:03:16 +04:00
|
|
|
$(NSINSTALL) $(DIST_LIB_PATH)/lib$(SOFTOKN_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
2002-03-27 00:54:41 +03:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
ifeq ($(COPYFREEBL), 1)
|
2004-05-24 17:03:16 +04:00
|
|
|
$(NSINSTALL) $(DIST_LIB_PATH)/lib$(HYBRID_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
|
|
$(NSINSTALL) $(DIST_LIB_PATH)/lib$(PURE32_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
2002-03-27 00:54:41 +03:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
linklibnls: FORCE
|
|
|
|
ifneq ($(COMPONENT_PULL_METHOD), FTP)
|
|
|
|
ifeq ($(HAVE_LIBNLS), 1)
|
|
|
|
$(RM) -f $(LIBNLS_INCLUDES)
|
|
|
|
$(RM) -f $(LIBNLS_LIBDIR)
|
|
|
|
ln -s $(LIBNLS_INCLUDES_LOC) $(LIBNLS_INCLUDES)
|
|
|
|
ln -s $(LIBNLS_LIB_LOC) $(LIBNLS_LIBDIR)
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
ifeq ($(HAVE_LIBNLS), 1)
|
|
|
|
@echo "Pulling libnls......"
|
|
|
|
# The following shell script recalculates $(NLS_INCLUDE), $(NLS_LIBPATH) and
|
|
|
|
# $(NLS_VERSION_FILE)
|
|
|
|
sh ../../build/compver.sh $(LIBNLS_DIR) $(LIBNLS_RELDATE) \
|
|
|
|
$(OBJDIR_NAME) ../../../../dist ldapsdk \
|
2002-04-24 19:08:06 +04:00
|
|
|
$(LIBNLS_RELEASE_TREE)/libnls$(NLS_LIBVERSION)/$(LIBNLS_RELDATE)/$(OBJDIR_NAME) \
|
2002-03-27 00:54:41 +03:00
|
|
|
libnls$(NLS_LIBVERSION) \
|
|
|
|
"include lib conv$(NLS_LIBVERSION) locale$(NLS_LIBVERSION)" \
|
|
|
|
../../../../../dist/libnls$(NLS_LIBVERSION)/$(OBJDIR_NAME)/locale$(NLS_LIBVERSION)/index.txt
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(LDAPTOOLCOMMON_OBJ):
|
|
|
|
|
|
|
|
ifeq ($(OS_ARCH), HP-UX)
|
|
|
|
$(LDAPTOOLCPPCOMMON_OBJ): convutf8.cpp
|
|
|
|
ifneq ($(USE_64), 1)
|
|
|
|
/opt/aCC/bin/aCC -ext -DHPUX_ACC -D__STDC_EXT__ -D_POSIX_C_SOURCE=199506L -c -DHPUX11 -DHPUX11_00 +DAportable +DS1.1 -D_LARGEFILE64_SOURCE -D_PR_HAVE_OFF64_T -DNO_NODELOCK -DNO_LIBLCACHE -DXP_UNIX -DHPUX -DMCC_HTTPD -DNS_DOMESTIC -DNET_SSL -DCLIENT_AUTH -DNSPR20 -D_PR_NTHREAD -D_PR_USECPU -D_REENTRANT -DNS_DS -DSPAPI20 -DBUILD_NUM=\"01.081.1519\" -DCPU_hppa -DOS_hpux -D_NO_THREADS_ -Dhpux -Dhpux -D_HPUX_SOURCE -D_REENTRANT -Aa -DLDAP_REFERRALS -DLDAP_LDBM -DLDAP_LDIF -DLDBM_USE_DBBTREE -DSLAPD_PASSWD_SHA1 -D__DBINTERFACE_PRIVATE -DNO_LIBLCACHE -DNS_DIRECTORY -DNET_SSL -DUSE_NSPR_MT -O $(INCLUDES) convutf8.cpp -o $(OBJDIR_NAME)/convutf8.o
|
|
|
|
else
|
|
|
|
/opt/aCC/bin/aCC -DHPUX_ACC -D__STDC_EXT__ -D_POSIX_C_SOURCE=199506L +DA2.0W +DS2.0 -c -DHPUX11 -DHPUX11_00 -DIS_64 +e +DA2.0W +DS2.0 -D_LARGEFILE64_SOURCE -D_PR_HAVE_OFF64_T -DNO_NODELOCK -DNO_LIBLCACHE -DXP_UNIX -DHPUX -DMCC_DEBUG -g -DMCC_HTTPD -DNS_DOMESTIC -DNET_SSL -DCLIENT_AUTH -DNSPR20 -D_PR_NTHREAD -D_PR_USECPU -D_REENTRANT -DNS_DS -DSPAPI20 -DBUILD_NUM=\"01.081.1617\" -DCPU_hppa -DOS_hpux -D_NO_THREADS_ -Dhpux -Dhpux -D_HPUX_SOURCE -D_REENTRANT -Aa -DLDAP_DEBUG -DLDAP_REFERRALS -DLDAP_LDBM -DLDAP_LDIF -DLDBM_USE_DBBTREE -DSLAPD_PASSWD_SHA1 -D__DBINTERFACE_PRIVATE -DNO_LIBLCACHE -DNS_DIRECTORY -DNET_SSL -DUSE_NSPR_MT $(INCLUDES) -g convutf8.cpp -o $(OBJDIR_NAME)/convutf8.o
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
$(LDAPTOOLCPPCOMMON_OBJ):
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(LDAPCOMPARE): $(LDAPCOMPARE_OBJ) $(LDAPTOOLCOMMON_OBJ) \
|
|
|
|
$(LDAPTOOLCPPCOMMON_OBJ) $(LDTOOLS_LIBS_DEP)
|
|
|
|
$(LINK_EXE) $(LDAPCOMPARE_OBJ) $(LDAPTOOLCOMMON_OBJ) $(LDAPTOOLCPPCOMMON_OBJ) $(LDTOOLS_LIBS)
|
|
|
|
|
|
|
|
$(LDAPDELETE): $(LDAPDELETE_OBJ) $(LDAPTOOLCOMMON_OBJ) \
|
|
|
|
$(LDAPTOOLCPPCOMMON_OBJ) $(LDTOOLS_LIBS_DEP)
|
|
|
|
$(LINK_EXE) $(LDAPDELETE_OBJ) $(LDAPTOOLCOMMON_OBJ) $(LDAPTOOLCPPCOMMON_OBJ) $(LDTOOLS_LIBS)
|
|
|
|
|
|
|
|
$(LDAPMODIFY): $(LDAPMODIFY_OBJ) $(LDAPTOOLCOMMON_OBJ) \
|
|
|
|
$(LDAPTOOLCPPCOMMON_OBJ) $(LDTOOLS_LIBS_DEP)
|
|
|
|
$(LINK_EXE) $(LDAPMODIFY_OBJ) $(LDAPTOOLCOMMON_OBJ) $(LDAPTOOLCPPCOMMON_OBJ) $(LDTOOLS_LIBS)
|
|
|
|
|
|
|
|
$(LDAPSEARCH): $(LDAPSEARCH_OBJ) $(LDAPTOOLCOMMON_OBJ) \
|
|
|
|
$(LDAPTOOLCPPCOMMON_OBJ) $(LDTOOLS_LIBS_DEP)
|
|
|
|
$(LINK_EXE) $(LDAPSEARCH_OBJ) $(LDAPTOOLCOMMON_OBJ) $(LDAPTOOLCPPCOMMON_OBJ) $(LDTOOLS_LIBS)
|
|
|
|
|
|
|
|
$(LDAPCMP): $(LDAPCMP_OBJ) $(LDAPTOOLCOMMON_OBJ) \
|
|
|
|
$(LDAPTOOLCPPCOMMON_OBJ) $(LDTOOLS_LIBS_DEP)
|
|
|
|
$(LINK_EXE) $(LDAPCMP_OBJ) $(LDAPTOOLCOMMON_OBJ) $(LDAPTOOLCPPCOMMON_OBJ) $(LDTOOLS_LIBS)
|
|
|
|
|
2004-05-24 17:03:16 +04:00
|
|
|
$(OBJDEST): FORCE
|
2002-03-27 00:54:41 +03:00
|
|
|
$(NSINSTALL) -D $(OBJDEST)
|
|
|
|
$(NSINSTALL) -D $(BINDIR)
|
|
|
|
$(NSINSTALL) -D $(LIBDIR)
|
|
|
|
|
2002-04-18 01:53:50 +04:00
|
|
|
export:: $(OBJDEST) libdir $(BINS)
|
2002-03-27 00:54:41 +03:00
|
|
|
$(NSINSTALL) $(LDAPDELETE) $(INSTALLDIR)
|
|
|
|
$(NSINSTALL) $(LDAPSEARCH) $(INSTALLDIR)
|
|
|
|
$(NSINSTALL) $(LDAPMODIFY) $(INSTALLDIR)
|
|
|
|
$(NSINSTALL) $(LDAPCOMPARE) $(INSTALLDIR)
|
|
|
|
$(NSINSTALL) $(LDAPCMP) $(INSTALLDIR)
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Simple, local dependencies
|
|
|
|
#
|
|
|
|
LDAPTOOL_COMMON_DEPS = ldaptool.h Makefile
|
|
|
|
$(LDAPTOOLCOMMON_OBJ): $(LDAPTOOL_COMMON_DEPS)
|
|
|
|
$(LDAPDELETE_OBJ): $(LDAPTOOL_COMMON_DEPS)
|
|
|
|
$(LDAPMODIFY_OBJ): $(LDAPTOOL_COMMON_DEPS) fileurl.h
|
|
|
|
$(LDAPSEARCH_OBJ): $(LDAPTOOL_COMMON_DEPS) fileurl.h
|
|
|
|
$(LDAPCOMPARE_OBJ): $(LDAPTOOL_COMMON_DEPS)
|
|
|
|
$(LDAPCMP_OBJ): $(LDAPTOOL_COMMON_DEPS)
|
|
|
|
|
|
|
|
FORCE:
|