~ubuntu-branches/ubuntu/trusty/virtualbox-lts-xenial/trusty-proposed

« back to all changes in this revision

Viewing changes to src/libs/xpcom18a4/nsprpub/lib/libc/src/Makefile.in

  • Committer: Package Import Robot
  • Author(s): Gianfranco Costamagna
  • Date: 2016-02-23 14:28:26 UTC
  • Revision ID: package-import@ubuntu.com-20160223142826-bdu69el2z6wa2a44
Tags: upstream-4.3.36-dfsg
ImportĀ upstreamĀ versionĀ 4.3.36-dfsg

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