2006-10-30 James Livingston <doclivingston@gmail.com>
[rhythmbox.git] / shell / Makefile.am
blob4683bb19d98f88203031a2b5a7d17fa410d5289f
1 ## arch-tag: Automake rules for main Rhythmbox shell
3 BUILT_SOURCES = 
4 CLEANFILES =
5 EXTRA_DIST =
7 AUTHORS.tab : $(top_srcdir)/AUTHORS
8         sed -e 's/^/"/' -e 's/$$/",/' < $(top_srcdir)/AUTHORS > $@.tmp
9         mv $@.tmp $@
11 MAINTAINERS.tab : $(top_srcdir)/MAINTAINERS
12         sed -e 's/^/"/' -e 's/$$/",/' < $(top_srcdir)/MAINTAINERS > $@.tmp
13         mv $@.tmp $@
15 MAINTAINERS.old.tab : $(top_srcdir)/MAINTAINERS.old
16         sed -e 's/^/"/' -e 's/$$/",/' < $(top_srcdir)/MAINTAINERS.old > $@.tmp
17         mv $@.tmp $@
19 DOCUMENTERS.tab : $(top_srcdir)/DOCUMENTERS
20         sed -e 's/^/"/' -e 's/$$/",/' < $(top_srcdir)/DOCUMENTERS > $@.tmp
21         mv $@.tmp $@
23 tab_files = AUTHORS.tab MAINTAINERS.tab MAINTAINERS.old.tab DOCUMENTERS.tab
25 bin_PROGRAMS = rhythmbox
26 rhythmbox_SOURCES = main.c
27 noinst_LTLIBRARIES = librbshell.la
29 INCLUDES =                                              \
30         -DGNOMELOCALEDIR=\""$(datadir)/locale"\"        \
31         -DG_LOG_DOMAIN=\"Rhythmbox\"                    \
32         -I$(top_srcdir)                                 \
33         -I$(top_srcdir)/lib                             \
34         -I$(top_srcdir)/metadata                        \
35         -I$(top_srcdir)/rhythmdb                        \
36         -I$(top_srcdir)/widgets                         \
37         -I$(top_srcdir)/sources                         \
38         -I$(top_srcdir)/podcast                         \
39         -I$(top_builddir)/lib                           \
40         -I$(top_srcdir)/plugins                         \
41         -I$(top_srcdir)/backends                        \
42         -DPIXMAP_DIR=\""$(datadir)/pixmaps"\"           \
43         -DSHARE_DIR=\"$(pkgdatadir)\"                   \
44         -DDATADIR=\""$(datadir)"\"                      \
45         $(WARN_CFLAGS)                                  \
46         $(GDA_CFLAGS)                                   \
47         $(RHYTHMBOX_CFLAGS)                             \
48         $(TOTEM_PLPARSER_CFLAGS)                        \
49         $(DBUS_CFLAGS)                                  \
50         $(LIBNAUTILUS_BURN_CFLAGS)                      \
51         -D_XOPEN_SOURCE -D__EXTENSIONS__ -D_BSD_SOURCE
53 librbshell_la_SOURCES =                                 \
54         rb-shell.c                                      \
55         rb-shell.h                                      \
56         rb-shell-player.c                               \
57         rb-shell-player.h                               \
58         rb-source-header.c                              \
59         rb-source-header.h                              \
60         rb-statusbar.c                                  \
61         rb-statusbar.h                                  \
62         rb-shell-preferences.c                          \
63         rb-shell-preferences.h                          \
64         rb-shell-clipboard.c                            \
65         rb-shell-clipboard.h                            \
66         rb-playlist-manager.c                           \
67         rb-playlist-manager.h                           \
68         rb-removable-media-manager.c                    \
69         rb-removable-media-manager.h                    \
70         rb-history.c                                    \
71         rb-history.h                                    \
72         rb-play-order.c                                 \
73         rb-play-order.h                                 \
74         rb-play-order-linear.c                          \
75         rb-play-order-linear.h                          \
76         rb-play-order-linear-loop.c                     \
77         rb-play-order-linear-loop.h                     \
78         rb-play-order-queue.c                           \
79         rb-play-order-queue.h                           \
80         rb-play-order-shuffle.c                         \
81         rb-play-order-shuffle.h                         \
82         rb-play-order-random.c                          \
83         rb-play-order-random.h                          \
84         rb-play-order-random-equal-weights.c            \
85         rb-play-order-random-equal-weights.h            \
86         rb-play-order-random-by-age.c                   \
87         rb-play-order-random-by-age.h                   \
88         rb-play-order-random-by-age-and-rating.c        \
89         rb-play-order-random-by-age-and-rating.h        \
90         rb-play-order-random-by-rating.c                \
91         rb-play-order-random-by-rating.h                \
92         rb-tray-icon.c                                  \
93         rb-tray-icon.h                          
95 rhythmbox_LDADD =                                       \
96         librbshell.la                                   \
97         $(top_builddir)/sources/libsources.la           \
98         $(top_builddir)/sources/libsourcesimpl.la       \
99         $(top_builddir)/podcast/librbpodcast.la         \
100         $(top_builddir)/metadata/librbmetadata.la       \
101         $(top_builddir)/widgets/librbwidgets.la         \
102         $(top_builddir)/rhythmdb/librhythmdb.la         \
103         $(top_builddir)/backends/librbbackends.la       \
104         $(top_builddir)/plugins/librbplugins.la         \
105         $(top_builddir)/lib/librb.la
107 if USE_DAAP
108 INCLUDES += -I$(top_srcdir)/daapsharing
110 rhythmbox_LDADD += $(MDNS_LIBS) \
111                    $(top_builddir)/daapsharing/libdaapsharing.la
112 if USE_GNOME_KEYRING
113 rhythmbox_LDADD += $(GNOME_KEYRING_LIBS)
114 endif
115 endif
117 if USE_LIBSOUP
118 rhythmbox_LDADD += $(SOUP_LIBS)
119 INCLUDES += $(SOUP_CFLAGS)
120 endif
122 if USE_NOTIFY
123 rhythmbox_LDADD += $(NOTIFY_LIBS)
124 INCLUDES += $(NOTIFY_CFLAGS)
125 endif
127 if ENABLE_PYTHON
128 rhythmbox_LDADD += $(PYTHON_LIBS) $(top_builddir)/bindings/python/rb.la
129 endif
131 if ENABLE_TRACK_TRANSFER
132 rhythmbox_LDADD += $(GNOME_MEDIA_PROFILES_LIBS)
133 INCLUDES += $(GNOME_MEDIA_PROFILES_CFLAGS)
134 endif
137 if WITH_DBUS
138 rb-shell-glue.h: rb-shell.xml Makefile
139         $(LIBTOOL) --mode=execute $(DBUS_GLIB_BIN)/dbus-binding-tool --prefix=rb_shell --mode=glib-server --output=$@ $<
140 rb-shell-player-glue.h: rb-shell-player.xml Makefile
141         $(LIBTOOL) --mode=execute $(DBUS_GLIB_BIN)/dbus-binding-tool --prefix=rb_shell_player --mode=glib-server --output=$@ $<
142 rb-playlist-manager-glue.h: rb-playlist-manager.xml Makefile
143         $(LIBTOOL) --mode=execute $(DBUS_GLIB_BIN)/dbus-binding-tool --prefix=rb_playlist_manager --mode=glib-server --output=$@ $<
144 rb-shell-binding.h: rb-shell.xml Makefile
145         $(LIBTOOL) --mode=execute $(DBUS_GLIB_BIN)/dbus-binding-tool --prefix=rb_shell --mode=glib-client --output=$@ $<
146 rb-shell-player-binding.h: rb-shell-player.xml Makefile
147         $(LIBTOOL) --mode=execute $(DBUS_GLIB_BIN)/dbus-binding-tool --prefix=rb_shell --mode=glib-client --output=$@ $<
149 BUILT_SOURCES += rb-shell-glue.h rb-shell-binding.h rb-shell-player-glue.h rb-shell-player-binding.h rb-playlist-manager-glue.h
150 EXTRA_DIST += rb-shell.xml rb-shell-player.xml rb-playlist-manager.xml
152 rhythmbox_LDADD += $(DBUS_LIBS)
153 endif
154 if WITH_OLD_DBUS
155 rhythmbox_LDADD += $(DBUS_LIBS)
156 endif
158 rhythmbox_LDADD += \
159         $(GDA_LIBS)                                     \
160         $(TOTEM_PLPARSER_LIBS)                          \
161         $(HAL_LIBS)                                     \
162         $(LIBNAUTILUS_BURN_LIBS)                        \
163         $(RHYTHMBOX_LIBS)
165 rhythmbox_LDFLAGS = -export-dynamic -no-undefined
168 BUILT_SOURCES += $(tab_files)
170 CLEANFILES += $(BUILT_SOURCES)