Re: Makefile and includes
- From: Chema Celorio <chema ximian com>
- To: Roberto <robyegiuly libero it>
- Cc: gnome-devel-list gnome org
- Subject: Re: Makefile and includes
- Date: Fri, 25 May 2001 00:15:06 -0500
Roberto wrote:
>
> I must to compile my application with gtkhtml:
>
> `gnome-config --cflags --libs gtkhtml`
>
> I must to prepare configure.in and Makefile.am with gtkhtml support.
>
> HOW?
Ok, I am going to give you an overview of what you need
but the best way is too look at how other apps do it.
I'll do my best to write something usable, but since i can't
compile it i can't be sure that it is ok.
Lets use as an example an application named BONGO.
(this is how i prefer to do it, and it works well
see the gnome-print (1-4 branch))
In configure.in add :
BONGO_CFLAGS="$($GNOME_CONFIG --cflags gnome gtkhtml)"
BONGO_LIBS="$($GNOME_CONFIG --libs gnome gtkhtml)"
AC_SUBST(BONGO_CFLAGS)
AC_SUBST(BONGO_LIBS)
In src/Makefile.am add :
INCLUDES = \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
$(BONGO_CFLAGS)
bongo_LDADD = \
$(INTLLIBS) \
$(BONGO_LIBS)
I think that's it, but it is better to base your app
structure on someone elses app.
regards,
Chema
>
> _______________________________________________
> gnome-devel-list mailing list
> gnome-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]