For clarity and to simplify the makefile logic a bit, you might
consider putting everything for the gtk lib into a separate subdir
instead of lumped into src/ with the main lib. That way the top-level
Makefile.am can use HAVE_GTK to control whether the whole gtk dir is
used or not instead of being interspersed with the other lib in
src/Makefile.am. So Makefile.am does something like:

  if HAVE_GTK
  gtk_src = gtk
  endif
  SUBDIRS = src $(gtk_src) doc libltdl

and gtk/Makefile.am, which gets all the gtk parts of current
src/Makefile.am, gets

  AM_CPPFLAGS = -I$(top_srcdir)/src

and use ../src/libcanberra.la to link to that lib. The two libs become
more compartmentalized (configure already proves they have independent
interface versioning) and src/Makefile.am and gtk/Makefile.am become
specific to just one lib each.

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks

_______________________________________________
libcanberra-discuss mailing list
[email protected]
https://tango.0pointer.de/mailman/listinfo/libcanberra-discuss

Reply via email to