xref: /aoo41x/main/basegfx/test/makefile.mk (revision e1fcf41e)
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=basegfx
27TARGET=tests
28
29ENABLE_EXCEPTIONS=TRUE
30
31# --- Settings -----------------------------------------------------
32
33.INCLUDE :  settings.mk
34
35.IF "$(WITH_CPPUNIT)" != "YES"
36
37@all:
38	@echo "cppunit disabled. nothing do do."
39
40.ELSE # "$(WITH_CPPUNIT)" != "YES"
41
42#building with stlport, but cppunit was not built with stlport
43.IF "$(USE_SYSTEM_STL)"!="YES"
44.IF "$(SYSTEM_CPPUNIT)"=="YES"
45CFLAGSCXX+=-DADAPT_EXT_STL
46.ENDIF
47.ENDIF
48
49CFLAGSCXX += $(CPPUNIT_CFLAGS)
50
51# --- Common ----------------------------------------------------------
52
53SHL1OBJS=  \
54	$(SLO)$/basegfx1d.obj      \
55	$(SLO)$/basegfx2d.obj      \
56	$(SLO)$/basegfx3d.obj      \
57	$(SLO)$/boxclipper.obj     \
58	$(SLO)$/basegfxtools.obj   \
59    $(SLO)$/clipstate.obj      \
60    $(SLO)$/genericclipper.obj \
61	$(SLO)$/testtools.obj
62
63SHL1TARGET= basegfx_tests
64SHL1STDLIBS= \
65                $(BASEGFXLIB) \
66				$(SALLIB)        \
67				$(CPPUHELPERLIB) \
68				$(CPPULIB)       \
69				$(CPPUNITLIB)
70
71SHL1IMPLIB= i$(SHL1TARGET)
72
73DEF1NAME    =$(SHL1TARGET)
74SHL1VERSIONMAP = export.map
75SHL1RPATH = NONE
76
77# END ------------------------------------------------------------------
78
79#------------------------------- All object files -------------------------------
80# do this here, so we get right dependencies
81SLOFILES=$(SHL1OBJS)
82
83# --- Targets ------------------------------------------------------
84
85.ENDIF # "$(WITH_CPPUNIT)" != "YES"
86
87.INCLUDE : target.mk
88.INCLUDE : _cppunit.mk
89
90.IF "$(verbose)"!="" || "$(VERBOSE)"!=""
91CDEFS+= -DVERBOSE
92.ENDIF
93