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 ----------------------------------------------------------
69 # BEGIN ----------------------------------------------------------------
70 # auto generated Target:tests by codegen.pl
72 $(SLO
)$/basictest.obj \
73 $(SLO
)$/bmpmasktest.obj \
75 $(SLO
)$/cliptest.obj \
76 $(SLO
)$/filltest.obj \
77 $(SLO
)$/linetest.obj \
78 $(SLO
)$/masktest.obj \
79 $(SLO
)$/polytest.obj \
81 $(SLO
)$/bitmapdevice.obj \
83 $(SLO
)$/polypolygonrenderer.obj
84 # last three objs are a bit of a hack: cannot link against LIBBASEBMP
85 # here, because not yet delivered. Need the functionality to test, so
86 # 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 ------------------------
131 unittest
: $(SHL1TARGETN
)
132 @echo
----------------------------------------------------------
133 @echo
- start unit
test on library
$(SHL1TARGETN
)
134 @echo
----------------------------------------------------------
135 $(TESTSHL2
) -sf
$(mktmp
) $(SHL1TARGETN
)