xref: /aoo4110/main/basebmp/test/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=tests
28TARGETTYPE=GUI
29
30ENABLE_EXCEPTIONS=TRUE
31
32.IF "$(WITH_CPPUNIT)" != "YES"
33
34@all:
35	@echo "cppunit disabled. nothing do do."
36
37.ELSE
38
39# --- Settings -----------------------------------------------------
40
41.INCLUDE :  settings.mk
42
43.IF "$(debug)"!="" || "$(DEBUG)"!=""
44
45.IF "$(COM)"=="MSC"
46# disable inlining for MSVC
47CFLAGS += -Ob0
48.ENDIF
49
50.IF "$(COM)"=="GCC"
51# disable inlining for gcc
52CFLAGS += -fno-inline
53.ENDIF
54
55.ENDIF
56
57# SunStudio 12 (-m64 and -m32 modes): three test cases of the unit tests fail
58# if compiled with default -xalias_level (and optimization level -xO3)
59.IF "$(OS)"=="SOLARIS"
60# For Sun Studio 8 this switch does not work: compilation fails on bitmapdevice.cxx
61.IF "$(CCNUMVER)"!="00050005"
62CDEFS+=-xalias_level=compatible
63.ENDIF
64.ENDIF
65
66CFLAGSCXX += $(CPPUNIT_CFLAGS)
67
68# --- Common ----------------------------------------------------------
69.IF "$(L10N_framework)"==""
70
71# BEGIN ----------------------------------------------------------------
72# auto generated Target:tests by codegen.pl
73SHL1OBJS=  \
74	$(SLO)$/basictest.obj		\
75	$(SLO)$/bmpmasktest.obj		\
76	$(SLO)$/bmptest.obj		    \
77	$(SLO)$/cliptest.obj		\
78	$(SLO)$/filltest.obj		\
79	$(SLO)$/linetest.obj		\
80	$(SLO)$/masktest.obj		\
81	$(SLO)$/polytest.obj		\
82	$(SLO)$/tools.obj
83SHL1TARGET= tests
84SHL1STDLIBS=    $(BASEBMPLIB) \
85                $(SALLIB)		 \
86				$(CPPUNITLIB)	 \
87				$(BASEGFXLIB)
88
89SHL1IMPLIB= i$(SHL1TARGET)
90
91DEF1NAME    =$(SHL1TARGET)
92SHL1VERSIONMAP = export.map
93SHL1RPATH = NONE
94
95.ENDIF
96# END ------------------------------------------------------------------
97
98#APP2TARGET= bmpdemo
99
100#APP2OBJS=	\
101#	$(OBJ)$/bmpdemo.obj
102
103#APP2STDLIBS=$(TOOLSLIB) 		\
104#			$(COMPHELPERLIB)	\
105#			$(BASEGFXLIB)	    \
106#			$(BASEBMPLIB)	    \
107#			$(CPPULIB)			\
108#			$(CPPUHELPERLIB)	\
109#			$(UCBHELPERLIB)		\
110#			$(SALLIB)			\
111#			$(VCLLIB)
112#
113#.IF "$(GUI)"!="UNX"
114#APP2DEF=	$(MISC)$/$(TARGET).def
115#.ENDIF
116
117#------------------------------- All object files -------------------------------
118# do this here, so we get right dependencies
119SLOFILES=$(SHL1OBJS)
120
121# --- Targets ------------------------------------------------------
122
123.INCLUDE : target.mk
124
125# --- Enable test execution in normal build ------------------------
126.IF "$(L10N_framework)"==""
127.INCLUDE : _cppunit.mk
128.ENDIF
129
130.ENDIF # "$(WITH_CPPUNIT)" != "YES"
131