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