зеркало из https://github.com/mozilla/pjs.git
406 строки
16 KiB
Makefile
406 строки
16 KiB
Makefile
#
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
#
|
|
# 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/
|
|
#
|
|
# 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.
|
|
#
|
|
# The Original Code is Mozilla Communicator client code, released
|
|
# March 31, 1998.
|
|
#
|
|
# 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
|
|
# use your version of this file under the terms of the MPL, indicate your
|
|
# 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
|
|
# the terms of any one of the MPL, the GPL or the LGPL.
|
|
#
|
|
# ***** END LICENSE BLOCK *****
|
|
|
|
NS_DEPTH = ../../../..
|
|
DEPTH = ../../../../..
|
|
LDAP_SRC = ../..
|
|
NSCP_DISTDIR = ../../../../../dist
|
|
NSPR_TREE = ../../..
|
|
MOD_DEPTH = ../../..
|
|
|
|
include $(NSPR_TREE)/config/rules.mk
|
|
include ../../../build.mk
|
|
|
|
INSTALLDIR = $(NSCP_DISTDIR)/$(OBJDIR_NAME)/bin
|
|
HEADERDIR = $(DEPTH)/dist/$(OBJDIR_NAME)
|
|
|
|
INCLUDES += -I$(HEADERDIR)/include \
|
|
-I../../../../../dist/include/obsolete \
|
|
-I../../../../../dist/include \
|
|
-I../../../../../dist/public/security \
|
|
-I../../../../../dist/public/nss \
|
|
-I$(NSCP_DISTDIR)/public/ldap \
|
|
-I../../../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), used-to-use-this-on-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), used-to-use-this-on-HP-UX)
|
|
LDAPTOOLCPPCOMMON_OBJ = $(addprefix $(OBJDEST)/, convutf8.o)
|
|
endif
|
|
|
|
CLIENT_OBJS = $(LDAPDELETE_OBJ) $(LDAPMODIFY_OBJ) \
|
|
$(LDAPSEARCH_OBJ) $(LDAPCOMPARE_OBJ) $(LDAPCMP_OBJ) $(LDAPTOOLCOMMON_OBJ)
|
|
|
|
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$(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib -l$(LDAP_LIBNAME) \
|
|
-l$(LDIF_LIBNAME) -l$(SSLDAP_LIBNAME) -l$(PRLDAP_LIBNAME) \
|
|
-L$(NSCP_DISTDIR)/lib $(SVRCORE_LINK) \
|
|
$(LDAPTOOLS_NSS_LINK) \
|
|
-lthread -lposix4 -lsocket -lnls \
|
|
-ldl -lresolv -lgen
|
|
EXTRA_LIBS += -L$(NSCP_DISTDIR)/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 += $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(LBER_LIBNAME).lib
|
|
EXTRA_LIBS += $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(LDAP_LIBNAME).lib
|
|
EXTRA_LIBS += $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(LDIF_LIBNAME).lib
|
|
EXTRA_LIBS += $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(PLC_BASENAME).lib
|
|
EXTRA_LIBS += $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(PLDS_BASENAME).lib
|
|
EXTRA_LIBS += $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(NSPR_BASENAME).lib
|
|
EXTRA_LIBS += $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(UTIL_LIBNAME).lib
|
|
ifeq ($(LDAP_TOOL_ARGPIN),1)
|
|
EXTRA_LIBS += $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(SVRCORE_LIBNAME).lib
|
|
endif
|
|
EXTRA_LIBS += $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(SSLDAP_LIBNAME).lib
|
|
EXTRA_LIBS += $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(PRLDAP_LIBNAME).lib
|
|
EXTRA_LIBS += $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(NSS_LIBNAME).lib
|
|
ifeq ($(NSS_DYNAMIC_SOFTOKN),1)
|
|
EXTRA_LIBS += $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(SOFTOKN_LIBNAME).lib
|
|
endif
|
|
EXTRA_LIBS += $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(SSL_LIBNAME).lib
|
|
endif
|
|
|
|
ifeq ($(OS_ARCH), OSF1)
|
|
EXTRA_LIBS = -L$(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib -l$(LDAP_LIBNAME) \
|
|
-l$(LDIF_LIBNAME) -l$(SSLDAP_LIBNAME) -l$(PRLDAP_LIBNAME) \
|
|
-L$(NSCP_DISTDIR)/lib $(SVRCORE_LINK) \
|
|
$(LDAPTOOLS_NSS_LINK) \
|
|
-lcxx -lpthread -lrt -lmach -lexc
|
|
EXTRA_LIBS += -L$(NSCP_DISTDIR)/lib $(DYNAMICNSPR)
|
|
endif
|
|
|
|
ifeq ($(OS_ARCH), Linux)
|
|
EXTRA_LIBS = -L$(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib -l$(LDAP_LIBNAME) \
|
|
-l$(LDIF_LIBNAME) -l$(SSLDAP_LIBNAME) -l$(PRLDAP_LIBNAME) \
|
|
-L$(NSCP_DISTDIR)/lib $(SVRCORE_LINK) \
|
|
$(LDAPTOOLS_NSS_LINK) \
|
|
-l$(LBER_LIBNAME) \
|
|
-ldl -lresolv -lpthread
|
|
EXTRA_LIBS += -L$(NSCP_DISTDIR)/lib $(DYNAMICNSPR)
|
|
endif
|
|
|
|
ifeq ($(OS_ARCH), HP-UX)
|
|
EXTRA_LIBS = -ldld -lm -lpthread -lrt \
|
|
-L$(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib -l$(LDAP_LIBNAME) \
|
|
-l$(LDIF_LIBNAME) -l$(SSLDAP_LIBNAME) -l$(PRLDAP_LIBNAME) \
|
|
-L$(NSCP_DISTDIR)/lib $(SVRCORE_LINK) \
|
|
$(LDAPTOOLS_NSS_LINK) -l$(LBER_LIBNAME)
|
|
EXTRA_LIBS += -L$(NSCP_DISTDIR)/lib $(DYNAMICNSPR)
|
|
endif
|
|
|
|
ifeq ($(OS_ARCH), AIX)
|
|
EXTRA_LIBS = -L$(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib -l$(LDAP_LIBNAME) \
|
|
-l$(LDIF_LIBNAME) -l$(SSLDAP_LIBNAME) -l$(PRLDAP_LIBNAME) \
|
|
-L$(NSCP_DISTDIR)/lib $(SVRCORE_LINK) \
|
|
$(LDAPTOOLS_NSS_LINK) \
|
|
-ldl -brtl -lpthreads -lc_r -lm
|
|
ifndef HAVE_LIBNLS
|
|
EXTRA_LIBS += -liconv
|
|
endif
|
|
EXTRA_LIBS += -L$(NSCP_DISTDIR)/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)
|
|
ifdef SOLARIS_USE_FORTE6
|
|
SOLARIS_CXX_LIB=Crun
|
|
else
|
|
ifeq ($(OS_RELEASE),5.6)
|
|
SOLARIS_CXX_LIB=C
|
|
else
|
|
SOLARIS_CXX_LIB=Crun
|
|
endif
|
|
endif
|
|
EXTRA_LIBS += $(LIBNLS_LIBDIR)/$(NSCNV_LIBNAME) -l$(SOLARIS_CXX_LIB) \
|
|
$(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 = $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib
|
|
|
|
###########################################################################
|
|
|
|
all:: $(OBJDEST) linklibnls libdir $(BINS)
|
|
|
|
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)
|
|
$(NSINSTALL) $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(PLC_BASENAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
$(NSINSTALL) $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(PLDS_BASENAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
$(NSINSTALL) $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(NSPR_BASENAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
$(NSINSTALL) $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(SSL_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
$(NSINSTALL) $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(NSS_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
ifeq ($(NSS_DYNAMIC_SOFTOKN),1)
|
|
$(NSINSTALL) $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(SOFTOKN_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
endif
|
|
else
|
|
$(NSINSTALL) $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/lib$(PLC_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
$(NSINSTALL) $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/lib$(PLDS_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
$(NSINSTALL) $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/lib$(NSPR_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
$(NSINSTALL) $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/lib$(SSL_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
$(NSINSTALL) $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/lib$(NSS_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
ifeq ($(NSS_DYNAMIC_SOFTOKN),1)
|
|
$(NSINSTALL) $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/lib$(SOFTOKN_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
endif
|
|
endif
|
|
ifeq ($(COPYFREEBL), 1)
|
|
$(NSINSTALL) $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/lib$(HYBRID_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
$(NSINSTALL) $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/lib$(PURE32_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
endif
|
|
else
|
|
ifeq ($(OS_ARCH), WINNT)
|
|
$(NSINSTALL) $(NSCP_DISTDIR)/lib/$(PLC_BASENAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
$(NSINSTALL) $(NSCP_DISTDIR)/lib/$(PLDS_BASENAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
$(NSINSTALL) $(NSCP_DISTDIR)/lib/$(NSPR_BASENAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
$(NSINSTALL) $(NSCP_DISTDIR)/lib/$(SSL_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
$(NSINSTALL) $(NSCP_DISTDIR)/lib/$(NSS_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
ifeq ($(NSS_DYNAMIC_SOFTOKN),1)
|
|
$(NSINSTALL) $(NSCP_DISTDIR)/lib/$(SOFTOKN_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
endif
|
|
else
|
|
$(NSINSTALL) $(NSCP_DISTDIR)/lib/lib$(PLC_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
$(NSINSTALL) $(NSCP_DISTDIR)/lib/lib$(PLDS_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
$(NSINSTALL) $(NSCP_DISTDIR)/lib/lib$(NSPR_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
$(NSINSTALL) $(NSCP_DISTDIR)/lib/lib$(SSL_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
$(NSINSTALL) $(NSCP_DISTDIR)/lib/lib$(NSS_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
ifeq ($(NSS_DYNAMIC_SOFTOKN),1)
|
|
$(NSINSTALL) $(NSCP_DISTDIR)/lib/lib$(SOFTOKN_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
endif
|
|
endif
|
|
ifeq ($(COPYFREEBL), 1)
|
|
$(NSINSTALL) $(NSCP_DISTDIR)/lib/lib$(HYBRID_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
$(NSINSTALL) $(NSCP_DISTDIR)/lib/lib$(PURE32_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
|
|
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 \
|
|
$(LIBNLS_RELEASE_TREE)/libnls$(NLS_LIBVERSION)/$(LIBNLS_RELDATE)/$(OBJDIR_NAME) \
|
|
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), used-to-use-this-on-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)
|
|
|
|
$(OBJDEST):
|
|
$(NSINSTALL) -D $(OBJDEST)
|
|
$(NSINSTALL) -D $(BINDIR)
|
|
$(NSINSTALL) -D $(LIBDIR)
|
|
|
|
clean::
|
|
$(RM) -rf $(OBJDEST)
|
|
|
|
install:: $(OBJDEST) libdir $(BINS)
|
|
$(NSINSTALL) $(LDAPDELETE) $(INSTALLDIR)
|
|
$(NSINSTALL) $(LDAPSEARCH) $(INSTALLDIR)
|
|
$(NSINSTALL) $(LDAPMODIFY) $(INSTALLDIR)
|
|
$(NSINSTALL) $(LDAPCOMPARE) $(INSTALLDIR)
|
|
$(NSINSTALL) $(LDAPCMP) $(INSTALLDIR)
|
|
|
|
|
|
#
|
|
# Simple, local dependencies
|
|
#
|
|
LDAPTOOL_COMMON_DEPS = ldaptool.h Makefile.client
|
|
$(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:
|