xref: /aoo42x/main/formula/util/makefile.pmk (revision 6958bde2)
1e6b7d829SAndrew Rist#**************************************************************
2e6b7d829SAndrew Rist#
3e6b7d829SAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4e6b7d829SAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5e6b7d829SAndrew Rist#  distributed with this work for additional information
6e6b7d829SAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7e6b7d829SAndrew Rist#  to you under the Apache License, Version 2.0 (the
8e6b7d829SAndrew Rist#  "License"); you may not use this file except in compliance
9e6b7d829SAndrew Rist#  with the License.  You may obtain a copy of the License at
10e6b7d829SAndrew Rist#
11e6b7d829SAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12e6b7d829SAndrew Rist#
13e6b7d829SAndrew Rist#  Unless required by applicable law or agreed to in writing,
14e6b7d829SAndrew Rist#  software distributed under the License is distributed on an
15e6b7d829SAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16e6b7d829SAndrew Rist#  KIND, either express or implied.  See the License for the
17e6b7d829SAndrew Rist#  specific language governing permissions and limitations
18e6b7d829SAndrew Rist#  under the License.
19e6b7d829SAndrew Rist#
20e6b7d829SAndrew Rist#**************************************************************
21e6b7d829SAndrew Rist
22e6b7d829SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir# define FORMULA_DLLIMPLEMENTATION (see @ dllapi.h)
25cdf0e10cSrcweirCDEFS += -DFORMULA_DLLIMPLEMENTATION
26cdf0e10cSrcweir
27cdf0e10cSrcweir# set default symbol visibility / scope to hidden
28*6958bde2SJim Jagielski.IF "$(COMNAME)" == "gcc3" && "$(OS)"!="MACOSX"
29cdf0e10cSrcweir.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
30cdf0e10cSrcweirCFLAGS += -fvisibility=hidden
31cdf0e10cSrcweir.ENDIF # HAVE_GCC_VISIBILITY_FEATURE
32cdf0e10cSrcweir.ENDIF # gcc3
33cdf0e10cSrcweir
34cdf0e10cSrcweir.IF "$(COMNAME)" == "sunpro5"
35cdf0e10cSrcweir.IF "$(CCNUMVER)" >= "00050005"
36cdf0e10cSrcweirCFLAGS += -xldscope=hidden
37cdf0e10cSrcweir.ENDIF # 5.5
38cdf0e10cSrcweir.ENDIF # sunpro5
39