Re: [OT] How to add cairo linking and compilation flags to makefile ?



John Cupitt wrote:

You need lines like
  CFLAGS=`pkg-config gtk+-2.0 --cflags`
  LDADD=`pkg-config gtk+-2.0 --libs`
in your Makefile.am. I forget the exact names.

This is what I have in Makefile.in

# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input --

[CUT THE LONG LIST]

So my question is: I have to modify Makefile.am but how ?
This is the content of Makefile.am:
## Process this file with automake to produce Makefile.in

INCLUDES = \
        -DPACKAGE_DATA_DIR=\""$(datadir)"\" \
        -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
        @PACKAGE_CFLAGS@

bin_PROGRAMS = xarchiver

xarchiver_SOURCES = \
        main.c main.h \
        support.c support.h \
        interface.c interface.h \
        callbacks.c callbacks.h \
        zip.c zip.h \
        rar.c rar.h \
        bzip2.c bzip2.h \
        gzip.c gzip.h \
        tar.c tar.h

xarchiver_LDADD = @PACKAGE_LIBS@

How to proceed ?

Colossus

Cpsed, a Linux OpenGL 3D scene editor
http://cpsed.sourceforge.net/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]