xref: /aoo42x/main/rsc/Executable_rscpp.mk (revision 0c9cf815)
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
34$(eval $(call gb_Executable_add_defs,rscpp,\
35	-DSOLAR \
36))
37
38ifeq ($(GUI),UNX)
39$(eval $(call gb_Executable_add_defs,rscpp,\
40	-Dunix \
41))
42endif
43
44$(eval $(call gb_Executable_add_linked_libs,rscpp,\
45	i18nisolang1 \
46	sal \
47	tl \
48	vos3 \
49	stl \
50	$(gb_STDLIBS) \
51))
52
53$(eval $(call gb_Executable_add_cobjects,rscpp,\
54	rsc/source/rscpp/cpp1 \
55	rsc/source/rscpp/cpp2 \
56	rsc/source/rscpp/cpp3 \
57	rsc/source/rscpp/cpp4 \
58	rsc/source/rscpp/cpp5 \
59	rsc/source/rscpp/cpp6 \
60))
61
62# cc: Sun C 5.5 Patch 112761-10 2004/08/10
63# Solaris x86 compiler ICE
64# "cpp6.c", [get]:ube: internal error
65# remove after compiler upgrade
66ifeq ($(OS)$(CPU),SOLARISI)
67$(eval $(call gb_LinkTarget_set_cxx_optimization, \
68	rsc/source/rscpp/cpp6, $(gb_COMPILERNOOPTFLAGS) \
69))
70endif
71
72# vim: set noet sw=4 ts=4:
73