1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# require automake-1.9
AUTOMAKE_OPTIONS=1.9
SUBDIRS = demo
if ENABLE_DOCS
SUBDIRS += docs
endif
swfdecdir = $(pyexecdir)/swfdec
swfdec_PYTHON = __init__.py
swfdec_LTLIBRARIES =
CLEANFILES =
swfdec_LTLIBRARIES += _swfdec.la
INCLUDES = $(PYTHON_INCLUDES)
EXTRA_DIST = swfdec.defs swfdec.override swfdecgtk.defs swfdecgtk.override
# swfdec module
_swfdec_la_LDFLAGS = -module -avoid-version -export-symbols-regex init_swfdec
#_swfdec_la_LDFLAGS = -module -avoid-version
_swfdec_la_CFLAGS = $(PYSWFDEC_CFLAGS)
_swfdec_la_LIBADD = $(PYSWFDEC_LIBS)
_swfdec_la_SOURCES = swfdecmodule.c swfdec-private.h
nodist__swfdec_la_SOURCES = swfdec.c
swfdec.c: swfdec.defs swfdec.override
CLEANFILES += swfdec.c
# swfdec.ui module
if BUILD_SWFDECGTK
swfdec_LTLIBRARIES += ui.la
ui_la_LDFLAGS = -module -avoid-version -export-symbols-regex initui
ui_la_CFLAGS = $(PYSWFDECGTK_CFLAGS)
ui_la_LIBADD = $(PYSWFDECGTK_LIBS)
ui_la_SOURCES = swfdecgtkmodule.c
nodist_ui_la_SOURCES = swfdecgtk.c
swfdecgtk.c: swfdecgtk.defs swfdecgtk.override
CLEANFILES += swfdecgtk.c
endif
.defs.c:
(cd $(srcdir)\
&& $(PYTHON) $(CODEGEN) \
--override $*.override \
--register @PYGTK_DATADIR@/pygtk/2.0/defs/gdk-types.defs \
--register @PYGTK_DATADIR@/pygtk/2.0/defs/pango-types.defs \
--register @PYGTK_DATADIR@/pygtk/2.0/defs/gtk-types.defs \
--prefix py$* $*.defs) > gen-$*.c \
&& cp gen-$*.c $*.c \
&& rm -f gen-$*.c
|