Bug 460926 A11y hierachy is broken on Ubuntu 8.10 (GNOME 2.24), r=Evan.Yan sr=roc
[wine-gecko.git] / nsprpub / lib / ds / Makefile.in
blob751ea7380333fd4385860e13dd98c55f2779f34f
1 #
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
13 # License.
15 # The Original Code is the Netscape Portable Runtime (NSPR).
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.
22 # Contributor(s):
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.
36 # ***** END LICENSE BLOCK *****
38 #! gmake
40 MOD_DEPTH = ../..
41 topsrcdir = @top_srcdir@
42 srcdir = @srcdir@
43 VPATH = @srcdir@
45 include $(MOD_DEPTH)/config/autoconf.mk
47 include $(topsrcdir)/config/config.mk
49 INCLUDES = -I$(dist_includedir) -I$(topsrcdir)/pr/include
51 CSRCS = \
52 plarena.c \
53 plhash.c \
54 plvrsion.c \
55 $(NULL)
57 HEADERS = \
58 plarenas.h \
59 plarena.h \
60 plhash.h \
61 $(NULL)
63 HEADERS := $(addprefix $(srcdir)/, $(HEADERS))
65 ifeq ($(OS_ARCH), WINNT)
66 RES=$(OBJDIR)/plds.res
67 RESNAME=plds.rc
68 endif # WINNT
70 ifeq ($(OS_ARCH), AIX)
71 ifeq ($(CLASSIC_NSPR),1)
72 OS_LIBS = -lc
73 else
74 OS_LIBS = -lc_r
75 endif
76 endif
78 ifeq ($(OS_ARCH),IRIX)
79 OS_LIBS = -lc
80 endif
82 ifeq ($(OS_ARCH),SunOS)
83 OS_LIBS = -lc
84 MAPFILE = $(OBJDIR)/pldsmap.sun
85 GARBAGE += $(MAPFILE)
86 ifdef NS_USE_GCC
87 ifdef GCC_USE_GNU_LD
88 MKSHLIB += -Wl,--version-script,$(MAPFILE)
89 else
90 MKSHLIB += -Wl,-M,$(MAPFILE)
91 endif
92 else
93 MKSHLIB += -M $(MAPFILE)
94 endif
95 # The -R '$ORIGIN' linker option instructs this library to search for its
96 # dependencies in the same directory where it resides.
97 MKSHLIB += -R '$$ORIGIN'
98 endif
100 ifeq ($(OS_ARCH),OS2)
101 MAPFILE = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION).def
102 GARBAGE += $(MAPFILE)
103 MKSHLIB += $(MAPFILE)
104 endif
106 EXTRA_LIBS = $(LIBNSPR)
108 # On NCR and SCOOS, we can't link with extra libraries when
109 # we build a shared library. If we do so, the linker doesn't
110 # complain, but we would run into weird problems at run-time.
111 # Therefore on these platforms, we link just the .o files.
112 ifeq ($(OS_ARCH),NCR)
113 EXTRA_LIBS =
114 endif
115 ifeq ($(OS_ARCH),SCOOS)
116 EXTRA_LIBS =
117 endif
119 ifdef RESOLVE_LINK_SYMBOLS
120 EXTRA_LIBS += $(OS_LIBS)
121 endif
123 LIBRARY_NAME = plds
124 LIBRARY_VERSION = $(MOD_MAJOR_VERSION)
126 RELEASE_HEADERS = $(HEADERS)
127 RELEASE_HEADERS_DEST = $(RELEASE_INCLUDE_DIR)
128 RELEASE_LIBS = $(TARGETS)
130 include $(topsrcdir)/config/rules.mk
133 # Version information generation (begin)
135 ECHO = echo
136 TINC = $(OBJDIR)/_pl_bld.h
137 PROD = $(notdir $(SHARED_LIBRARY))
138 NOW = $(MOD_DEPTH)/config/$(OBJDIR)/now
139 SH_DATE = $(shell date "+%Y-%m-%d %T")
140 SH_NOW = $(shell $(NOW))
142 ifeq ($(NS_USE_GCC)_$(OS_ARCH),_WINNT)
143 SUF = i64
144 else
145 SUF = LL
146 endif
148 GARBAGE += $(TINC)
150 $(TINC):
151 @$(MAKE_OBJDIR)
152 @$(ECHO) '#define _BUILD_STRING "$(SH_DATE)"' > $(TINC)
153 @if test ! -z "$(SH_NOW)"; then \
154 $(ECHO) '#define _BUILD_TIME $(SH_NOW)$(SUF)' >> $(TINC); \
155 else \
156 true; \
158 @$(ECHO) '#define _PRODUCTION "$(PROD)"' >> $(TINC)
161 $(OBJDIR)/plvrsion.$(OBJ_SUFFIX): plvrsion.c $(TINC)
162 ifeq ($(NS_USE_GCC)_$(OS_ARCH),_WINNT)
163 $(CC) -Fo$@ -c $(CFLAGS) -I$(OBJDIR) $<
164 else
165 $(CC) -o $@ -c $(CFLAGS) -I$(OBJDIR) $<
166 endif
168 # Version information generation (end)
172 # The Client build wants the shared libraries in $(dist_bindir),
173 # so we also install them there.
176 export:: $(TARGETS)
177 $(INSTALL) -m 444 $(HEADERS) $(dist_includedir)
178 $(INSTALL) -m 444 $(TARGETS) $(dist_libdir)
179 ifdef SHARED_LIBRARY
180 ifeq ($(OS_ARCH),HP-UX)
181 $(INSTALL) -m 755 $(SHARED_LIBRARY) $(dist_libdir)
182 $(INSTALL) -m 755 $(SHARED_LIBRARY) $(dist_bindir)
183 else
184 $(INSTALL) -m 444 $(SHARED_LIBRARY) $(dist_bindir)
185 endif
186 endif
187 ifeq ($(MOZ_BITS),16)
188 $(INSTALL) -m 444 $(HEADERS) $(MOZ_INCL)
189 $(INSTALL) -m 444 $(TARGETS) $(MOZ_DIST)/lib
190 $(INSTALL) -m 444 $(TARGETS) $(MOZ_DIST)/bin
191 endif