xref: /AOO42X/main/test/source/cpp/makefile.mk (revision 3ceb2bc4d15228f85174dba14755030fb4b55d44)
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
22PRJ = ../..
23PRJNAME = test
24TARGET = cpp
25
26ENABLE_EXCEPTIONS = TRUE
27VISIBILITY_HIDDEN = TRUE
28
29.INCLUDE: settings.mk
30
31.IF "$(WITH_CPPUNIT)" != "YES" || "$(GUI)" == "OS2"
32
33@all:
34.IF "$(GUI)" == "OS2"
35    @echo "Skipping, cppunit broken."
36.ELIF "$(WITH_CPPUNIT)" != "YES"
37    @echo "cppunit disabled. nothing do do."
38.END
39
40.ELSE
41
42CDEFS += -DOOO_DLLIMPLEMENTATION_TEST
43
44CFLAGSCXX += $(CPPUNIT_CFLAGS)
45.IF "$(USE_SYSTEM_STL)" != "YES" && "$(SYSTEM_CPPUNIT)" == "YES"
46CFLAGSCXX += -DADAPT_EXT_STL
47.END
48
49SLOFILES = \
50    $(SLO)/getargument.obj \
51    $(SLO)/gettestargument.obj \
52    $(SLO)/officeconnection.obj \
53    $(SLO)/toabsolutefileurl.obj \
54    $(SLO)/uniquepipename.obj
55
56SHL1IMPLIB = i$(SHL1TARGET)
57SHL1OBJS = $(SLOFILES)
58SHL1RPATH = NONE
59SHL1STDLIBS = \
60    $(CPPUHELPERLIB) \
61    $(CPPULIB) \
62    $(CPPUNITLIB) \
63    $(SALLIB)
64SHL1TARGET = test
65SHL1USE_EXPORTS = name
66DEF1NAME = $(SHL1TARGET)
67
68.ENDIF
69
70.INCLUDE: target.mk
71