VirtualBox

source: vbox/trunk/src/libs/xpcom18a4/nsprpub/lib/ds/Makefile.in@ 95259

Last change on this file since 95259 was 1, checked in by vboxsync, 55 years ago

import

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.9 KB
Line 
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
40MOD_DEPTH = ../..
41topsrcdir = @top_srcdir@
42srcdir = @srcdir@
43VPATH = @srcdir@
44
45include $(MOD_DEPTH)/config/autoconf.mk
46
47include $(topsrcdir)/config/config.mk
48
49INCLUDES = -I$(dist_includedir) -I$(topsrcdir)/pr/include
50
51CSRCS = \
52 plarena.c \
53 plhash.c \
54 plvrsion.c \
55 $(NULL)
56
57HEADERS = \
58 plarenas.h \
59 plarena.h \
60 plhash.h \
61 $(NULL)
62
63HEADERS := $(addprefix $(srcdir)/, $(HEADERS))
64
65ifeq ($(OS_ARCH), WINNT)
66ifdef NS_USE_GCC
67DLLBASE=-Wl,--image-base -Wl,0x30000000
68else
69DLLBASE=/BASE:0x30000000
70endif # GCC
71RES=$(OBJDIR)/plds.res
72RESNAME=plds.rc
73endif # WINNT
74
75ifeq ($(OS_ARCH), AIX)
76ifeq ($(CLASSIC_NSPR),1)
77OS_LIBS = -lc
78else
79OS_LIBS = -lc_r
80endif
81endif
82
83ifeq ($(OS_ARCH),IRIX)
84OS_LIBS = -lc
85endif
86
87ifeq ($(OS_ARCH),SunOS)
88OS_LIBS = -lc
89MAPFILE = $(OBJDIR)/pldsmap.sun
90GARBAGE += $(MAPFILE)
91ifdef NS_USE_GCC
92ifdef GCC_USE_GNU_LD
93MKSHLIB += -Wl,--version-script,$(MAPFILE)
94else
95MKSHLIB += -Wl,-M,$(MAPFILE)
96endif
97else
98MKSHLIB += -M $(MAPFILE)
99endif
100# The -R '$ORIGIN' linker option instructs this library to search for its
101# dependencies in the same directory where it resides.
102MKSHLIB += -R '$$ORIGIN'
103endif
104
105ifeq ($(OS_ARCH),OS2)
106MAPFILE = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION).def
107GARBAGE += $(MAPFILE)
108MKSHLIB += $(MAPFILE)
109endif
110
111EXTRA_LIBS = $(LIBNSPR)
112
113# On NCR and SCOOS, we can't link with extra libraries when
114# we build a shared library. If we do so, the linker doesn't
115# complain, but we would run into weird problems at run-time.
116# Therefore on these platforms, we link just the .o files.
117ifeq ($(OS_ARCH),NCR)
118EXTRA_LIBS =
119endif
120ifeq ($(OS_ARCH),SCOOS)
121EXTRA_LIBS =
122endif
123
124ifdef RESOLVE_LINK_SYMBOLS
125EXTRA_LIBS += $(OS_LIBS)
126endif
127
128LIBRARY_NAME = plds
129LIBRARY_VERSION = $(MOD_MAJOR_VERSION)
130
131RELEASE_HEADERS = $(HEADERS)
132RELEASE_HEADERS_DEST = $(RELEASE_INCLUDE_DIR)
133RELEASE_LIBS = $(TARGETS)
134
135include $(topsrcdir)/config/rules.mk
136
137#
138# Version information generation (begin)
139#
140ECHO = echo
141TINC = $(OBJDIR)/_pl_bld.h
142PROD = $(notdir $(SHARED_LIBRARY))
143NOW = $(MOD_DEPTH)/config/$(OBJDIR)/now
144SH_DATE = $(shell date "+%Y-%m-%d %T")
145SH_NOW = $(shell $(NOW))
146
147ifeq ($(NS_USE_GCC)_$(OS_ARCH),_WINNT)
148 SUF = i64
149else
150 SUF = LL
151endif
152
153GARBAGE += $(TINC)
154
155$(TINC):
156 @$(MAKE_OBJDIR)
157 @$(ECHO) '#define _BUILD_STRING "$(SH_DATE)"' > $(TINC)
158 @if test ! -z "$(SH_NOW)"; then \
159 $(ECHO) '#define _BUILD_TIME $(SH_NOW)$(SUF)' >> $(TINC); \
160 else \
161 true; \
162 fi
163 @$(ECHO) '#define _PRODUCTION "$(PROD)"' >> $(TINC)
164
165
166$(OBJDIR)/plvrsion.$(OBJ_SUFFIX): plvrsion.c $(TINC)
167ifeq ($(NS_USE_GCC)_$(OS_ARCH),_WINNT)
168 $(CC) -Fo$@ -c $(CFLAGS) -I$(OBJDIR) $<
169else
170ifeq ($(MOZ_OS2_TOOLS), VACPP)
171 $(CC) -Fo$@ -c $(CFLAGS) -I$(OBJDIR) $<
172else
173 $(CC) -o $@ -c $(CFLAGS) -I$(OBJDIR) $<
174endif
175endif
176#
177# Version information generation (end)
178#
179
180#
181# The Client build wants the shared libraries in $(dist_bindir),
182# so we also install them there.
183#
184
185export:: $(TARGETS)
186 $(INSTALL) -m 444 $(HEADERS) $(dist_includedir)
187 $(INSTALL) -m 444 $(TARGETS) $(dist_libdir)
188ifdef SHARED_LIBRARY
189ifeq ($(OS_ARCH),HP-UX)
190 $(INSTALL) -m 755 $(SHARED_LIBRARY) $(dist_libdir)
191 $(INSTALL) -m 755 $(SHARED_LIBRARY) $(dist_bindir)
192else
193 $(INSTALL) -m 444 $(SHARED_LIBRARY) $(dist_bindir)
194endif
195endif
196ifeq ($(MOZ_BITS),16)
197 $(INSTALL) -m 444 $(HEADERS) $(MOZ_INCL)
198 $(INSTALL) -m 444 $(TARGETS) $(MOZ_DIST)/lib
199 $(INSTALL) -m 444 $(TARGETS) $(MOZ_DIST)/bin
200endif
201
202
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette