Bug 454376 add -lCrun -lCstd for Solaris OS_LIBS, r=bsmedberg
[wine-gecko.git] / intl / uconv / tests / Makefile.in
blobb08411db4094e828cfef4f22d31c86cbadfbf457
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 = test_intl_uconv
46 XPCSHELL_TESTS = unit
48 ifndef MOZ_ENABLE_LIBXUL
49 MOZILLA_INTERNAL_API = 1
51 REQUIRES = \
52 string \
53 xpcom \
54 uconv \
55 locale \
56 $(NULL)
58 CPPSRCS = \
59 TestUConv.cpp \
60 nsconv.cpp \
61 plattest.cpp \
62 $(NULL)
64 ifeq ($(OS_ARCH),WINNT)
65 CPPSRCS += convperf.cpp
66 endif
68 SIMPLE_PROGRAMS = $(CPPSRCS:.cpp=$(BIN_SUFFIX))
70 endif # MOZ_ENABLE_LIBXUL
72 relativesrcdir = intl/uconv/tests
74 _TEST_FILES = \
75 test_bug335816.html \
76 $(NULL)
77 libs:: $(_TEST_FILES)
78 $(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/tests/$(relativesrcdir)
80 include $(topsrcdir)/config/rules.mk
82 ifndef MOZ_ENABLE_LIBXUL
83 INCLUDES += \
84 -I$(srcdir)/../ucvlatin \
85 -I$(srcdir)/../ucvja \
86 -I$(srcdir)/../util \
87 $(NULL)
89 LIBS += \
90 $(LIBS_DIR) \
91 $(XPCOM_LIBS) \
92 $(NSPR_LIBS) \
93 $(NULL)
95 # needed for mac linux
96 ifeq ($(OS_ARCH),Linux)
97 ifneq ($(OS_RELEASE),1.2)
98 OS_LIBS += -ldl
99 endif
100 endif
101 endif # MOZ_ENABLE_LIBXUL