Bug 454376 add -lCrun -lCstd for Solaris OS_LIBS, r=bsmedberg
[wine-gecko.git] / intl / uconv / src / Makefile.in
blob22523d1ac5d9d5f94f8ce0bb218dd1b03468c1cb
1 # vim:set noet ts=8:
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 mozilla.org code.
17 # The Initial Developer of the Original Code is
18 # Netscape Communications Corporation.
19 # Portions created by the Initial Developer are Copyright (C) 1998
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 of the GNU General Public License Version 2 or later (the "GPL"),
26 # or 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 DEPTH = ../../..
39 topsrcdir = @top_srcdir@
40 srcdir = @srcdir@
41 VPATH = @srcdir@
43 include $(DEPTH)/config/autoconf.mk
45 MODULE = uconv
46 LIBRARY_NAME = uconv
47 EXPORT_LIBRARY = 1
48 IS_COMPONENT = 1
49 MODULE_NAME = nsUConvModule
50 GRE_MODULE = 1
51 LIBXUL_LIBRARY = 1
52 ifneq ($(OS_ARCH),WINNT)
53 # To avoid conflict with OS/2 system uconv.dll
54 SHORT_LIBNAME = mozuconv
55 endif
57 PACKAGE_FILE = uconv.pkg
59 REQUIRES = xpcom \
60 string \
61 intl \
62 locale \
63 unicharutil \
64 necko \
65 $(NULL)
67 CPPSRCS = \
68 nsUConvModule.cpp \
69 nsCharsetAliasImp.cpp \
70 nsConverterInputStream.cpp \
71 nsConverterOutputStream.cpp \
72 nsTextToSubURI.cpp \
73 nsGREResProperties.cpp \
74 nsCharsetConverterManager.cpp \
75 nsUTF8ConverterService.cpp \
76 nsUTF8ToUnicode.cpp \
77 nsUnicodeToUTF8.cpp \
78 nsScriptableUConv.cpp \
79 $(NULL)
81 ifdef MOZ_USE_NATIVE_UCONV
82 REQUIRES += ucnative
83 else
84 CPPSRCS += \
85 nsISO88591ToUnicode.cpp \
86 nsCP1252ToUnicode.cpp \
87 nsMacRomanToUnicode.cpp \
88 nsUnicodeToISO88591.cpp \
89 nsUnicodeToCP1252.cpp \
90 nsUnicodeToMacRoman.cpp \
91 $(NULL)
93 endif
95 EXPORT_RESOURCE = \
96 charsetalias.properties \
97 charsetData.properties \
98 $(NULL)
100 ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
101 CPPSRCS += nsOS2Charset.cpp
102 EXPORT_RESOURCE += os2charset.properties
103 else
104 ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
105 CPPSRCS += nsWinCharset.cpp
106 EXPORT_RESOURCE += wincharset.properties
107 else
108 ifneq (,$(filter cocoa mac, $(MOZ_WIDGET_TOOLKIT)))
109 CPPSRCS += nsMacCharset.cpp
110 EXPORT_RESOURCE += maccharset.properties
111 else
112 ifeq ($(OS_ARCH),BeOS)
113 CPPSRCS += nsBeOSCharset.cpp
114 else
115 CPPSRCS += nsUNIXCharset.cpp
116 EXPORT_RESOURCE += unixcharset.properties
117 # add platform charset remapping properties files here if necessary
118 # (see unixcharset.sample.properties for an example file)
119 # eg: if we needed a charset remap for OSARCH=Linux then add the following line:
120 #EXPORT_RESOURCE += unixcharset.Linux.properties
121 endif
122 endif
123 endif
124 endif
126 EXTRA_DSO_LDOPTS = \
127 ../util/$(LIB_PREFIX)ucvutil_s.$(LIB_SUFFIX) \
128 $(MOZ_UNICHARUTIL_LIBS) \
129 $(MOZ_NECKO_UTIL_LIBS) \
130 $(MOZ_COMPONENT_LIBS) \
131 $(NULL)
133 LOCAL_INCLUDES = -I$(srcdir)/../util
135 ifneq (,$(filter cocoa mac, $(MOZ_WIDGET_TOOLKIT)))
136 EXTRA_DSO_LDOPTS += $(TK_LIBS)
137 endif
139 LOCAL_INCLUDES = -I$(srcdir)/../util \
140 -I$(srcdir)/../ucvlatin \
141 -I$(srcdir)/../ucvibm \
142 -I$(srcdir)/../ucvja \
143 -I$(srcdir)/../ucvtw2 \
144 -I$(srcdir)/../ucvtw \
145 -I$(srcdir)/../ucvko \
146 -I$(srcdir)/../ucvcn \
147 -I$(srcdir)/../native \
148 $(NULL)
150 ifndef MOZ_USE_NATIVE_UCONV
151 SHARED_LIBRARY_LIBS += \
152 ../ucvlatin/$(LIB_PREFIX)ucvlatin_s.$(LIB_SUFFIX) \
153 ../ucvibm/$(LIB_PREFIX)ucvibm_s.$(LIB_SUFFIX) \
154 ../ucvja/$(LIB_PREFIX)ucvja_s.$(LIB_SUFFIX) \
155 ../ucvtw2/$(LIB_PREFIX)ucvtw2_s.$(LIB_SUFFIX) \
156 ../ucvtw/$(LIB_PREFIX)ucvtw_s.$(LIB_SUFFIX) \
157 ../ucvko/$(LIB_PREFIX)ucvko_s.$(LIB_SUFFIX) \
158 ../ucvcn/$(LIB_PREFIX)ucvcn_s.$(LIB_SUFFIX) \
159 $(NULL)
160 else
161 SHARED_LIBRARY_LIBS += \
162 ../native/$(LIB_PREFIX)ucnative_s.$(LIB_SUFFIX) \
163 $(NULL)
164 endif
166 include $(topsrcdir)/config/rules.mk
168 # CODESET is not automatically defined on some older versions of Redhat.
169 # Define _XOPEN_SOURCE so CODESET will get defined and thus allow
170 # nl_langinfo(CODESET) to compile on these systems.
171 ifeq ($(OS_ARCH), Linux)
172 DEFINES += -D_XOPEN_SOURCE=500
173 endif
175 libs:: $(EXPORT_RESOURCE)
176 $(INSTALL) $^ $(DIST)/bin/res
178 install:: $(EXPORT_RESOURCE)
179 $(SYSINSTALL) $(IFLAGS1) $^ $(DESTDIR)$(mozappdir)/res