INCLUDES = -I$(top_srcdir) $(PYTHON_INCLUDES) $(GTK_CFLAGS) \ $(GDK_IMLIB_CFLAGS) $(LIBGLADE_CFLAGS) $(GTKGL_CFLAGS) -Wall pygtkdir = $(pythondir)/gtk pygtk_PYTHON = __init__.py GTK.py GDK.py pygtkexecdir = $(pyexecdir)/gtk pygtkexec_LTLIBRARIES = _gtkmodule.la _gtkmodule_la_LDFLAGS = -module -avoid-version -export-symbols-regex init_gtk _gtkmodule_la_LIBADD = $(GTK_LIBS) _gtkmodule_la_SOURCES = \ pygtk.h \ pygtk-private.h \ gtkmodule.c \ gtkobject-support.c \ gtk-types.c \ pygtktreemodel.h \ pygtktreemodel.c \ gtk.c pkginclude_HEADERS = pygtk.h # chmod hack here is because automake guys decided distdir should be # read only for the next version :( $(srcdir)/gtk.c: $(srcdir)/gtk.defs $(srcdir)/gdk.defs \ $(srcdir)/gtk-extrafuncs.defs $(srcdir)/gtk.override -chmod a+w $(srcdir) cd $(srcdir) \ && $(PYTHON) ../codegen/codegen.py -o gtk.override -p pygtk gtk.defs > gen-gtk.c \ && cp gen-gtk.c gtk.c \ && rm -f gen-gtk.c $(srcdir)/libglade.c: $(srcdir)/libglade.defs $(srcdir)/libglade.override -chmod a+w $(srcdir) cd $(srcdir) \ && $(PYTHON) ../codegen/codegen.py -r gtk.defs -o libglade.override -p libglade libglade.defs > gen-libglade.c \ && cp gen-libglade.c libglade.c \ && rm -f gen-libglade.c $(srcdir)/gtkgl.c: $(srcdir)/gtkgl.defs $(srcdir)/gtkgl.override -chmod a+w $(srcdir) cd $(srcdir) \ && $(PYTHON) ../codegen/codegen.py -r gtk.defs -o gtkgl.override -p pygtkgl gtkgl.defs > gen-gtkgl.c \ && cp gen-gtkgl.c gtkgl.c \ && rm -f gen-gtkgl.c # a hack so that gtk.c is not included in the final package. dist-hook: -rm -f $(distdir)/gtk.c $(distdir)/libglade.c $(distdir)/gtkgl.c EXTRA_DIST = gtk.defs gtk-extrafuncs.defs gdk.defs gtk.override \ libglade.defs libglade.override gtkgl.defs gtkgl.override