xref: /aoo41x/main/o3tl/qa/makefile.mk (revision 5e7a3e64)
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
28.IF "$(GUI)" == "OS2"
29
30@all:
31	@echo "Skipping, cppunit broken."
32
33.ENDIF # "$(GUI)" == "OS2"
34
35PRJ=..
36
37PRJNAME=o3tl
38TARGET=tests
39
40ENABLE_EXCEPTIONS=TRUE
41
42# --- Settings -----------------------------------------------------
43
44.INCLUDE :  settings.mk
45
46#building with stlport, but cppunit was not built with stlport
47.IF "$(USE_SYSTEM_STL)"!="YES"
48.IF "$(SYSTEM_CPPUNIT)"=="YES"
49CFLAGSCXX+=-DADAPT_EXT_STL
50.ENDIF
51.ENDIF
52
53CFLAGSCXX += $(CPPUNIT_CFLAGS)
54
55.IF "$(L10N_framework)"==""
56# --- Common ----------------------------------------------------------
57
58# BEGIN ----------------------------------------------------------------
59SHL1OBJS=  \
60	$(SLO)$/cow_wrapper_clients.obj     \
61	$(SLO)$/test-cow_wrapper.obj	    \
62    $(SLO)$/test-vector_pool.obj	\
63    $(SLO)$/test-heap_ptr.obj           \
64    $(SLO)$/test-range.obj
65
66SHL1TARGET= tests
67SHL1STDLIBS= 	$(SALLIB)		 \
68				$(CPPUNITLIB)
69
70SHL1IMPLIB= i$(SHL1TARGET)
71
72DEF1NAME    =$(SHL1TARGET)
73SHL1VERSIONMAP = export.map
74SHL1RPATH = NONE
75
76# END ------------------------------------------------------------------
77
78#------------------------------- All object files -------------------------------
79# do this here, so we get right dependencies
80SLOFILES=$(SHL1OBJS)
81
82# --- Targets ------------------------------------------------------
83.ENDIF 		# L10N_framework
84
85.INCLUDE : target.mk
86
87# --- Enable test execution in normal build ------------------------
88.IF "$(L10N_framework)"==""
89.INCLUDE : _cppunit.mk
90.ENDIF 		# L10N_framework
91
92