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

AM_CPPFLAGS =                                           \
    -I.                                             \
    -I$(top_srcdir)/libempathy          \
    -I$(top_srcdir)                                 \
    -DDATADIR=\""$(datadir)"\"                  \
    $(PYTHON_BINDING_CFLAGS)            \
    `python-config --cflags`            \
    $(WARN_CFLAGS)

BUILT_SOURCES =                     \
    pyempathy.c                 

pyempathydir = $(prefix)/lib/`pyversions -d`/site-packages
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 =                    \
    `python-config --libs`              \
    -module -avoid-version

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

CLEANFILES = $(BUILT_SOURCES)