1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
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 #*************************************************************************
38 ENABLE_EXCEPTIONS
=TRUE
40 # --- Settings -----------------------------------------------------
42 .INCLUDE
: settings.mk
44 .IF
"$(debug)"!="" ||
"$(DEBUG)"!=""
47 # disable inlining for MSVC
52 # disable inlining for gcc
58 # SunStudio 12 (-m64 and -m32 modes): three test cases of the unit tests fail
59 # if compiled with default -xalias_level (and optimization level -xO3)
60 .IF
"$(OS)"=="SOLARIS"
61 # For Sun Studio 8 this switch does not work: compilation fails on bitmapdevice.cxx
62 .IF
"$(CCNUMVER)"!="00050005"
63 CDEFS
+=-xalias_level
=compatible
67 # --- Common ----------------------------------------------------------
68 .IF
"$(L10N_framework)"==""
70 # BEGIN ----------------------------------------------------------------
71 # auto generated Target:tests by codegen.pl
73 $(SLO
)$/basictest.obj \
74 $(SLO
)$/bmpmasktest.obj \
76 $(SLO
)$/cliptest.obj \
77 $(SLO
)$/filltest.obj \
78 $(SLO
)$/linetest.obj \
79 $(SLO
)$/masktest.obj \
80 $(SLO
)$/polytest.obj \
82 $(SLO
)$/bitmapdevice.obj \
84 $(SLO
)$/polypolygonrenderer.obj
85 # last three objs are a bit of a hack: cannot link against LIBBASEBMP
86 # here, because not yet delivered. Need the functionality to test, so
87 # we're linking it in statically. Need to keep this in sync with
90 SHL1STDLIBS
= $(SALLIB
) \
94 SHL1IMPLIB
= i
$(SHL1TARGET
)
96 DEF1NAME
=$(SHL1TARGET
)
97 SHL1VERSIONMAP
= export.map
99 # END ------------------------------------------------------------------
104 # $(OBJ)$/bmpdemo.obj
106 #APP2STDLIBS=$(TOOLSLIB) \
117 #APP2DEF= $(MISC)$/$(TARGET).def
120 #------------------------------- All object files -------------------------------
121 # do this here, so we get right dependencies
124 # --- Targets ------------------------------------------------------
127 .INCLUDE
: _cppunit.mk
129 # --- Enable test execution in normal build ------------------------
130 .IF
"$(L10N_framework)"==""
132 unittest
: $(SHL1TARGETN
)
133 @echo
----------------------------------------------------------
134 @echo
- start unit
test on library
$(SHL1TARGETN
)
135 @echo
----------------------------------------------------------
136 $(TESTSHL2
) -sf
$(mktmp
) $(SHL1TARGETN
)