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