2007-03-22 10:30:00 -07:00
|
|
|
#
|
2012-05-21 04:12:37 -07:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2007-03-22 10:30:00 -07:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
|
|
|
ifdef LIBXUL_SDK
|
|
|
|
$(error config/nspr/Makefile.in is not compatible with --enable-libxul-sdk=)
|
|
|
|
endif
|
|
|
|
ifdef MOZ_NATIVE_NSPR
|
|
|
|
$(error config/nspr/Makefile.in is not compatible with MOZ_NATIVE_NSPR)
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Copy NSPR to the SDK
|
2009-04-07 10:33:11 -07:00
|
|
|
ABS_DIST = $(call core_abspath,$(DIST))
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2013-03-16 23:53:39 -07:00
|
|
|
ifdef MOZ_FOLD_LIBS
|
|
|
|
# Trick the nspr build system into not building shared libraries.
|
|
|
|
# bug #851869.
|
|
|
|
EXTRA_MAKE_FLAGS := SHARED_LIBRARY= IMPORT_LIBRARY= SHARED_LIB_PDB=
|
|
|
|
|
|
|
|
# Work around libVersionPoint conflict between all three libraries.
|
|
|
|
# See bug #838566.
|
|
|
|
EXTRA_MAKE_FLAGS += XP_DEFINE=-DlibVersionPoint='libVersionPoint$$(LIBRARY_NAME)'
|
|
|
|
endif
|
|
|
|
|
|
|
|
libs export clean distclean::
|
|
|
|
$(MAKE) -C $(DEPTH)/nsprpub $@ $(EXTRA_MAKE_FLAGS)
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
libs::
|
2013-03-16 23:53:39 -07:00
|
|
|
$(MAKE) -C $(DEPTH)/nsprpub install prefix=$(ABS_DIST)/sdk exec_prefix=$(ABS_DIST)/sdk bindir=$(ABS_DIST)/sdk/dummy includedir=$(ABS_DIST)/include/nspr libdir=$(ABS_DIST)/sdk/lib datadir=$(ABS_DIST)/sdk/dummy DESTDIR= $(EXTRA_MAKE_FLAGS)
|
2011-01-16 17:36:25 -08:00
|
|
|
$(INSTALL) $(DEPTH)/nsprpub/config/nspr-config $(DIST)/sdk/bin
|
2007-03-22 10:30:00 -07:00
|
|
|
$(RM) -rf $(DIST)/sdk/dummy
|
|
|
|
ifneq (,$(filter OS2 WINNT,$(OS_ARCH))) # {
|
|
|
|
$(RM) -f $(DIST)/sdk/lib/$(DLL_PREFIX)nspr4$(DLL_SUFFIX) $(DIST)/sdk/lib/$(DLL_PREFIX)plc4$(DLL_SUFFIX) $(DIST)/sdk/lib/$(DLL_PREFIX)plds4$(DLL_SUFFIX)
|
|
|
|
$(RM) -f $(DIST)/sdk/lib/$(LIB_PREFIX)nspr4_s.$(LIB_SUFFIX) $(DIST)/sdk/lib/$(LIB_PREFIX)plc4_s.$(LIB_SUFFIX) $(DIST)/sdk/lib/$(LIB_PREFIX)plds4_s.$(LIB_SUFFIX)
|
|
|
|
else # } {
|
|
|
|
$(RM) -f $(DIST)/sdk/lib/$(LIB_PREFIX)nspr4.$(LIB_SUFFIX) $(DIST)/sdk/lib/$(LIB_PREFIX)plc4.$(LIB_SUFFIX) $(DIST)/sdk/lib/$(LIB_PREFIX)plds4.$(LIB_SUFFIX)
|
|
|
|
endif # }
|