xref: /trunk/main/cppu/qa/makefile.mk (revision cdf0e10c)
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 := ..
29PRJNAME := cppu
30TARGET := qa
31
32ENABLE_EXCEPTIONS := TRUE
33
34.INCLUDE: settings.mk
35
36CFLAGSCXX += $(CPPUNIT_CFLAGS)
37
38DLLPRE = # no leading "lib" on .so files
39
40INCPRE += $(MISC)$/$(TARGET)$/inc
41
42SHL1TARGET = $(TARGET)_any
43SHL1OBJS = $(SLO)$/test_any.obj
44SHL1STDLIBS = $(CPPULIB) $(CPPUNITLIB) $(TESTSHL2LIB) $(SALLIB)
45SHL1VERSIONMAP = version.map
46SHL1IMPLIB = i$(SHL1TARGET)
47DEF1NAME = $(SHL1TARGET)
48
49SHL2TARGET = $(TARGET)_unotype
50SHL2OBJS = $(SLO)$/test_unotype.obj
51SHL2STDLIBS = $(CPPULIB) $(CPPUNITLIB) $(TESTSHL2LIB) $(SALLIB)
52SHL2VERSIONMAP = version.map
53SHL2IMPLIB = i$(SHL2TARGET)
54DEF2NAME = $(SHL2TARGET)
55
56SHL3TARGET = $(TARGET)_reference
57SHL3OBJS = $(SLO)$/test_reference.obj
58SHL3STDLIBS = $(CPPULIB) $(CPPUNITLIB) $(TESTSHL2LIB) $(SALLIB)
59SHL3VERSIONMAP = version.map
60SHL3IMPLIB = i$(SHL3TARGET)
61DEF3NAME = $(SHL3TARGET)
62
63SHL4TARGET = $(TARGET)_recursion
64SHL4OBJS = $(SLO)$/test_recursion.obj
65SHL4STDLIBS = $(CPPULIB) $(CPPUNITLIB) $(TESTSHL2LIB) $(SALLIB)
66SHL4VERSIONMAP = version.map
67SHL4IMPLIB = i$(SHL4TARGET)
68DEF4NAME = $(SHL4TARGET)
69
70SLOFILES = $(SHL1OBJS) $(SHL2OBJS) $(SHL3OBJS) $(SHL4OBJS)
71
72.INCLUDE: target.mk
73
74ALLTAR: test
75
76$(SHL1OBJS): $(MISC)$/$(TARGET).cppumaker.flag
77
78$(MISC)$/$(TARGET).cppumaker.flag: $(MISC)$/$(TARGET).rdb
79    - $(MKDIRHIER) $(MISC)$/$(TARGET)$/inc
80    $(CPPUMAKER) -O$(MISC)$/$(TARGET)$/inc -BUCR -C $< \
81        $(SOLARBINDIR)$/udkapi.rdb
82    $(TOUCH) $@
83
84$(MISC)$/$(TARGET).rdb: $(MISC)$/$(TARGET)$/types.urd
85    - rm $@
86    $(REGMERGE) $@ /UCR $<
87
88$(MISC)$/$(TARGET)$/types.urd: types.idl
89    - $(MKDIR) $(MISC)$/$(TARGET)
90    $(IDLC) -O$(MISC)$/$(TARGET) -I$(SOLARIDLDIR) -cid -we $<
91
92test .PHONY: $(SHL1TARGETN) $(SHL2TARGETN) $(SHL3TARGETN) $(SHL4TARGETN)
93    $(TESTSHL2) $(SHL1TARGETN)
94    $(TESTSHL2) $(SHL2TARGETN)
95    $(TESTSHL2) $(SHL3TARGETN)
96    $(TESTSHL2) $(SHL4TARGETN)
97