~ubuntu-branches/ubuntu/intrepid/xulrunner-1.9/intrepid

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/lib/tests/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack, Alexander Sack, Fabien Tassin
  • Date: 2008-02-13 11:47:21 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080213114721-7om0mgzngvuk9czv
Tags: 1.9~b3+nobinonly-0ubuntu1
* release FIREFOX_3_0b3_RELEASE

[ Alexander Sack ]
* submit patch that ships xpcshell to bugzilla
  - rename debian/patches/ship_xpcshell.patch =>
           debian/patches/bz410617_att295212_ship_xpcshell.patch
  - update debian/patches/series
* fix tooltip in epiphany: previously displayed out of screen bounds
  (LP: #37507)
  - add debian/patches/bz233371_att297343_fix_outofscreen_embed_tooltip.patch
  - update debian/patches/series
* use default upstream gcc tweaks for improved performance - especially of the
  javascript engine
  - update debian/rules
* update global extension/plugin patch to apply cleanly against latest code
  - update debian/patches/bzXXX_gre_extension_plugin_support.patch
* fix pyxpcom build failure introduced by recent commit
  - add debian/patches/bzXXX_fix_pyxpcom_build_failure.patch
  - update debian/patches/series
* add distro independent global install locations for extensions,
  /usr/lib/mozilla/extensions and /usr/share/mozilla/extensions
  - update debian/xulrunner-1.9.dirs
* support embedded tarball layout when either there is a *.tar.bz2 in orig tarball
  or if DEBIAN_MOZCLIENT_EMBEDDED is not unset (you will need this to produce embedded
  tarballs during |get-orig-source|
  - update debian/rules
* bump minimum libnss3-dev build requirements to >= 3.12.0~1.9b3
  - update debian/control
* bump minimum libnspr4-dev build requirements to >= 4.7.0~1.9b3
  - update debian/control

[ Fabien Tassin ]
* Drop patches applied upstream
  - drop debian/patches/bz410617_att295212_ship_xpcshell.patch
  - drop debian/patches/bz404634_att294921.patch
  - drop debian/patches/bz386610_python2.5_ftbfs_amd64.patch
  - drop debian/patches/bz373918_att295042.patch
  - drop debian/patches/bz408062_unstable_pc.patch
  - drop debian/patches/bz384304_fix_recursive_symlinks.patch
  - update debian/patches/series
* Refresh diverged patches:
  - update debian/patches/bzXXX_pc_honour_system_nspr_nss.patch
  - update debian/patches/rename_venkman_addon.patch
  - update debian/patches/bz344818_cairo_xrender.patch
* Install links for all .so libs in the -dev package
  - update debian/patches/dont_install_so_in_dev.patch
* Bump gtk requirement to 2.12 as per Mozilla bug 412432
  - update debian/control
* Add #DEBHELPER# token to postinst/prerm scripts
  - update debian/xulrunner-1.9.{postinst,prerm}
* Install previously missed libdbusservice.so
  - update debian/xulrunner-1.9.install
* Update venkman patch to also rename locales
  - update debian/patches/rename_venkman_addon.patch
* Bump requirement for system cairo to >= 1.5.8 as we now need
  the newly added cairo_path_extents()
  - update debian/rules
* Include mozilla-devscripts file using -include so ifneq could be omitted
  - update debian/rules
* Fix missing .so symlinks regression
  - update debian/patches/dont_install_so_in_dev.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
2
 
# ***** BEGIN LICENSE BLOCK *****
3
 
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
4
 
#
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/
9
 
#
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
13
 
# License.
14
 
#
15
 
# The Original Code is the Netscape Portable Runtime (NSPR).
16
 
#
17
 
# The Initial Developer of the Original Code is
18
 
# Netscape Communications Corporation.
19
 
# Portions created by the Initial Developer are Copyright (C) 1998-2000
20
 
# the Initial Developer. All Rights Reserved.
21
 
#
22
 
# Contributor(s):
23
 
#
24
 
# Alternatively, the contents of this file may be used under the terms of
25
 
# either the GNU General Public License Version 2 or later (the "GPL"), or
26
 
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27
 
# in which case the provisions of the GPL or the LGPL are applicable instead
28
 
# of those above. If you wish to allow use of your version of this file only
29
 
# under the terms of either the GPL or the LGPL, and not to allow others to
30
 
# use your version of this file under the terms of the MPL, indicate your
31
 
# decision by deleting the provisions above and replace them with the notice
32
 
# and other provisions required by the GPL or the LGPL. If you do not delete
33
 
# the provisions above, a recipient may use your version of this file under
34
 
# the terms of any one of the MPL, the GPL or the LGPL.
35
 
#
36
 
# ***** END LICENSE BLOCK *****
37
 
 
38
 
#! gmake
39
 
 
40
 
MOD_DEPTH       = ../..
41
 
topsrcdir       = @top_srcdir@
42
 
srcdir          = @srcdir@
43
 
VPATH           = @srcdir@
44
 
 
45
 
include $(MOD_DEPTH)/config/autoconf.mk
46
 
 
47
 
include $(topsrcdir)/config/config.mk
48
 
 
49
 
ifeq ($(OS_TARGET), WIN16)
50
 
OS_CFLAGS = $(OS_EXE_CFLAGS)
51
 
endif
52
 
 
53
 
CSRCS = \
54
 
        arena.c \
55
 
        base64t.c \
56
 
        getopt.c \
57
 
        string.c
58
 
 
59
 
ifeq (,$(filter-out WINNT OS2,$(OS_ARCH)))
60
 
CSRCS += arena.c
61
 
endif
62
 
 
63
 
ifeq (,$(filter-out WINNT OS2,$(OS_ARCH)))
64
 
PROG_SUFFIX = .exe
65
 
else
66
 
PROG_SUFFIX =
67
 
endif
68
 
 
69
 
PROGS = $(addprefix $(OBJDIR)/, $(CSRCS:.c=$(PROG_SUFFIX)))
70
 
 
71
 
TARGETS = $(PROGS) $(OBJS)
72
 
 
73
 
INCLUDES = -I$(dist_includedir)
74
 
 
75
 
# Setting the variables LDOPTS and LIBPR.  We first initialize
76
 
# them to the default values, then adjust them for some platforms.
77
 
LDOPTS = -L$(dist_libdir)
78
 
LIBPR = -lnspr$(MOD_MAJOR_VERSION)
79
 
LIBPLC = -lplc$(MOD_MAJOR_VERSION)
80
 
LIBPLDS = -lplds$(MOD_MAJOR_VERSION)
81
 
 
82
 
ifeq ($(OS_ARCH), WINNT)
83
 
ifeq ($(OS_TARGET), WIN16)
84
 
  LIBPR = $(dist_libdir)/nspr$(MOD_MAJOR_VERSION).lib
85
 
  LIBPLC= $(dist_libdir)/plc$(MOD_MAJOR_VERSION).lib
86
 
  LIBPLDS= $(dist_libdir)/plds$(MOD_MAJOR_VERSION).lib
87
 
else
88
 
  LDOPTS = -NOLOGO -DEBUG -INCREMENTAL:NO
89
 
  ifeq ($(OS_TARGET), WIN95)
90
 
  LIBPR = $(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)
91
 
  LIBPLC= $(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)
92
 
  LIBPLDS= $(dist_libdir)/plds$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)
93
 
  else
94
 
  LIBPR = $(dist_libdir)/libnspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)
95
 
  LIBPLC= $(dist_libdir)/libplc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)
96
 
  LIBPLDS= $(dist_libdir)/libplds$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)
97
 
  endif
98
 
endif
99
 
endif
100
 
 
101
 
ifeq ($(OS_ARCH),OS2)
102
 
  ifeq ($(MOZ_OS2_TOOLS),VACPP)
103
 
    LDOPTS = -NOE -DEBUG -nologo -PMTYPE:VIO /S:32768
104
 
    LIBPR = $(dist_libdir)/nspr$(MOD_MAJOR_VERSION).lib
105
 
    LIBPLC = $(dist_libdir)/plc$(MOD_MAJOR_VERSION).lib
106
 
    LIBPLDS= $(dist_libdir)/plds$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)      
107
 
  else
108
 
    LDOPTS += -Zomf -Zlinker /PM:VIO
109
 
  endif
110
 
endif
111
 
 
112
 
ifneq ($(OS_ARCH), WINNT)
113
 
PWD = $(shell pwd)
114
 
endif
115
 
 
116
 
ifeq ($(OS_ARCH), IRIX)
117
 
LDOPTS += -rpath $(PWD)/$(dist_libdir)
118
 
endif
119
 
 
120
 
ifeq ($(OS_ARCH), Linux)
121
 
    ifeq ($(OS_RELEASE), 1.2)
122
 
        EXTRA_LIBS = -ldl
123
 
    else
124
 
        LDOPTS += -Xlinker -rpath $(PWD)/$(dist_libdir)
125
 
        ifeq ($(USE_PTHREADS),1)
126
 
            EXTRA_LIBS = -lpthread
127
 
        endif
128
 
    endif
129
 
endif
130
 
 
131
 
ifeq (,$(filter-out OpenBSD,$(OS_ARCH)))
132
 
    ifeq ($(USE_PTHREADS),1)
133
 
        EXTRA_LIBS = -lpthread
134
 
    endif
135
 
endif
136
 
 
137
 
ifeq ($(OS_ARCH), OSF1)
138
 
LDOPTS += -rpath $(PWD)/$(dist_libdir) -lpthread
139
 
endif
140
 
 
141
 
ifeq ($(OS_ARCH), HP-UX)
142
 
LDOPTS += -Wl,+s,+b,$(PWD)/$(dist_libdir)
143
 
endif
144
 
 
145
 
# AIX
146
 
ifeq ($(OS_ARCH),AIX)
147
 
LDOPTS += -blibpath:$(PWD)/$(dist_libdir):/usr/lib:/lib
148
 
LIBPR = -lnspr$(MOD_MAJOR_VERSION)_shr
149
 
LIBPLC = -lplc$(MOD_MAJOR_VERSION)_shr
150
 
endif
151
 
 
152
 
# Solaris
153
 
ifeq ($(OS_ARCH), SunOS)
154
 
ifneq ($(OS_RELEASE), 4.1.3_U1)
155
 
ifdef NS_USE_GCC
156
 
LDOPTS += -Xlinker -R -Xlinker $(PWD)/$(dist_libdir)
157
 
else
158
 
LDOPTS += -R $(PWD)/$(dist_libdir)
159
 
endif
160
 
endif
161
 
 
162
 
# SunOS 5.4 and 5.5 need to link with -lthread or -lpthread,
163
 
# even though we already linked with these system libraries
164
 
# when we built libnspr.so.
165
 
ifeq ($(OS_RELEASE), 5.4)
166
 
EXTRA_LIBS = -lthread
167
 
endif
168
 
 
169
 
ifeq ($(OS_RELEASE), 5.5)
170
 
ifdef USE_PTHREADS
171
 
EXTRA_LIBS = -lpthread
172
 
else
173
 
EXTRA_LIBS = -lthread
174
 
endif
175
 
endif
176
 
endif # SunOS
177
 
 
178
 
ifeq ($(OS_ARCH), NCR)
179
 
# NCR needs to link against -lsocket -lnsl (and -lc, which is linked
180
 
# implicitly by $(CC)) again even though we already linked with these
181
 
# system libraries when we built libnspr.so.
182
 
EXTRA_LIBS = -lsocket -lnsl
183
 
# This hardcodes in the executable programs the directory to find
184
 
# libnspr.so etc. at program startup.  Equivalent to the -R or -rpath
185
 
# option for ld on other platforms.
186
 
export LD_RUN_PATH = $(PWD)/$(dist_libdir)
187
 
endif
188
 
 
189
 
#####################################################
190
 
#
191
 
# The rules
192
 
#
193
 
#####################################################
194
 
 
195
 
include $(topsrcdir)/config/rules.mk
196
 
 
197
 
AIX_PRE_4_2 = 0
198
 
ifeq ($(OS_ARCH),AIX)
199
 
ifneq ($(OS_RELEASE),4.2)
200
 
ifneq ($(USE_PTHREADS), 1)
201
 
#AIX_PRE_4_2 = 1
202
 
endif
203
 
endif
204
 
endif
205
 
 
206
 
ifeq ($(AIX_PRE_4_2),1)
207
 
 
208
 
# AIX releases prior to 4.2 need a special two-step linking hack
209
 
# in order to both override the system select() and be able to 
210
 
# get at the original system select().
211
 
#
212
 
# We use a pattern rule in ns/nspr20/config/rules.mk to generate
213
 
# the .$(OBJ_SUFFIX) file from the .c source file, then do the
214
 
# two-step linking hack below.
215
 
 
216
 
$(OBJDIR)/%: $(OBJDIR)/%.$(OBJ_SUFFIX)
217
 
        @$(MAKE_OBJDIR)
218
 
        rm -f $@ $(AIX_TMP)
219
 
        $(CC) $(AIX_LINK_OPTS) -o $(AIX_TMP) $< $(dist_libdir)/libnspr$(MOD_MAJOR_VERSION).a
220
 
        $(CC) -o $@ $(AIX_TMP) $(AIX_WRAP)
221
 
        rm -f $(AIX_TMP)
222
 
 
223
 
else
224
 
 
225
 
# All platforms that are not AIX pre-4.2.
226
 
 
227
 
$(OBJDIR)/%$(PROG_SUFFIX): $(OBJDIR)/%.$(OBJ_SUFFIX)
228
 
        @$(MAKE_OBJDIR)
229
 
 
230
 
ifeq ($(OS_ARCH), WINNT)
231
 
ifeq ($(OS_TARGET),WIN16)
232
 
        echo system windows >w16link
233
 
        echo option map >>w16link
234
 
        echo option stack=10K >>w16link
235
 
        echo option heapsize=32K >>w16link
236
 
        echo debug $(DEBUGTYPE) all >>w16link
237
 
        echo name $@  >>w16link
238
 
        echo file >>w16link
239
 
        echo $<  >>w16link
240
 
        echo library  >>w16link
241
 
        echo $(LIBPR),       >>w16link
242
 
        echo $(LIBPLC),          >>w16link
243
 
        echo winsock.lib     >>w16link
244
 
        wlink @w16link.
245
 
else
246
 
        link $(LDOPTS) $< $(LIBPLC) $(LIBPLDS) $(LIBPR) wsock32.lib -out:$@
247
 
endif
248
 
else
249
 
ifeq ($(OS_ARCH),OS2)
250
 
        $(LINK) $(EXEFLAGS) $(LDOPTS) $< $(LIBPLC)  $(LIBPLDS) $(LIBPR) $(OS_LIBS) $(EXTRA_LIBS)
251
 
else
252
 
        $(CC) $(XCFLAGS) $< $(LDOPTS) $(LIBPLC) $(LIBPLDS) $(LIBPR) $(EXTRA_LIBS) -o $@
253
 
endif
254
 
endif
255
 
endif
256
 
 
257
 
export:: $(TARGETS)
258
 
clean::
259
 
        rm -f $(TARGETS)
260
 
 
261
 
 
262