Mercurial > audlegacy
annotate src/audacious/Makefile @ 3598:9fd97ab30fdc trunk
make audacious be re-linked if a dependent library has been rebuilt.
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Sun, 23 Sep 2007 01:34:10 +0900 |
parents | 85a49369c95f |
children | 24ae9b303a9d |
rev | line source |
---|---|
3574
9ffd5a2c5f35
In this special case, we really need extra.mk at the top of the file.
Jonathan Schleifer <js@h3c.de>
parents:
3573
diff
changeset
|
1 include ../../extra.mk |
9ffd5a2c5f35
In this special case, we really need extra.mk at the top of the file.
Jonathan Schleifer <js@h3c.de>
parents:
3573
diff
changeset
|
2 |
3572 | 3 SUBDIRS = ${INTL_OBJECTIVE} |
2313 | 4 |
3535 | 5 PROG = audacious |
3572 | 6 SRCS = auddrct.c \ |
7 build_stamp.c \ | |
8 configdb.c \ | |
9 custom_uri.c \ | |
10 discovery.c \ | |
11 dnd.c \ | |
12 dock.c \ | |
13 effect.c \ | |
14 eventqueue.c \ | |
15 fft.c \ | |
16 flow.c \ | |
17 formatter.c \ | |
18 general.c \ | |
19 glade.c \ | |
20 hints.c \ | |
21 hook.c \ | |
22 iir.c \ | |
23 iir_cfs.c \ | |
24 iir_fpu.c \ | |
25 input.c \ | |
26 logger.c \ | |
27 main.c \ | |
28 memorypool.c \ | |
29 mime.c \ | |
30 output.c \ | |
31 pixbuf_effects.c \ | |
32 playback.c \ | |
33 playback_evlisteners.c \ | |
34 playlist.c \ | |
35 playlist_container.c \ | |
36 playlist_evlisteners.c \ | |
37 pluginenum.c \ | |
38 rcfile.c \ | |
39 signals.c \ | |
40 strings.c \ | |
41 tuple.c \ | |
42 tuple_formatter.c \ | |
43 tuple_compiler.c \ | |
44 skin.c \ | |
45 ui_about.c \ | |
46 ui_albumart.c \ | |
47 ui_credits.c \ | |
48 ui_equalizer.c \ | |
49 ui_fileinfo.c \ | |
50 ui_fileinfopopup.c \ | |
51 ui_fileopener.c \ | |
52 ui_jumptotrack.c \ | |
53 ui_lastfm.c \ | |
54 ui_main.c \ | |
55 ui_main_evlisteners.c \ | |
56 ui_manager.c \ | |
57 ui_playlist.c \ | |
58 ui_playlist_manager.c \ | |
59 ui_preferences.c \ | |
60 ui_skinned_cursor.c \ | |
61 ui_skinned_window.c \ | |
62 ui_skinned_button.c \ | |
63 ui_skinned_textbox.c \ | |
64 ui_skinned_number.c \ | |
65 ui_skinned_horizontal_slider.c \ | |
66 ui_vis.c \ | |
67 ui_svis.c \ | |
68 ui_skinned_menurow.c \ | |
69 ui_skinned_playstatus.c \ | |
70 ui_skinned_monostereo.c \ | |
71 ui_skinned_equalizer_slider.c \ | |
72 ui_skinned_equalizer_graph.c \ | |
73 ui_skinned_playlist_slider.c \ | |
74 ui_skinned_playlist.c \ | |
75 ui_skinselector.c \ | |
76 ui_urlopener.c \ | |
77 util.c \ | |
78 vfs.c \ | |
79 vfs_buffer.c \ | |
80 vfs_buffered_file.c \ | |
81 vfs_common.c \ | |
82 visualization.c \ | |
83 volumecontrol.c \ | |
84 sync-menu.c \ | |
85 xconvert.c | |
2313 | 86 |
3574
9ffd5a2c5f35
In this special case, we really need extra.mk at the top of the file.
Jonathan Schleifer <js@h3c.de>
parents:
3573
diff
changeset
|
87 ifdef USE_DBUS |
9ffd5a2c5f35
In this special case, we really need extra.mk at the top of the file.
Jonathan Schleifer <js@h3c.de>
parents:
3573
diff
changeset
|
88 SRCS += dbus.c |
9ffd5a2c5f35
In this special case, we really need extra.mk at the top of the file.
Jonathan Schleifer <js@h3c.de>
parents:
3573
diff
changeset
|
89 endif |
9ffd5a2c5f35
In this special case, we really need extra.mk at the top of the file.
Jonathan Schleifer <js@h3c.de>
parents:
3573
diff
changeset
|
90 |
3572 | 91 INCLUDES = auddrct.h \ |
92 configdb.h \ | |
93 custom_uri.h \ | |
94 dbus.h \ | |
95 discovery.h \ | |
96 dbus-service.h \ | |
97 eventqueue.h \ | |
98 flow.h \ | |
99 formatter.h \ | |
100 rcfile.h \ | |
101 i18n.h \ | |
102 input.h \ | |
103 hook.h \ | |
104 main.h \ | |
105 mime.h \ | |
106 output.h \ | |
107 playback.h \ | |
108 playlist.h \ | |
109 playlist_container.h \ | |
110 plugin.h \ | |
111 strings.h \ | |
112 tuple.h \ | |
113 tuple_formatter.h \ | |
114 tuple_compiler.h \ | |
115 ui_fileinfopopup.h \ | |
116 ui_lastfm.h \ | |
117 ui_plugin_menu.h \ | |
118 ui_preferences.h \ | |
119 util.h \ | |
120 vfs.h \ | |
121 vfs_buffer.h \ | |
122 vfs_buffered_file.h \ | |
123 xconvert.h | |
124 | |
125 DATA = glade/fileinfo.glade \ | |
126 glade/prefswin.glade \ | |
127 images/about-logo.png \ | |
128 images/appearance.png \ | |
129 images/audacious_eq.xpm \ | |
130 images/audacious_player.xpm \ | |
131 images/audacious_playlist.xpm \ | |
132 images/audio.png \ | |
133 images/connectivity.png \ | |
134 images/eq.png \ | |
135 images/info.png \ | |
136 images/menu_invert_playlist.png \ | |
137 images/menu_queue_toggle.png \ | |
138 images/menu_randomize_playlist.png \ | |
139 images/menu_remove_dups.png \ | |
140 images/menu_remove_unavail.png \ | |
141 images/menu_select_all.png \ | |
142 images/menu_select_invert.png \ | |
143 images/menu_select_none.png \ | |
144 images/menu_sort_artist.png \ | |
145 images/menu_sort_filename.png \ | |
146 images/menu_sort_pathfile.png \ | |
147 images/menu_sort_title.png \ | |
148 images/mouse.png \ | |
149 images/pl.png \ | |
150 images/play.png \ | |
151 images/playlist.png \ | |
152 images/plugins.png \ | |
153 ui/equalizer.ui \ | |
154 ui/mainwin.ui \ | |
155 ui/playlist.ui \ | |
156 ui/carbon-menubar.ui | |
2785 | 157 |
3591
74d1f0c78456
Fix generation of build_stamp.c.
Jonathan Schleifer <js@h3c.de>
parents:
3586
diff
changeset
|
158 CLEAN = build_stamp.c |
74d1f0c78456
Fix generation of build_stamp.c.
Jonathan Schleifer <js@h3c.de>
parents:
3586
diff
changeset
|
159 |
3598
9fd97ab30fdc
make audacious be re-linked if a dependent library has been rebuilt.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3593
diff
changeset
|
160 LIB_DEPS += ../libguess/libguess.a |
9fd97ab30fdc
make audacious be re-linked if a dependent library has been rebuilt.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3593
diff
changeset
|
161 |
3535 | 162 include ../../buildsys.mk |
3573
ae14a38d2553
AUDLDFLAGS isn't substitued, therefore remove it.
Jonathan Schleifer <js@h3c.de>
parents:
3572
diff
changeset
|
163 |
ae14a38d2553
AUDLDFLAGS isn't substitued, therefore remove it.
Jonathan Schleifer <js@h3c.de>
parents:
3572
diff
changeset
|
164 LDFLAGS += ${EXPORTDYN} |
3572 | 165 LIBS += ${LDADD} |
3434 | 166 |
3578
d07343b134a1
I hope i fixed the libaudclient & dbus problem
Calin Crisan ccrisan@gmail.com
parents:
3574
diff
changeset
|
167 ifdef USE_DBUS |
3536
66c6a8a79034
Fix depend-hook call.
William Pitcock <nenolod@atheme.org>
parents:
3535
diff
changeset
|
168 CPPFLAGS += -I../libaudclient |
66c6a8a79034
Fix depend-hook call.
William Pitcock <nenolod@atheme.org>
parents:
3535
diff
changeset
|
169 DBUS_BINDINGS = dbus-server-bindings.h dbus-client-bindings.h |
66c6a8a79034
Fix depend-hook call.
William Pitcock <nenolod@atheme.org>
parents:
3535
diff
changeset
|
170 LIBS += -L../libaudclient -laudclient |
66c6a8a79034
Fix depend-hook call.
William Pitcock <nenolod@atheme.org>
parents:
3535
diff
changeset
|
171 endif |
66c6a8a79034
Fix depend-hook call.
William Pitcock <nenolod@atheme.org>
parents:
3535
diff
changeset
|
172 |
3593
85a49369c95f
Actually, the last patch was wrong. depend has to depend on ${SRCS}.
Jonathan Schleifer <js@h3c.de>
parents:
3591
diff
changeset
|
173 pre-depend: ${DBUS_BINDINGS} |
3535 | 174 |
3572 | 175 CPPFLAGS += -DHAVE_CONFIG_H \ |
176 ${MOWGLI_CFLAGS} \ | |
177 ${GTK_CFLAGS} \ | |
178 ${LIBGLADE_CFLAGS} \ | |
179 ${BEEP_DEFINES} \ | |
180 ${ARCH_DEFINES} \ | |
181 ${DBUS_CFLAGS} \ | |
182 ${samplerate_CFLAGS} \ | |
183 ${REGEX_CFLAGS} \ | |
184 ${LIBMCS_CFLAGS} \ | |
185 -D_AUDACIOUS_CORE \ | |
186 -I.. -I../.. \ | |
187 -I./intl | |
3535 | 188 |
3572 | 189 LIBS += ${LIBINTL} \ |
190 ${samplerate_LIBS} \ | |
191 ../libguess/libguess.a \ | |
192 ${GTK_LIBS} \ | |
193 ${DBUS_LIBS} \ | |
194 ${MOWGLI_LIBS} \ | |
195 ${LIBMCS_LIBS} \ | |
196 ${LIBGLADE_LIBS} \ | |
197 ${REGEX_LIBS} | |
3535 | 198 |
2905
084d367e3577
separate build_stamp.c from depend-prehook to avoid excessive stamping.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
2842
diff
changeset
|
199 build_stamp.c: |
2837
b6b8fe38e1e3
Fix handling of buildstamp rule.
William Pitcock <nenolod@atheme.org>
parents:
2836
diff
changeset
|
200 if [ -d ../../.hg ]; then \ |
b6b8fe38e1e3
Fix handling of buildstamp rule.
William Pitcock <nenolod@atheme.org>
parents:
2836
diff
changeset
|
201 revh=`hg tip --template 'const char *svn_stamp = "#rev#:#node|short#";\n' 2>/dev/null`; \ |
2836
7035e35d4067
Remove build_stamp.c and generate it on demand.
William Pitcock <nenolod@atheme.org>
parents:
2785
diff
changeset
|
202 [ -z "$$revh" ] || echo "$$revh" > build_stamp.c; \ |
7035e35d4067
Remove build_stamp.c and generate it on demand.
William Pitcock <nenolod@atheme.org>
parents:
2785
diff
changeset
|
203 fi |
7035e35d4067
Remove build_stamp.c and generate it on demand.
William Pitcock <nenolod@atheme.org>
parents:
2785
diff
changeset
|
204 |
3572 | 205 DBUS_BINDINGS_SOURCES = objects.xml \ |
206 mpris_root.xml \ | |
207 mpris_tracklist.xml \ | |
208 mpris_player.xml | |
2708 | 209 |
2313 | 210 desktop_DATA = audacious.desktop |
3572 | 211 desktopdir = ${datadir}/applicationu |
2313 | 212 |
3572 | 213 dbus-server-bindings.h: ${DBUS_BINDINGS_SOURCES} |
214 ${DBUS_BINDING_TOOL} --mode=glib-server --prefix=audacious_rc objects.xml > $@ | |
215 ${DBUS_BINDING_TOOL} --mode=glib-server --prefix=mpris_root mpris_root.xml >> $@ | |
216 ${DBUS_BINDING_TOOL} --mode=glib-server --prefix=mpris_tracklist mpris_tracklist.xml >> $@ | |
217 ${DBUS_BINDING_TOOL} --mode=glib-server --prefix=mpris_player mpris_player.xml >> $@ | |
2694
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2691
diff
changeset
|
218 |
3572 | 219 dbus-client-bindings.h: ${DBUS_BINDINGS_SOURCES} |
220 ${DBUS_BINDING_TOOL} --mode=glib-client --prefix=audacious_rc objects.xml > $@ | |
2711
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
2709
diff
changeset
|
221 |
3572 | 222 OBJECTIVE_DATA = audacious.desktop:${datadir}/applications |