2 # ***** BEGIN LICENSE BLOCK *****
3 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 # The contents of this file are subject to the Mozilla Public License Version
6 # 1.1 (the "License"); you may not use this file except in compliance with
7 # the License. You may obtain a copy of the License at
8 # http://www.mozilla.org/MPL/
10 # Software distributed under the License is distributed on an "AS IS" basis,
11 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 # for the specific language governing rights and limitations under the
15 # The Original Code is mozilla.org code. This file was copied from parts of
16 # mozilla/config/Makefile.in
18 # The Initial Developer of the Original Code is
19 # Netscape Communications Corporation.
20 # Portions created by the Initial Developer are Copyright (C) 1998
21 # the Initial Developer. All Rights Reserved.
24 # Robert Ginda <rginda@netscape.com>
25 # John Taylor <jtaylor@netscape.com>
26 # Benjamin Smedberg <benjamin@smedbergs.us>
28 # Alternatively, the contents of this file may be used under the terms of
29 # either of the GNU General Public License Version 2 or later (the "GPL"),
30 # or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
31 # in which case the provisions of the GPL or the LGPL are applicable instead
32 # of those above. If you wish to allow use of your version of this file only
33 # under the terms of either the GPL or the LGPL, and not to allow others to
34 # use your version of this file under the terms of the MPL, indicate your
35 # decision by deleting the provisions above and replace them with the notice
36 # and other provisions required by the GPL or the LGPL. If you do not delete
37 # the provisions above, a recipient may use your version of this file under
38 # the terms of any one of the MPL, the GPL or the LGPL.
40 # ***** END LICENSE BLOCK *****
43 topsrcdir
= @top_srcdir@
47 include $(DEPTH
)/config
/autoconf.mk
49 include $(topsrcdir
)/config
/rules.mk
52 $(error config
/nspr
/Makefile.in is not compatible with
--enable-libxul-sdk
=)
55 $(error config
/nspr
/Makefile.in is not compatible with MOZ_NATIVE_NSPR
)
58 # Copy NSPR to the SDK
59 ABS_DIST
= cd
$(DIST
) && pwd
60 ifeq (,$(CROSS_COMPILE
)$(filter-out WINNT
,$(OS_ARCH
))) # {
61 ifdef CYGDRIVE_MOUNT
# {
62 ABS_DIST
= cygpath
-w
$(DIST
) | sed
-e
's|\\\\|/|g'
67 _ABS_DIST
=`$(ABS_DIST)`; \
68 $(MAKE
) -C
$(DEPTH
)/nsprpub
install prefix=$$_ABS_DIST/sdk
exec_prefix=$$_ABS_DIST/sdk
bindir=$$_ABS_DIST/sdk
/dummy
includedir=$$_ABS_DIST/sdk
/include libdir=$$_ABS_DIST/sdk
/lib
datadir=$$_ABS_DIST/sdk
/dummy DESTDIR
=
69 $(RM
) -rf
$(DIST
)/sdk
/dummy
70 ifneq (,$(filter OS2 WINNT
,$(OS_ARCH
))) # {
71 $(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
)
72 $(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
)
74 $(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
)
78 $(MAKE
) -C
$(DEPTH
)/nsprpub
install DESTDIR
=$(DESTDIR
) libdir=$(mozappdir
) includedir=$(includedir)/nspr
79 $(RM
) -f
$(addprefix $(DESTDIR
)$(mozappdir
)/$(LIB_PREFIX
), $(addsuffix .
$(LIB_SUFFIX
), nspr4 plds4 plc4
))
80 $(RM
) -f
$(addprefix $(DESTDIR
)$(bindir)/,nspr-config compile-et.pl prerr.properties
)