Mercurial > audlegacy
annotate src/audacious/Makefile @ 4026:17bf734f8187
avoid crash when audacious is launched with -p option.
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Wed, 28 Nov 2007 06:01:28 +0900 |
parents | 8d8699eb659d |
children | 5f9227fe09e9 |
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 |
3641
12500701b6dd
Update buildsys (adds ${PROG_SUFFIX}).
Jonathan Schleifer <js@h3c.de>
parents:
3599
diff
changeset
|
5 PROG = audacious${PROG_SUFFIX} |
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 hints.c \ | |
20 hook.c \ | |
21 iir.c \ | |
22 iir_cfs.c \ | |
23 iir_fpu.c \ | |
24 input.c \ | |
25 logger.c \ | |
26 main.c \ | |
27 mime.c \ | |
28 output.c \ | |
29 pixbuf_effects.c \ | |
30 playback.c \ | |
31 playback_evlisteners.c \ | |
32 playlist.c \ | |
33 playlist_container.c \ | |
34 playlist_evlisteners.c \ | |
35 pluginenum.c \ | |
36 rcfile.c \ | |
37 signals.c \ | |
38 strings.c \ | |
39 tuple.c \ | |
40 tuple_formatter.c \ | |
41 tuple_compiler.c \ | |
42 skin.c \ | |
43 ui_about.c \ | |
44 ui_albumart.c \ | |
45 ui_credits.c \ | |
46 ui_equalizer.c \ | |
47 ui_fileinfo.c \ | |
48 ui_fileinfopopup.c \ | |
49 ui_fileopener.c \ | |
50 ui_jumptotrack.c \ | |
51 ui_main.c \ | |
52 ui_main_evlisteners.c \ | |
53 ui_manager.c \ | |
54 ui_playlist.c \ | |
55 ui_playlist_manager.c \ | |
56 ui_preferences.c \ | |
57 ui_skinned_cursor.c \ | |
58 ui_skinned_window.c \ | |
59 ui_skinned_button.c \ | |
60 ui_skinned_textbox.c \ | |
61 ui_skinned_number.c \ | |
62 ui_skinned_horizontal_slider.c \ | |
63 ui_vis.c \ | |
64 ui_svis.c \ | |
65 ui_skinned_menurow.c \ | |
66 ui_skinned_playstatus.c \ | |
67 ui_skinned_monostereo.c \ | |
68 ui_skinned_equalizer_slider.c \ | |
69 ui_skinned_equalizer_graph.c \ | |
70 ui_skinned_playlist_slider.c \ | |
71 ui_skinned_playlist.c \ | |
72 ui_skinselector.c \ | |
73 ui_urlopener.c \ | |
74 util.c \ | |
75 vfs.c \ | |
76 vfs_buffer.c \ | |
77 vfs_buffered_file.c \ | |
78 vfs_common.c \ | |
79 visualization.c \ | |
80 volumecontrol.c \ | |
81 sync-menu.c \ | |
82 xconvert.c | |
2313 | 83 |
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
|
84 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
|
85 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
|
86 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
|
87 |
3572 | 88 INCLUDES = auddrct.h \ |
89 configdb.h \ | |
90 custom_uri.h \ | |
91 dbus.h \ | |
92 discovery.h \ | |
93 dbus-service.h \ | |
94 eventqueue.h \ | |
95 flow.h \ | |
96 formatter.h \ | |
97 rcfile.h \ | |
98 i18n.h \ | |
99 input.h \ | |
100 hook.h \ | |
101 main.h \ | |
102 mime.h \ | |
103 output.h \ | |
104 playback.h \ | |
105 playlist.h \ | |
106 playlist_container.h \ | |
107 plugin.h \ | |
108 strings.h \ | |
109 tuple.h \ | |
110 tuple_formatter.h \ | |
111 tuple_compiler.h \ | |
112 ui_fileinfopopup.h \ | |
113 ui_plugin_menu.h \ | |
114 ui_preferences.h \ | |
115 util.h \ | |
116 vfs.h \ | |
117 vfs_buffer.h \ | |
118 vfs_buffered_file.h \ | |
119 xconvert.h | |
120 | |
3993 | 121 DATA = images/about-logo.png \ |
3572 | 122 images/appearance.png \ |
123 images/audacious_eq.xpm \ | |
124 images/audacious_player.xpm \ | |
125 images/audacious_playlist.xpm \ | |
126 images/audio.png \ | |
127 images/connectivity.png \ | |
128 images/eq.png \ | |
129 images/info.png \ | |
130 images/menu_invert_playlist.png \ | |
131 images/menu_queue_toggle.png \ | |
132 images/menu_randomize_playlist.png \ | |
133 images/menu_remove_dups.png \ | |
134 images/menu_remove_unavail.png \ | |
135 images/menu_select_all.png \ | |
136 images/menu_select_invert.png \ | |
137 images/menu_select_none.png \ | |
138 images/menu_sort_artist.png \ | |
139 images/menu_sort_filename.png \ | |
140 images/menu_sort_pathfile.png \ | |
141 images/menu_sort_title.png \ | |
142 images/mouse.png \ | |
143 images/pl.png \ | |
144 images/play.png \ | |
145 images/playlist.png \ | |
146 images/plugins.png \ | |
147 ui/equalizer.ui \ | |
148 ui/mainwin.ui \ | |
149 ui/playlist.ui \ | |
150 ui/carbon-menubar.ui | |
2785 | 151 |
3656
db04d0916c22
implib for ${PROG} should finally work.
Jonathan Schleifer <js@h3c.de>
parents:
3655
diff
changeset
|
152 CLEAN = build_stamp.c libaudacious.exe.a |
db04d0916c22
implib for ${PROG} should finally work.
Jonathan Schleifer <js@h3c.de>
parents:
3655
diff
changeset
|
153 EXT_DEPS = ../libguess/libguess.a |
3591
74d1f0c78456
Fix generation of build_stamp.c.
Jonathan Schleifer <js@h3c.de>
parents:
3586
diff
changeset
|
154 |
3535 | 155 include ../../buildsys.mk |
3573
ae14a38d2553
AUDLDFLAGS isn't substitued, therefore remove it.
Jonathan Schleifer <js@h3c.de>
parents:
3572
diff
changeset
|
156 |
3578
d07343b134a1
I hope i fixed the libaudclient & dbus problem
Calin Crisan ccrisan@gmail.com
parents:
3574
diff
changeset
|
157 ifdef USE_DBUS |
3536
66c6a8a79034
Fix depend-hook call.
William Pitcock <nenolod@atheme.org>
parents:
3535
diff
changeset
|
158 CPPFLAGS += -I../libaudclient |
66c6a8a79034
Fix depend-hook call.
William Pitcock <nenolod@atheme.org>
parents:
3535
diff
changeset
|
159 DBUS_BINDINGS = dbus-server-bindings.h dbus-client-bindings.h |
66c6a8a79034
Fix depend-hook call.
William Pitcock <nenolod@atheme.org>
parents:
3535
diff
changeset
|
160 LIBS += -L../libaudclient -laudclient |
66c6a8a79034
Fix depend-hook call.
William Pitcock <nenolod@atheme.org>
parents:
3535
diff
changeset
|
161 endif |
66c6a8a79034
Fix depend-hook call.
William Pitcock <nenolod@atheme.org>
parents:
3535
diff
changeset
|
162 |
3593
85a49369c95f
Actually, the last patch was wrong. depend has to depend on ${SRCS}.
Jonathan Schleifer <js@h3c.de>
parents:
3591
diff
changeset
|
163 pre-depend: ${DBUS_BINDINGS} |
3535 | 164 |
3572 | 165 CPPFLAGS += -DHAVE_CONFIG_H \ |
166 ${MOWGLI_CFLAGS} \ | |
167 ${GTK_CFLAGS} \ | |
168 ${BEEP_DEFINES} \ | |
169 ${ARCH_DEFINES} \ | |
170 ${DBUS_CFLAGS} \ | |
171 ${samplerate_CFLAGS} \ | |
172 ${REGEX_CFLAGS} \ | |
173 ${LIBMCS_CFLAGS} \ | |
174 -D_AUDACIOUS_CORE \ | |
175 -I.. -I../.. \ | |
176 -I./intl | |
3535 | 177 |
3656
db04d0916c22
implib for ${PROG} should finally work.
Jonathan Schleifer <js@h3c.de>
parents:
3655
diff
changeset
|
178 LIBS += ${LDADD} \ |
db04d0916c22
implib for ${PROG} should finally work.
Jonathan Schleifer <js@h3c.de>
parents:
3655
diff
changeset
|
179 ${LIBINTL} \ |
3572 | 180 ${samplerate_LIBS} \ |
181 ../libguess/libguess.a \ | |
182 ${GTK_LIBS} \ | |
183 ${DBUS_LIBS} \ | |
184 ${MOWGLI_LIBS} \ | |
185 ${LIBMCS_LIBS} \ | |
186 ${REGEX_LIBS} | |
3535 | 187 |
3764 | 188 LDFLAGS += ${PROG_IMPLIB_LDFLAGS} |
3651
a5a81f8d6fd7
Update buildsys + small fixes.
Jonathan Schleifer <js@h3c.de>
parents:
3641
diff
changeset
|
189 |
2905
084d367e3577
separate build_stamp.c from depend-prehook to avoid excessive stamping.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
2842
diff
changeset
|
190 build_stamp.c: |
2837
b6b8fe38e1e3
Fix handling of buildstamp rule.
William Pitcock <nenolod@atheme.org>
parents:
2836
diff
changeset
|
191 if [ -d ../../.hg ]; then \ |
b6b8fe38e1e3
Fix handling of buildstamp rule.
William Pitcock <nenolod@atheme.org>
parents:
2836
diff
changeset
|
192 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
|
193 [ -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
|
194 fi |
7035e35d4067
Remove build_stamp.c and generate it on demand.
William Pitcock <nenolod@atheme.org>
parents:
2785
diff
changeset
|
195 |
3572 | 196 DBUS_BINDINGS_SOURCES = objects.xml \ |
197 mpris_root.xml \ | |
198 mpris_tracklist.xml \ | |
199 mpris_player.xml | |
2708 | 200 |
2313 | 201 desktop_DATA = audacious.desktop |
3572 | 202 desktopdir = ${datadir}/applicationu |
2313 | 203 |
3572 | 204 dbus-server-bindings.h: ${DBUS_BINDINGS_SOURCES} |
205 ${DBUS_BINDING_TOOL} --mode=glib-server --prefix=audacious_rc objects.xml > $@ | |
206 ${DBUS_BINDING_TOOL} --mode=glib-server --prefix=mpris_root mpris_root.xml >> $@ | |
207 ${DBUS_BINDING_TOOL} --mode=glib-server --prefix=mpris_tracklist mpris_tracklist.xml >> $@ | |
208 ${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
|
209 |
3572 | 210 dbus-client-bindings.h: ${DBUS_BINDINGS_SOURCES} |
211 ${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
|
212 |
3656
db04d0916c22
implib for ${PROG} should finally work.
Jonathan Schleifer <js@h3c.de>
parents:
3655
diff
changeset
|
213 install-extra: |
3660
c54dfcdc839e
Add missing targets to .PHONY.
Jonathan Schleifer <js@h3c.de>
parents:
3659
diff
changeset
|
214 if test x"${PROG_IMPLIB_NEEDED}" = x"yes"; then \ |
3658
00549db12332
Add implib to uninstall target.
Jonathan Schleifer <js@h3c.de>
parents:
3657
diff
changeset
|
215 for i in ${PROG}; do \ |
3662
0a82e6c75d7f
I should stop coding for today, I'm too unconcentrated.
Jonathan Schleifer <js@h3c.de>
parents:
3661
diff
changeset
|
216 i="lib$$i.a"; \ |
3656
db04d0916c22
implib for ${PROG} should finally work.
Jonathan Schleifer <js@h3c.de>
parents:
3655
diff
changeset
|
217 ${INSTALL_STATUS}; \ |
3661 | 218 if ${MKDIR_P} ${DESTDIR}${libdir} && install -m 644 $$i ${DESTDIR}${libdir}/$$i; then \ |
3656
db04d0916c22
implib for ${PROG} should finally work.
Jonathan Schleifer <js@h3c.de>
parents:
3655
diff
changeset
|
219 ${INSTALL_OK}; \ |
db04d0916c22
implib for ${PROG} should finally work.
Jonathan Schleifer <js@h3c.de>
parents:
3655
diff
changeset
|
220 else \ |
db04d0916c22
implib for ${PROG} should finally work.
Jonathan Schleifer <js@h3c.de>
parents:
3655
diff
changeset
|
221 ${INSTALL_FAILED}; \ |
db04d0916c22
implib for ${PROG} should finally work.
Jonathan Schleifer <js@h3c.de>
parents:
3655
diff
changeset
|
222 fi \ |
db04d0916c22
implib for ${PROG} should finally work.
Jonathan Schleifer <js@h3c.de>
parents:
3655
diff
changeset
|
223 done \ |
db04d0916c22
implib for ${PROG} should finally work.
Jonathan Schleifer <js@h3c.de>
parents:
3655
diff
changeset
|
224 fi |
3658
00549db12332
Add implib to uninstall target.
Jonathan Schleifer <js@h3c.de>
parents:
3657
diff
changeset
|
225 |
00549db12332
Add implib to uninstall target.
Jonathan Schleifer <js@h3c.de>
parents:
3657
diff
changeset
|
226 uninstall-extra: |
3660
c54dfcdc839e
Add missing targets to .PHONY.
Jonathan Schleifer <js@h3c.de>
parents:
3659
diff
changeset
|
227 if test x"${PROG_IMPLIB_NEEDED}" = x"yes"; then \ |
3658
00549db12332
Add implib to uninstall target.
Jonathan Schleifer <js@h3c.de>
parents:
3657
diff
changeset
|
228 for i in ${PROG}; do \ |
3662
0a82e6c75d7f
I should stop coding for today, I'm too unconcentrated.
Jonathan Schleifer <js@h3c.de>
parents:
3661
diff
changeset
|
229 i="lib$$i.a"; \ |
3661 | 230 if test -f ${DESTDIR}${libdir}/$$i; then \ |
3663
75372888e065
I always forget something today :(.
Jonathan Schleifer <js@h3c.de>
parents:
3662
diff
changeset
|
231 if rm -f ${DESTDIR}${libdir}/$$i; then \ |
3658
00549db12332
Add implib to uninstall target.
Jonathan Schleifer <js@h3c.de>
parents:
3657
diff
changeset
|
232 ${DELETE_OK}; \ |
00549db12332
Add implib to uninstall target.
Jonathan Schleifer <js@h3c.de>
parents:
3657
diff
changeset
|
233 else \ |
00549db12332
Add implib to uninstall target.
Jonathan Schleifer <js@h3c.de>
parents:
3657
diff
changeset
|
234 ${DELETE_FAILED}; \ |
00549db12332
Add implib to uninstall target.
Jonathan Schleifer <js@h3c.de>
parents:
3657
diff
changeset
|
235 fi \ |
00549db12332
Add implib to uninstall target.
Jonathan Schleifer <js@h3c.de>
parents:
3657
diff
changeset
|
236 fi \ |
00549db12332
Add implib to uninstall target.
Jonathan Schleifer <js@h3c.de>
parents:
3657
diff
changeset
|
237 done \ |
00549db12332
Add implib to uninstall target.
Jonathan Schleifer <js@h3c.de>
parents:
3657
diff
changeset
|
238 fi |