aboutsummaryrefslogblamecommitdiffstats
path: root/python/pyempathy/Makefile.am
blob: ef6faa0a74e4bf2b547a578917eb53e151589d19 (plain) (tree)
1
2
3
4
5
6
7
8

                                    




                                                         
                                                         


                                                         
                                                         

                                                         



                                                         
                           


                                                         


                                                         






                                                         


                                              
                                                                 
                                                         

                                                         

                                                         
 



                                 

                             
include $(top_srcdir)/tools/shave.mk

PYDEFS=`pkg-config --variable=defsdir pygtk-2.0`

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

BUILT_SOURCES =                     \
    pyempathy.c                 

pyempathydir = $(pyexecdir)
pyempathy_LTLIBRARIES = empathy.la

empathy_la_SOURCES =                    \
    pyempathymodule.c

nodist_empathy_la_SOURCES =             \
    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
    $(QUIET_GEN)$(PYGOBJECTCODEGEN)             \
        --prefix empathy            \
        --register $(PYDEFS)/gdk-types.defs     \
        --register $(PYDEFS)/gtk-types.defs     \
        --override $(srcdir)/pyempathy.override \
        $(srcdir)/pyempathy.defs > $@ 

EXTRA_DIST =            \
    pyempathy.override  \
    pyempathy.defs

CLEANFILES = $(BUILT_SOURCES)