summaryrefslogtreecommitdiffstats
path: root/util/gconf/Makefile.am
blob: 5c4b0ea621ae21010ee0daf8e93ad152ec1c9e42 (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
INCLUDES = $(PYTHON_INCLUDES) $(PYGTK_CFLAGS)

defsdir = $(datadir)/pygtk/2.0/defs

if IBUS_BUILD_PYGCONF
# defs_DATA = gconf.defs
endif

common_ldflags = -module -avoid-version $(PYTHON_LDFLAGS)

# pkgpythondir = $(pyexecdir)/gtk-2.0
# pkgpyexecdir = $(pyexecdir)/gtk-2.0

# gconf binding

if IBUS_BUILD_PYGCONF
pkgpyexec_LTLIBRARIES = gconf.la
endif
gconf_la_CFLAGS = $(GCONF_CFLAGS)
gconf_la_LDFLAGS = $(common_ldflags) -export-symbols-regex initgconf
gconf_la_LIBADD = $(PYGTK_LIBS) $(GCONF_LIBS) $(PYTHON_LIBS)
gconf_la_SOURCES = \
	gconfmodule.c \
	gconf-fixes.c \
	gconf-fixes.h \
	gconf-types.c \
	gconf-types.h
nodist_gconf_la_SOURCES = gconf.c
CLEANFILES = gconf.c
EXTRA_DIST = gconf.defs gconf.override  
gconf.c: gconf.defs gconf.override gconf-arg-types.py

argtypesdir = $(datadir)/pygtk/2.0/argtypes

if IBUS_BUILD_PYGCONF
# argtypes_PYTHON = gconf-arg-types.py
endif

.defs.c:
	(cd $(srcdir) \
	 && $(PYGTK_CODEGEN) \
	    --py_ssize_t-clean \
	    --load-types gconf-arg-types.py \
	    --override $*.override \
	    --prefix py$* $*.defs) > gen-$*.c \
	&& cp gen-$*.c $*.c \
	&& rm -f gen-$*.c


EXTRA_DIST += wscript