xref: /aoo41x/main/fpicker/source/unx/kde4/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=..$/..$/..
29
30PRJNAME=fpicker
31TARGET=fps_kde4.uno
32LIBTARGET=NO
33ENABLE_EXCEPTIONS=TRUE
34
35# --- Settings -----------------------------------------------------
36
37.INCLUDE :  settings.mk
38DLLPRE=
39
40# ------------------------------------------------------------------
41
42# Currently just KDE is supported...
43.IF "$(GUIBASE)" != "unx" || "$(ENABLE_KDE4)" != "TRUE"
44
45dummy:
46	@echo "Nothing to build. GUIBASE == $(GUIBASE), ENABLE_KDE4 is not set"
47
48.ELSE # we build for KDE
49
50CFLAGS+= $(KDE4_CFLAGS)
51
52# --- Files --------------------------------------------------------
53
54SLOFILES =\
55		$(SLO)$/KDE4FilePicker.obj		\
56		$(SLO)$/KDE4FilePicker.moc.obj \
57		$(SLO)$/KDE4FPEntry.obj
58
59SHL1NOCHECK=TRUE
60SHL1TARGET=$(TARGET)
61SHL1STDLIBS=$(CPPULIB)\
62		$(CPPUHELPERLIB)\
63		$(SALLIB)\
64		$(VCLLIB)\
65		$(TOOLSLIB) \
66		$(KDE4_LIBS) -lkio -lkfile
67
68
69SHL1OBJS=$(SLOFILES)
70SHL1DEF=$(MISC)$/$(SHL1TARGET).def
71
72DEF1NAME=$(SHL1TARGET)
73DEF1VERSIONMAP=exports.map
74
75.ENDIF
76
77# --- Targets ------------------------------------------------------
78
79.INCLUDE :	target.mk
80
81$(MISC)$/KDE4FilePicker.moc.cxx : KDE4FilePicker.hxx
82	$(MOC4) $< -o $@
83
84ALLTAR : $(MISC)/fps_kde4.component
85
86$(MISC)/fps_kde4.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
87        fps_kde4.component
88    $(XSLTPROC) --nonet --stringparam uri \
89        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
90        $(SOLARENV)/bin/createcomponent.xslt fps_kde4.component
91