mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-29 21:25:35 +00:00
cdd10143f2
Replace NPL/GPL/LGPL licenses with MPL/GPL/LGPL.
199 lines
7.3 KiB
Makefile
199 lines
7.3 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 *****
|
|
|
|
DEPTH = ../..
|
|
NSPR_TREE = .
|
|
MOD_DEPTH = .
|
|
|
|
include $(NSPR_TREE)/config/rules.mk
|
|
include build.mk
|
|
|
|
MMDD = $(shell date +%m.%d)
|
|
INSTDIR = ../../dist/$(MMDD)/$(OBJDIR_NAME)
|
|
LIBDIR = ../../dist/$(OBJDIR_NAME)/lib
|
|
INCDIR = ../../dist/public/ldap
|
|
PRIVATEINCDIR = ../../dist/public/ldap-private
|
|
NSPRINCDIR = ../../dist/$(OBJDIR_NAME)/include
|
|
BINDIR = ../../dist/$(OBJDIR_NAME)/bin
|
|
ETCDIR = ../../dist/$(OBJDIR_NAME)/etc
|
|
EXPDIR = ldap/examples
|
|
|
|
# defaults
|
|
PKG_PRIVATE_HDRS=1
|
|
PKG_PRIVATE_LIBS=1
|
|
PKG_DEP_LIBS=1
|
|
|
|
all:: FORCE
|
|
$(NSINSTALL) -D $(INSTDIR)
|
|
|
|
@echo "Installing libraries"
|
|
$(NSINSTALL) -D $(INSTDIR)/lib
|
|
# Windows
|
|
ifeq ($(OS_ARCH), WINNT)
|
|
$(NSINSTALL) $(LIBDIR)/$(LDAP_LIBNAME).* $(INSTDIR)/lib
|
|
$(NSINSTALL) $(LIBDIR)/$(SSLDAP_LIBNAME).* $(INSTDIR)/lib
|
|
$(NSINSTALL) $(LIBDIR)/$(PRLDAP_LIBNAME).* $(INSTDIR)/lib
|
|
$(NSINSTALL) $(LIBDIR)/$(LBER_LIBNAME).lib $(INSTDIR)/lib
|
|
$(NSINSTALL) $(LIBDIR)/$(LDIF_LIBNAME).lib $(INSTDIR)/lib
|
|
ifeq ($(PKG_PRIVATE_LIBS),1)
|
|
$(NSINSTALL) $(LIBDIR)/$(IUTIL_LIBNAME).lib $(INSTDIR)/lib
|
|
endif
|
|
$(NSINSTALL) $(LIBDIR)/$(UTIL_LIBNAME).lib $(INSTDIR)/lib
|
|
ifeq ($(PKG_DEP_LIBS),1)
|
|
$(NSINSTALL) $(LIBDIR)/$(NSS_LIBNAME).* $(INSTDIR)/lib
|
|
ifeq ($(NSS_DYNAMIC_SOFTOKN),1)
|
|
$(NSINSTALL) $(LIBDIR)/$(SOFTOKN_LIBNAME).* $(INSTDIR)/lib
|
|
endif
|
|
$(NSINSTALL) $(LIBDIR)/$(SSL_LIBNAME).* $(INSTDIR)/lib
|
|
$(NSINSTALL) $(LIBDIR)/$(PLC_BASENAME).* $(INSTDIR)/lib
|
|
$(NSINSTALL) $(LIBDIR)/$(PLDS_BASENAME).* $(INSTDIR)/lib
|
|
$(NSINSTALL) $(LIBDIR)/$(NSPR_BASENAME).* $(INSTDIR)/lib
|
|
endif
|
|
# UNIX
|
|
else
|
|
$(NSINSTALL) $(LIBDIR)/lib$(LDAP_LIBNAME).$(DLL_SUFFIX) $(INSTDIR)/lib
|
|
$(NSINSTALL) $(LIBDIR)/lib$(SSLDAP_LIBNAME).* $(INSTDIR)/lib
|
|
$(NSINSTALL) $(LIBDIR)/lib$(PRLDAP_LIBNAME).* $(INSTDIR)/lib
|
|
$(NSINSTALL) $(LIBDIR)/lib$(LDAP_LIBNAME).$(LIB_SUFFIX) $(INSTDIR)/lib
|
|
$(NSINSTALL) $(LIBDIR)/lib$(LBER_LIBNAME).* $(INSTDIR)/lib
|
|
$(NSINSTALL) $(LIBDIR)/lib$(LDIF_LIBNAME).* $(INSTDIR)/lib
|
|
ifeq ($(PKG_PRIVATE_LIBS),1)
|
|
$(NSINSTALL) $(LIBDIR)/lib$(IUTIL_LIBNAME).* $(INSTDIR)/lib
|
|
endif
|
|
ifeq ($(PKG_DEP_LIBS),1)
|
|
$(NSINSTALL) $(LIBDIR)/lib$(NSS_LIBNAME).* $(INSTDIR)/lib
|
|
ifeq ($(NSS_DYNAMIC_SOFTOKN),1)
|
|
$(NSINSTALL) $(LIBDIR)/lib$(SOFTOKN_LIBNAME).* $(INSTDIR)/lib
|
|
endif
|
|
$(NSINSTALL) $(LIBDIR)/lib$(SSL_LIBNAME).* $(INSTDIR)/lib
|
|
$(NSINSTALL) $(LIBDIR)/$(PLC_BASENAME).* $(INSTDIR)/lib
|
|
$(NSINSTALL) $(LIBDIR)/$(PLDS_BASENAME).* $(INSTDIR)/lib
|
|
$(NSINSTALL) $(LIBDIR)/$(NSPR_BASENAME).* $(INSTDIR)/lib
|
|
ifneq ($(USE_64), 1)
|
|
ifeq ($(OS_ARCH), SunOS)
|
|
ifneq ($(OS_TEST),i86pc)
|
|
$(NSINSTALL) $(LIBDIR)/lib$(HYBRID_LIBNAME).* $(INSTDIR)/lib
|
|
$(NSINSTALL) $(LIBDIR)/lib$(PURE32_LIBNAME).* $(INSTDIR)/lib
|
|
endif
|
|
endif
|
|
ifeq ($(OS_ARCH), HP-UX)
|
|
$(NSINSTALL) $(LIBDIR)/lib$(HYBRID_LIBNAME).* $(INSTDIR)/lib
|
|
$(NSINSTALL) $(LIBDIR)/lib$(PURE32_LIBNAME).* $(INSTDIR)/lib
|
|
endif
|
|
endif
|
|
endif
|
|
endif
|
|
ifeq ($(BUILDCLU), 1)
|
|
@echo "Installing tools"
|
|
$(NSINSTALL) -D $(INSTDIR)/tools
|
|
$(NSINSTALL) $(BINDIR)/ldapsearch$(EXE_SUFFIX) $(INSTDIR)/tools
|
|
$(NSINSTALL) $(BINDIR)/ldapdelete$(EXE_SUFFIX) $(INSTDIR)/tools
|
|
$(NSINSTALL) $(BINDIR)/ldapmodify$(EXE_SUFFIX) $(INSTDIR)/tools
|
|
$(NSINSTALL) $(BINDIR)/ldapcmp$(EXE_SUFFIX) $(INSTDIR)/tools
|
|
$(NSINSTALL) $(BINDIR)/ldapcompare$(EXE_SUFFIX) $(INSTDIR)/tools
|
|
endif
|
|
|
|
@echo "Installing includes"
|
|
$(NSINSTALL) -D $(INSTDIR)/include
|
|
$(NSINSTALL) $(INCDIR)/disptmpl.h $(INSTDIR)/include
|
|
ifeq ($(PKG_PRIVATE_LIBS),1)
|
|
$(NSINSTALL) $(INCDIR)/iutil.h $(INSTDIR)/include
|
|
endif
|
|
$(NSINSTALL) $(INCDIR)/lber.h $(INSTDIR)/include
|
|
$(NSINSTALL) $(INCDIR)/ldap.h $(INSTDIR)/include
|
|
$(NSINSTALL) $(INCDIR)/ldap-standard.h $(INSTDIR)/include
|
|
$(NSINSTALL) $(INCDIR)/ldap-platform.h $(INSTDIR)/include
|
|
$(NSINSTALL) $(INCDIR)/ldap-extension.h $(INSTDIR)/include
|
|
$(NSINSTALL) $(INCDIR)/ldap-deprecated.h $(INSTDIR)/include
|
|
$(NSINSTALL) $(INCDIR)/ldap-to-be-deprecated.h $(INSTDIR)/include
|
|
$(NSINSTALL) $(INCDIR)/ldap_ssl.h $(INSTDIR)/include
|
|
$(NSINSTALL) $(INCDIR)/ldappr.h $(INSTDIR)/include
|
|
$(NSINSTALL) $(INCDIR)/srchpref.h $(INSTDIR)/include
|
|
|
|
ifeq ($(PKG_PRIVATE_HDRS),1)
|
|
@echo "Installing private include files"
|
|
$(NSINSTALL) -D $(INSTDIR)/include-private
|
|
$(NSINSTALL) -D $(INSTDIR)/include-private/liblber
|
|
$(NSINSTALL) $(PRIVATEINCDIR)/lber-int.h $(INSTDIR)/include-private/liblber
|
|
$(NSINSTALL) $(PRIVATEINCDIR)/ldap-int.h $(INSTDIR)/include-private
|
|
$(NSINSTALL) $(PRIVATEINCDIR)/portable.h $(INSTDIR)/include-private
|
|
$(NSINSTALL) $(PRIVATEINCDIR)/ldaprot.h $(INSTDIR)/include-private
|
|
$(NSINSTALL) $(PRIVATEINCDIR)/ldaplog.h $(INSTDIR)/include-private
|
|
|
|
@echo "Installing nspr header files"
|
|
$(NSINSTALL) -D $(INSTDIR)/include-nspr
|
|
cp -r $(NSPRINCDIR)/* $(INSTDIR)/include-nspr
|
|
endif
|
|
|
|
@echo "Installing etc files"
|
|
$(NSINSTALL) -D $(INSTDIR)/etc
|
|
$(NSINSTALL) $(ETCDIR)/ldapfilter.conf $(INSTDIR)/etc
|
|
$(NSINSTALL) $(ETCDIR)/ldapfriendly $(INSTDIR)/etc
|
|
$(NSINSTALL) $(ETCDIR)/ldapsearchprefs.conf $(INSTDIR)/etc
|
|
$(NSINSTALL) $(ETCDIR)/ldaptemplates.conf $(INSTDIR)/etc
|
|
|
|
@echo "Installing example files"
|
|
$(NSINSTALL) -D $(INSTDIR)/examples
|
|
$(NSINSTALL) $(EXPDIR)/*.c $(INSTDIR)/examples
|
|
$(NSINSTALL) $(EXPDIR)/*.h $(INSTDIR)/examples
|
|
$(NSINSTALL) $(EXPDIR)/README $(INSTDIR)/examples
|
|
$(NSINSTALL) $(EXPDIR)/Makefile $(INSTDIR)/examples
|
|
$(NSINSTALL) $(EXPDIR)/xmplflt.conf $(INSTDIR)/examples
|
|
|
|
ifdef DOCDIR
|
|
@echo "Installing doc files"
|
|
$(NSINSTALL) -D $(INSTDIR)/docs
|
|
$(NSINSTALL) $(DOCDIR)/README $(INSTDIR)
|
|
$(NSINSTALL) $(DOCDIR)/redist.txt $(INSTDIR)
|
|
$(NSINSTALL) $(DOCDIR)/*.htm $(INSTDIR)
|
|
$(NSINSTALL) $(DOCDIR)/*.gif $(INSTDIR)
|
|
$(NSINSTALL) $(DOCDIR)/README $(INSTDIR)/docs
|
|
$(NSINSTALL) $(DOCDIR)/redist.txt $(INSTDIR)/docs
|
|
endif
|
|
|
|
ifdef BUILD_SHIP
|
|
@echo "Copying files to $(BUILD_SHIP) directory"
|
|
cp -r $(INSTDIR) $(BUILD_SHIP)
|
|
endif
|
|
|
|
clean:: FORCE
|
|
@echo "Cleaning up old install"
|
|
$(RM) -rf $(INSTDIR)
|
|
|
|
FORCE::
|