xref: /aoo41x/main/basebmp/test/makefile.mk (revision cdf0e10c)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28PRJ=..
29
30PRJNAME=basebmp
31TARGET=tests
32TARGETTYPE=GUI
33
34ENABLE_EXCEPTIONS=TRUE
35
36# --- Settings -----------------------------------------------------
37
38.INCLUDE :  settings.mk
39
40.IF "$(debug)"!="" || "$(DEBUG)"!=""
41
42.IF "$(COM)"=="MSC"
43# disable inlining for MSVC
44CFLAGS += -Ob0
45.ENDIF
46
47.IF "$(COM)"=="GCC"
48# disable inlining for gcc
49CFLAGS += -fno-inline
50.ENDIF
51
52.ENDIF
53
54# SunStudio 12 (-m64 and -m32 modes): three test cases of the unit tests fail
55# if compiled with default -xalias_level (and optimization level -xO3)
56.IF "$(OS)"=="SOLARIS"
57# For Sun Studio 8 this switch does not work: compilation fails on bitmapdevice.cxx
58.IF "$(CCNUMVER)"!="00050005"
59CDEFS+=-xalias_level=compatible
60.ENDIF
61.ENDIF
62
63#building with stlport, but cppunit was not built with stlport
64.IF "$(USE_SYSTEM_STL)"!="YES"
65.IF "$(SYSTEM_CPPUNIT)"=="YES"
66CFLAGSCXX+=-DADAPT_EXT_STL
67.ENDIF
68.ENDIF
69
70CFLAGSCXX += $(CPPUNIT_CFLAGS)
71
72# --- Common ----------------------------------------------------------
73.IF "$(L10N_framework)"==""
74
75# BEGIN ----------------------------------------------------------------
76# auto generated Target:tests by codegen.pl
77SHL1OBJS=  \
78	$(SLO)$/basictest.obj		\
79	$(SLO)$/bmpmasktest.obj		\
80	$(SLO)$/bmptest.obj		    \
81	$(SLO)$/cliptest.obj		\
82	$(SLO)$/filltest.obj		\
83	$(SLO)$/linetest.obj		\
84	$(SLO)$/masktest.obj		\
85	$(SLO)$/polytest.obj		\
86	$(SLO)$/tools.obj
87SHL1TARGET= tests
88SHL1STDLIBS=    $(BASEBMPLIB) \
89                $(SALLIB)		 \
90				$(CPPUNITLIB)	 \
91				$(BASEGFXLIB)
92
93SHL1IMPLIB= i$(SHL1TARGET)
94
95DEF1NAME    =$(SHL1TARGET)
96SHL1VERSIONMAP = export.map
97SHL1RPATH = NONE
98
99.ENDIF
100# END ------------------------------------------------------------------
101
102#APP2TARGET= bmpdemo
103
104#APP2OBJS=	\
105#	$(OBJ)$/bmpdemo.obj
106
107#APP2STDLIBS=$(TOOLSLIB) 		\
108#			$(COMPHELPERLIB)	\
109#			$(BASEGFXLIB)	    \
110#			$(BASEBMPLIB)	    \
111#			$(CPPULIB)			\
112#			$(CPPUHELPERLIB)	\
113#			$(UCBHELPERLIB)		\
114#			$(SALLIB)			\
115#			$(VCLLIB)
116#
117#.IF "$(GUI)"!="UNX"
118#APP2DEF=	$(MISC)$/$(TARGET).def
119#.ENDIF
120
121#------------------------------- All object files -------------------------------
122# do this here, so we get right dependencies
123SLOFILES=$(SHL1OBJS)
124
125# --- Targets ------------------------------------------------------
126
127.INCLUDE : target.mk
128
129# --- Enable test execution in normal build ------------------------
130.IF "$(L10N_framework)"==""
131.INCLUDE : _cppunit.mk
132.ENDIF
133