xref: /aoo4110/main/basebmp/source/makefile.mk (revision b1cdbd2c)
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
24PRJ=..$/
25
26PRJNAME=basebmp
27TARGET=wrapper
28ENABLE_EXCEPTIONS=TRUE
29
30# --- Settings -----------------------------------------------------------
31
32.INCLUDE :	settings.mk
33
34
35# TODO(F3) unify BASEBMP_NO_NESTED_TEMPLATE_PARAMETER and
36# VIGRA_WITHOUT_NESTED_TEMPLATES_PARAMS
37#
38# - VIGRA_WITHOUT_NESTED_TEMPLATES_PARAMS avoids template parameters
39#   to templates - the template keyword is broken for SunCC
40# - VIGRA_HAS_LONG_LONG enables long long overloads (but appears to not work
41#   reliably in some environments, and is thus not enabled)
42# - VIGRA_HAS_LONG_DOUBLE enables long double overloads
43
44.IF "$(OS)"!="WNT"
45CDEFS+= -DVIGRA_HAS_LONG_DOUBLE
46.ENDIF
47
48.IF "$(OS)"=="SOLARIS" && "$(COM)"!="GCC"
49CDEFS+= -DBASEBMP_NO_NESTED_TEMPLATE_PARAMETER -DVIGRA_WITHOUT_NESTED_TEMPLATE_PARAMS
50.ENDIF
51
52# SunStudio 12 (-m64 and -m32 modes): three test cases of the unit tests fail
53# if compiled with default -xalias_level (and optimization level -xO3)
54.IF "$(OS)"=="SOLARIS"
55# For Sun Studio 8 this switch does not work: compilation fails on bitmapdevice.cxx
56.IF "$(CCNUMVER)"!="00050005"
57CDEFS+=-xalias_level=compatible
58.ENDIF
59.ENDIF
60
61# --- Common ----------------------------------------------------------
62
63SLOFILES =	\
64	$(SLO)$/bitmapdevice.obj \
65	$(SLO)$/debug.obj \
66	$(SLO)$/polypolygonrenderer.obj
67
68#	$(SLO)$/genericintegerimageaccessor.obj \
69
70# ==========================================================================
71
72.INCLUDE :	target.mk
73