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#*************************************************************************
27PRJ=..$/..$/..
28
29PRJNAME=shell
30TARGET=kde4be
31
32LIBTARGET=NO
33ENABLE_EXCEPTIONS=TRUE
34VISIBILITY_HIDDEN=TRUE
35
36# --- Settings ---
37
38.INCLUDE : settings.mk
39
40# For some of the included external KDE headers, GCC complains about shadowed
41# symbols in instantiated template code only at the end of a compilation unit,
42# so the only solution is to disable that warning here:
43.IF "$(COM)" == "GCC"
44CFLAGSCXX+=-Wno-shadow
45.ENDIF
46
47# no "lib" prefix
48DLLPRE =
49
50.IF "$(ENABLE_KDE4)" == "TRUE"
51
52CFLAGS+=$(KDE4_CFLAGS)
53
54# --- Files ---
55
56SLOFILES=\
57    $(SLO)$/kde4access.obj \
58    $(SLO)$/kde4backend.obj
59
60SHL1NOCHECK=TRUE
61SHL1TARGET=$(TARGET)1.uno
62SHL1OBJS=$(SLOFILES)
63SHL1DEF=$(MISC)$/$(SHL1TARGET).def
64
65SHL1IMPLIB=i$(SHL1TARGET)
66SHL1STDLIBS=    \
67        $(CPPUHELPERLIB) \
68        $(CPPULIB) \
69        $(SALLIB) \
70        $(KDE4_LIBS) -lkio
71
72SHL1DEF=$(MISC)$/$(SHL1TARGET).def
73DEF1NAME=$(SHL1TARGET)
74
75.ENDIF
76
77# --- Targets ---
78
79.INCLUDE : target.mk
80
81ALLTAR : $(MISC)/kde4be1.component
82
83$(MISC)/kde4be1.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
84        kde4be1.component
85    $(XSLTPROC) --nonet --stringparam uri \
86        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
87        $(SOLARENV)/bin/createcomponent.xslt kde4be1.component
88