2006-12-12 James Livingston <doclivingston@gmail.com>
[rhythmbox.git] / plugins / audioscrobbler / Makefile.am
blob38ca9a2efb96cf3aedfd17881d11740ae70c20e1
1 NULL =
3 plugindir = $(PLUGINDIR)/audioscrobbler
4 plugin_LTLIBRARIES = libaudioscrobbler.la
6 libaudioscrobbler_la_SOURCES = \
7         rb-audioscrobbler-plugin.c                      \
8         rb-audioscrobbler.c                             \
9         rb-audioscrobbler.h                             \
10         rb-lastfm-source.c                              \
11         rb-lastfm-source.h
13 if USE_GSTREAMER_0_10
14 libaudioscrobbler_la_SOURCES += rb-lastfm-gst-src.c
15 endif
17 libaudioscrobbler_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS)
18 libaudioscrobbler_la_LIBADD =                           \
19         $(top_builddir)/lib/librb.la                    \
20         $(top_builddir)/sources/libsources.la           \
21         $(SOUP_LIBS)
23 INCLUDES =                                              \
24         -DGNOMELOCALEDIR=\""$(datadir)/locale"\"        \
25         -DG_LOG_DOMAIN=\"Rhythmbox\"                    \
26         -I$(top_srcdir)                                 \
27         -I$(top_srcdir)/lib                             \
28         -I$(top_srcdir)/metadata                        \
29         -I$(top_srcdir)/player                          \
30         -I$(top_srcdir)/rhythmdb                        \
31         -I$(top_srcdir)/widgets                         \
32         -I$(top_srcdir)/sources                         \
33         -I$(top_srcdir)/iradio                          \
34         -I$(top_srcdir)/podcast                         \
35         -I$(top_srcdir)/plugins                         \
36         -I$(top_srcdir)/shell                           \
37         -DPIXMAP_DIR=\""$(datadir)/pixmaps"\"           \
38         -DSHARE_DIR=\"$(pkgdatadir)\"                   \
39         -DDATADIR=\""$(datadir)"\"                      \
40         $(SOUP_CFLAGS)                                  \
41         $(RHYTHMBOX_CFLAGS)                             \
42         $(WARN_CFLAGS)                                  \
43         -D_XOPEN_SOURCE -D_BSD_SOURCE
45 plugin_in_files = audioscrobbler.rb-plugin.desktop.in
47 %.rb-plugin: %.rb-plugin.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache
49 BUILT_SOURCES =                                                 \
50         $(plugin_in_files:.rb-plugin.desktop.in=.rb-plugin)     \
51         $(NULL)
53 plugin_DATA =                                   \
54         $(BUILT_SOURCES)                        \
55         $(top_srcdir)/plugins/audioscrobbler/audioscrobbler-ui.xml      \
56         $(NULL)
58 EXTRA_DIST =                                    \
59         $(plugin_in_files)                      \
60         $(top_srcdir)/plugins/audioscrobbler/as-powered.png             \
61         $(NULL)
63 CLEANFILES =                    \
64         $(BUILT_SOURCES)        \
65         $(NULL)
67 DISTCLEANFILES =                \
68         $(BUILT_SOURCES)        \
69         $(NULL)