xref: /trunk/main/rsc/Executable_rscpp.mk (revision 7de6b1b1)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24$(eval $(call gb_Executable_Executable,rscpp))
25
26$(eval $(call gb_Executable_add_precompiled_header,rscpp,$(SRCDIR)/rsc/inc/pch/precompiled_rsc))
27
28$(eval $(call gb_Executable_set_include,rscpp,\
29        $$(INCLUDE) \
30        -I$(SRCDIR)/rsc/inc \
31        -I$(SRCDIR)/rsc/inc/pch \
32))
33
34ifeq ($(GUI),UNX)
35$(eval $(call gb_Executable_add_defs,rscpp,\
36	-Dunix \
37))
38endif
39
40$(eval $(call gb_Executable_add_linked_libs,rscpp,\
41	i18nisolang1 \
42	sal \
43	tl \
44	vos3 \
45	stl \
46    $(gb_STDLIBS) \
47))
48
49$(eval $(call gb_Executable_add_cobjects,rscpp,\
50	rsc/source/rscpp/cpp1 \
51	rsc/source/rscpp/cpp2 \
52	rsc/source/rscpp/cpp3 \
53	rsc/source/rscpp/cpp4 \
54	rsc/source/rscpp/cpp5 \
55	rsc/source/rscpp/cpp6 \
56))
57
58# cc: Sun C 5.5 Patch 112761-10 2004/08/10
59# Solaris x86 compiler ICE
60# "cpp6.c", [get]:ube: internal error
61# remove after compiler upgrade
62ifeq ($(OS)$(CPU),SOLARISI)
63$(eval $(call gb_LinkTarget_set_cxx_optimization, \
64	rsc/source/rscpp/cpp6, $(gb_COMPILERNOOPTFLAGS) \
65))
66endif
67
68# vim: set noet sw=4 ts=4:
69