plugindir = $(PLUGINDIR)/ipod
plugindatadir = $(PLUGINDATADIR)/ipod
plugin_LTLIBRARIES = libipod.la

libipod_la_SOURCES = \
	rb-ipod-db.c				\
	rb-ipod-db.h				\
	rb-ipod-helpers.c			\
	rb-ipod-helpers.h			\
	rb-ipod-static-playlist-source.c	\
	rb-ipod-static-playlist-source.h	\
	rb-ipod-source.c			\
	rb-ipod-source.h			\
	rb-ipod-plugin.c

libipod_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS)
libipod_la_LIBTOOLFLAGS = --tag=disable-static
libipod_la_LIBADD = 					\
	$(top_builddir)/shell/librhythmbox-core.la	\
	$(IPOD_LIBS)

INCLUDES = 						\
        -DGNOMELOCALEDIR=\""$(datadir)/locale"\"        \
	-DG_LOG_DOMAIN=\"Rhythmbox\"		 	\
	-I$(top_srcdir) 				\
	-I$(top_srcdir)/lib                             \
	-I$(top_srcdir)/lib/libmediaplayerid            \
	-I$(top_srcdir)/metadata                       	\
	-I$(top_srcdir)/rhythmdb                       	\
	-I$(top_srcdir)/widgets                    	\
	-I$(top_srcdir)/sources                    	\
	-I$(top_srcdir)/sources/sync                   	\
	-I$(top_srcdir)/podcast                    	\
	-I$(top_srcdir)/shell				\
	-I$(top_srcdir)/plugins				\
	-DPIXMAP_DIR=\""$(datadir)/pixmaps"\"		\
	-DSHARE_DIR=\"$(pkgdatadir)\"                   \
	-DDATADIR=\""$(datadir)"\"			\
	$(RHYTHMBOX_CFLAGS)				\
	$(IPOD_CFLAGS)					\
	-D_BSD_SOURCE

plugin_in_files = ipod.plugin.in

%.plugin: %.plugin.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache

plugin_DATA = $(plugin_in_files:.plugin.in=.plugin)

gtkbuilderdir = $(plugindatadir)
gtkbuilder_DATA = 					\
	ipod-info.ui	 				\
	ipod-init.ui					\
	ipod-toolbar.ui

EXTRA_DIST = $(uixml_DATA) $(plugin_in_files) $(gtkbuilder_DATA)

CLEANFILES = $(plugin_DATA)
DISTCLEANFILES = $(plugin_DATA)
