xref: /aoo41x/main/basegfx/test/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
28PRJ=..
29
30PRJNAME=basegfx
31TARGET=tests
32
33ENABLE_EXCEPTIONS=TRUE
34
35# --- Settings -----------------------------------------------------
36
37.INCLUDE :  settings.mk
38
39.IF "$(WITH_CPPUNIT)" != "YES" || "$(GUI)" == "OS2"
40
41@all:
42.IF "$(GUI)" == "OS2"
43	@echo "Skipping, cppunit broken."
44.ELIF "$(WITH_CPPUNIT)" != "YES"
45	@echo "cppunit disabled. nothing do do."
46.END
47
48.ELSE # "$(WITH_CPPUNIT)" != "YES" || "$(GUI)" == "OS2"
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# --- Common ----------------------------------------------------------
60
61SHL1OBJS=  \
62	$(SLO)$/basegfx1d.obj      \
63	$(SLO)$/basegfx2d.obj      \
64	$(SLO)$/basegfx3d.obj      \
65	$(SLO)$/boxclipper.obj     \
66	$(SLO)$/basegfxtools.obj   \
67    $(SLO)$/clipstate.obj      \
68    $(SLO)$/genericclipper.obj \
69	$(SLO)$/testtools.obj
70
71SHL1TARGET= basegfx_tests
72SHL1STDLIBS= \
73                $(BASEGFXLIB) \
74				$(SALLIB)        \
75				$(CPPUHELPERLIB) \
76				$(CPPULIB)       \
77				$(CPPUNITLIB)
78
79SHL1IMPLIB= i$(SHL1TARGET)
80
81DEF1NAME    =$(SHL1TARGET)
82SHL1VERSIONMAP = export.map
83SHL1RPATH = NONE
84
85# END ------------------------------------------------------------------
86
87#------------------------------- All object files -------------------------------
88# do this here, so we get right dependencies
89SLOFILES=$(SHL1OBJS)
90
91# --- Targets ------------------------------------------------------
92
93.ENDIF # "$(WITH_CPPUNIT)" != "YES" || "$(GUI)" == "OS2"
94
95.INCLUDE : target.mk
96.INCLUDE : _cppunit.mk
97
98.IF "$(verbose)"!="" || "$(VERBOSE)"!=""
99CDEFS+= -DVERBOSE
100.ENDIF
101