Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/Makefile.am
blob: 72ddb1b213c57b895e0a61ca7a3eeec02d322dc5 (plain)
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
SUBDIRS = activity bundle clipboard graphics objects presence datastore

sugardir = $(pythondir)/sugar
sugar_PYTHON =		\
	__init__.py	\
	env.py		\
	logger.py	\
        ltihooks.py	\
        network.py	\
	profile.py	\
	util.py		\
	wm.py

pkgpyexecdir = $(pythondir)/sugar

pkgpyexec_LTLIBRARIES = _sugarext.la _sugaruiext.la

_sugarext_la_CFLAGS = 			\
	$(LIB_CFLAGS)			\
	$(LIB_BINDINGS_CFLAGS)		\
	$(PYTHON_INCLUDES)		\
	-I$(top_srcdir)/lib

_sugarext_la_LDFLAGS = -module -avoid-version
_sugarext_la_LIBADD =				\
	$(LIB_BINDINGS_LIBS)			\
	$(top_builddir)/lib/libsugar.la

_sugarext_la_SOURCES = 		\
	_sugarextmodule.c

nodist__sugarext_la_SOURCES = _sugarext.c

_sugarext.c: _sugarext.defs _sugarext.override

_sugaruiext_la_CFLAGS = 		\
	$(LIBUI_CFLAGS)			\
	$(LIBUI_BINDINGS_CFLAGS)	\
	$(PYTHON_INCLUDES)		\
	-I$(top_srcdir)/lib/ui

_sugaruiext_la_LDFLAGS = -module -avoid-version
_sugaruiext_la_LIBADD =				\
	$(LIBUI_BINDINGS_LIBS)			\
	$(LIBUI_LIBS)				\
	$(top_builddir)/lib/ui/libsugarui.la

_sugaruiext_la_SOURCES = 		\
	_sugaruiextmodule.c

nodist__sugaruiext_la_SOURCES = _sugaruiext.c

_sugaruiext.c: _sugaruiext.defs _sugaruiext.override

CLEANFILES = 		\
	_sugarext.c	\
	_sugaruiext.c

EXTRA_DIST =			\
	_sugarext.override	\
	_sugarext.defs		\
	_sugaruiext.defs	\
	_sugaruiext.override

.defs.c:
	(cd $(srcdir)\
	 && $(PYGTK_CODEGEN) \
	    --register $(PYGTK_DEFSDIR)/gdk-types.defs \
	    --register $(PYGTK_DEFSDIR)/gtk-types.defs \
	    --override $*.override \
	    --prefix py$* $*.defs) > gen-$*.c \
	&& cp gen-$*.c $*.c \
	&& rm -f gen-$*.c