update dev300-m58
[ooovba.git] / basebmp / source / makefile.mk
blobdf3e2a5d51342c76d88b82a179f91c53bb674bb5
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.8 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 PRJ=..$/
34 PRJNAME=basebmp
35 TARGET=wrapper
36 ENABLE_EXCEPTIONS=TRUE
38 # --- Settings -----------------------------------------------------------
40 .INCLUDE : settings.mk
43 # TODO(F3) unify BASEBMP_NO_NESTED_TEMPLATE_PARAMETER and
44 # VIGRA_WITHOUT_NESTED_TEMPLATES_PARAMS
46 # - VIGRA_WITHOUT_NESTED_TEMPLATES_PARAMS avoids template parameters
47 # to templates - the template keyword is broken for SunCC
48 # - VIGRA_HAS_LONG_LONG enables long long overloads (but appears to not work
49 # reliably in some environments, and is thus not enabled)
50 # - VIGRA_HAS_LONG_DOUBLE enables long double overloads
52 .IF "$(OS)"!="WNT"
53 CDEFS+= -DVIGRA_HAS_LONG_DOUBLE
54 .ENDIF
56 .IF "$(OS)"=="SOLARIS" && "$(COM)"!="GCC"
57 CDEFS+= -DBASEBMP_NO_NESTED_TEMPLATE_PARAMETER -DVIGRA_WITHOUT_NESTED_TEMPLATE_PARAMS
58 .ENDIF
60 # SunStudio 12 (-m64 and -m32 modes): three test cases of the unit tests fail
61 # if compiled with default -xalias_level (and optimization level -xO3)
62 .IF "$(OS)"=="SOLARIS"
63 # For Sun Studio 8 this switch does not work: compilation fails on bitmapdevice.cxx
64 .IF "$(CCNUMVER)"!="00050005"
65 CDEFS+=-xalias_level=compatible
66 .ENDIF
67 .ENDIF
69 # --- Common ----------------------------------------------------------
71 SLOFILES = \
72 $(SLO)$/bitmapdevice.obj \
73 $(SLO)$/debug.obj \
74 $(SLO)$/polypolygonrenderer.obj
76 # $(SLO)$/genericintegerimageaccessor.obj \
78 # ==========================================================================
80 .INCLUDE : target.mk