office-gobmx/fpicker/source/unx/gnome/makefile.mk
2008-03-19 10:13:20 +00:00

106 lines
2.9 KiB
Makefile

#*************************************************************************
#
# OpenOffice.org - a multi-platform office productivity suite
#
# $RCSfile: makefile.mk,v $
#
# $Revision: 1.11 $
#
# last change: $Author: vg $ $Date: 2008-03-19 11:13:20 $
#
# The Contents of this file are made available subject to
# the terms of GNU Lesser General Public License Version 2.1.
#
#
# GNU Lesser General Public License Version 2.1
# =============================================
# Copyright 2005 by Sun Microsystems, Inc.
# 901 San Antonio Road, Palo Alto, CA 94303, USA
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License version 2.1, as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA
#
#*************************************************************************
PRJ=..$/..$/..
PRJNAME=fpicker
TARGET=fps_gnome.uno
LIBTARGET=NO
ENABLE_EXCEPTIONS=TRUE
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
DLLPRE=
# ------------------------------------------------------------------
.IF "$(ENABLE_GTK)" != "TRUE"
dummy:
@echo "Nothing to build. GUIBASE == $(GUIBASE), WITH_WIDGETSET == $(WITH_WIDGETSET)"
.ELSE # we build for GNOME
PKGCONFIG_MODULES=gtk+-2.0
.INCLUDE : pkg_config.mk
# check gtk version
GTK_TWO_FOUR:=$(shell @$(PKG_CONFIG) --exists 'gtk+-2.0 >= 2.4.0' && echo ok)
.IF "$(GTK_TWO_FOUR)" != "ok"
dummy:
@echo "Cannot build gtk filepicker because"
@$(PKGCONFIG) --print-errors --exists 'gtk+-2.0 >= 2.4.0'
.ELSE
CFLAGS+= $(WIDGETSET_CFLAGS)
CFLAGS+= $(PKGCONFIG_CFLAGS)
# --- Files --------------------------------------------------------
SLOFILES =\
$(SLO)$/SalGtkPicker.obj \
$(SLO)$/SalGtkFilePicker.obj \
$(SLO)$/SalGtkFolderPicker.obj \
$(SLO)$/resourceprovider.obj \
$(SLO)$/FPentry.obj
SHL1NOCHECK=TRUE
SHL1TARGET= $(TARGET)
SHL1OBJS= $(SLOFILES)
SHL1STDLIBS=\
$(VCLLIB) \
$(TOOLSLIB) \
$(CPPUHELPERLIB) \
$(COMPHELPERLIB) \
$(CPPULIB) \
$(SALLIB) \
$(PKGCONFIG_LIBS)
.IF "$(OS)"=="SOLARIS"
LINKFLAGSDEFS=
.ENDIF # "$(OS)"=="SOLARIS"
SHL1VERSIONMAP=exports.map
DEF1NAME=$(SHL1TARGET)
.ENDIF # GTK_TWO_FOUR
.ENDIF # "$(GUIBASE)" != "unx" || "$(WITH_WIDGETSET)" != "gnome"
# --- Targets ------------------------------------------------------
.INCLUDE : target.mk