2004-09-20 05:57:45 -05:00
|
|
|
#*************************************************************************
|
|
|
|
#
|
2008-04-10 11:34:55 -05:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
|
|
|
# Copyright 2008 by Sun Microsystems, Inc.
|
2004-09-20 05:57:45 -05:00
|
|
|
#
|
2008-04-10 11:34:55 -05:00
|
|
|
# OpenOffice.org - a multi-platform office productivity suite
|
2004-09-20 05:57:45 -05:00
|
|
|
#
|
2008-04-10 11:34:55 -05:00
|
|
|
# $RCSfile: pkg_config.mk,v $
|
2004-09-20 05:57:45 -05:00
|
|
|
#
|
2008-04-10 11:34:55 -05:00
|
|
|
# $Revision: 1.6 $
|
2004-09-20 05:57:45 -05:00
|
|
|
#
|
2008-04-10 11:34:55 -05:00
|
|
|
# This file is part of OpenOffice.org.
|
2004-09-20 05:57:45 -05:00
|
|
|
#
|
2008-04-10 11:34:55 -05:00
|
|
|
# OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
# only, as published by the Free Software Foundation.
|
2004-09-20 05:57:45 -05:00
|
|
|
#
|
2008-04-10 11:34:55 -05:00
|
|
|
# OpenOffice.org 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 version 3 for more details
|
|
|
|
# (a copy is included in the LICENSE file that accompanied this code).
|
2004-09-20 05:57:45 -05:00
|
|
|
#
|
2008-04-10 11:34:55 -05:00
|
|
|
# You should have received a copy of the GNU Lesser General Public License
|
|
|
|
# version 3 along with OpenOffice.org. If not, see
|
|
|
|
# <http://www.openoffice.org/license.html>
|
|
|
|
# for a copy of the LGPLv3 License.
|
2004-09-20 05:57:45 -05:00
|
|
|
#
|
|
|
|
#*************************************************************************
|
|
|
|
|
|
|
|
.INCLUDE .IGNORE : pkgroot.mk
|
|
|
|
|
|
|
|
.IF "$(PKGCONFIG_ROOT)"!=""
|
2008-03-18 07:08:23 -05:00
|
|
|
PKG_CONFIG=$(PKGCONFIG_ROOT)$/bin$/pkg-config
|
2004-09-20 05:57:45 -05:00
|
|
|
PKG_CONFIG_PATH:=$(PKGCONFIG_ROOT)$/lib$/pkgconfig
|
|
|
|
.EXPORT : PKG_CONFIG_PATH
|
|
|
|
PKGCONFIG_PREFIX=--define-variable=prefix=$(PKGCONFIG_ROOT)
|
|
|
|
.ELSE # "$(OS)"=="SOLARIS"
|
2008-03-18 07:08:23 -05:00
|
|
|
PKG_CONFIG*=pkg-config
|
2004-09-20 05:57:45 -05:00
|
|
|
.ENDIF # "$(OS)"=="SOLARIS"
|
|
|
|
|
2008-03-18 07:08:23 -05:00
|
|
|
PKGCONFIG_CFLAGS:=$(shell @$(PKG_CONFIG) $(PKGCONFIG_PREFIX) --cflags $(PKGCONFIG_MODULES))
|
|
|
|
PKGCONFIG_LIBS:=$(shell @$(PKG_CONFIG) $(PKGCONFIG_PREFIX) --libs $(PKGCONFIG_MODULES))
|
2004-09-20 05:57:45 -05:00
|
|
|
CFLAGS+=$(PKGCONFIG_CFLAGS)
|