Re: [OT] How to add cairo linking and compilation flags to makefile ?
- From: John Cupitt <jcupitt gmail com>
- To: Colossus <colossus 3000 it>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: [OT] How to add cairo linking and compilation flags to makefile ?
- Date: Wed, 5 Oct 2005 11:22:34 +0100
On 10/5/05, Colossus <colossus 3000 it> wrote:
This is the content of Makefile.am:
INCLUDES = \
-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
-DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
@PACKAGE_CFLAGS@
xarchiver_LDADD = @PACKAGE_LIBS@
Those are the two things you need to set. Where are PACKAGE_CFLAGS and
PACKAGE_LIBS defined? In your configure.in I guess.
The best solution is probably to use PKG_CHECK_MODULES in your configure.in:
PKG_CHECK_MODULES(PKGFLAGS, gtk+-2.0)
PACKAGE_CFLAGS="$PACKAGE_CFLAGS $GTK_CFLAGS"
PACKAGE_LIBS="$PACKAGE_LIBS $GTK_LIBS"
This will get and test all the gtk flags and options and add them to
the end of PACKAGE_CFLAGS and PACKAGE_LIBS for you.
J
CFLAGS=`pkg-config gtk+-2.0 --cflags`
LDADD=`pkg-config gtk+-2.0 --libs`
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]