aboutsummaryrefslogtreecommitdiffstats
path: root/python/pyempathy/Makefile.am
blob: a7efea3671954e3c9b3ab3af2f0d5edbcb5be6fc (plain) (blame)
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
PYDEFS=`pkg-config --variable=defsdir pygtk-2.0`

AM_CPPFLAGS =                                           \
    -I.                                             \
    -I$(top_srcdir)/libempathy          \
    -I$(top_srcdir)                                 \
    -DDATADIR=\""$(datadir)"\"                  \
    $(PYTHON_BINDING_CFLAGS)            \
    $(PYTHON_INCLUDES)              \
    $(WARN_CFLAGS)

BUILT_SOURCES =                     \
    pyempathy.c                 

pyempathydir = $(pyexecdir)
pyempathy_LTLIBRARIES = empathy.la

empathy_la_SOURCES =                    \
    pyempathymodule.c               \
    pyempathy.c

empathy_la_LIBADD =                 \
    $(PYTHON_BINDING_LIBS)              \
    $(top_builddir)/libempathy/libempathy.la

empathy_la_LDFLAGS =                    \
    -module -avoid-version

pyempathy.c: pyempathy.override pyempathy.defs
    $(PYGOBJECTCODEGEN)             \
        --prefix empathy            \
        --register $(PYDEFS)/gdk-types.defs     \
        --register $(PYDEFS)/gtk-types.defs     \
        --override pyempathy.override       \
        pyempathy.defs > $@ 

EXTRA_DIST =            \
    pyempathy.override  \
    pyempathy.defs

CLEANFILES = $(BUILT_SOURCES)