2006-10-12 12:47:17 +02:00
|
|
|
INCLUDES = \
|
|
|
|
$(PYTHON_INCLUDES) \
|
|
|
|
$(PYGTK_CFLAGS) \
|
2007-01-07 07:20:42 +01:00
|
|
|
$(PYCAIRO_CFLAGS) \
|
2006-10-12 12:47:17 +02:00
|
|
|
$(LIB_CFLAGS) \
|
|
|
|
-I $(top_srcdir)/lib/src
|
|
|
|
|
|
|
|
pkgpyexecdir = $(pythondir)
|
|
|
|
|
|
|
|
pkgpyexec_LTLIBRARIES = _sugar.la
|
|
|
|
|
|
|
|
_sugar_la_LDFLAGS = -module -avoid-version -R$(MOZILLA_HOME)
|
|
|
|
_sugar_la_LIBADD = \
|
|
|
|
$(LIB_LIBS) \
|
2007-01-07 07:20:42 +01:00
|
|
|
$(PYCAIRO_LIBS) \
|
2006-10-12 12:47:17 +02:00
|
|
|
$(top_builddir)/lib/src/libsugarprivate.la
|
|
|
|
|
|
|
|
_sugar_la_SOURCES = \
|
|
|
|
_sugarmodule.c
|
|
|
|
|
|
|
|
nodist__sugar_la_SOURCES = _sugar.c
|
|
|
|
|
|
|
|
_sugar.c: _sugar.defs _sugar.override
|
|
|
|
|
|
|
|
CLEANFILES = _sugar.c
|
|
|
|
EXTRA_DIST = _sugar.override _sugar.defs
|
|
|
|
|
|
|
|
.defs.c:
|
|
|
|
(cd $(srcdir)\
|
|
|
|
&& $(PYGTK_CODEGEN) \
|
2006-10-16 18:43:04 +02:00
|
|
|
--register $(PYGTK_DEFSDIR)/gdk-types.defs \
|
2006-10-12 15:49:11 +02:00
|
|
|
--register $(PYGTK_DEFSDIR)/gtk-types.defs \
|
2006-10-12 12:47:17 +02:00
|
|
|
--register $(GNOMEPYTHONEXTRAS_DEFSDIR)/gtkmozembed.defs \
|
|
|
|
--override $*.override \
|
|
|
|
--prefix py$* $*.defs) > gen-$*.c \
|
|
|
|
&& cp gen-$*.c $*.c \
|
|
|
|
&& rm -f gen-$*.c
|