Mercurial > audlegacy
annotate src/audacious/Makefile @ 2947:13591e28d89e trunk
cleanup
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Sun, 01 Jul 2007 12:52:58 +0200 |
parents | cd21a4556dd2 |
children | 6131bf51ee63 |
rev | line source |
---|---|
2409
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2404
diff
changeset
|
1 include ../../mk/rules.mk |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2404
diff
changeset
|
2 include ../../mk/init.mk |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2404
diff
changeset
|
3 include ../../mk/objective.mk |
2313 | 4 |
5 SUBDIRS = widgets glade images ui | |
6 | |
7 OBJECTIVE_BINS = audacious | |
8 | |
9 LDFLAGS += $(AUDLDFLAGS) | |
10 | |
11 LDADD = \ | |
2571
c293ff5ec46f
[svn] - use $(LIBINTL) rule, not $(LTLIBINTL). unbreaks OSX platform port.
nenolod
parents:
2541
diff
changeset
|
12 -L.. $(LIBINTL) \ |
2538
719e0898ff3c
[svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents:
2537
diff
changeset
|
13 $(samplerate_LIBS) \ |
2313 | 14 $(CHARDET_LIBS) \ |
2441 | 15 $(GTK_LIBS) \ |
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
|
16 $(DBUS_LIBS) \ |
2631
a2afa6ca7294
[svn] - integrate libmowgli requirement into buildsystem
nenolod
parents:
2589
diff
changeset
|
17 $(MOWGLI_LIBS) \ |
2722
3dc52411bdbe
[svn] MCS_LIBS != LIBMCS_LIBS, allow audacious binary to link.
chainsaw
parents:
2721
diff
changeset
|
18 $(LIBMCS_LIBS) \ |
2313 | 19 $(LIBGLADE_LIBS) \ |
2441 | 20 $(REGEX_LIBS) \ |
2313 | 21 ./widgets/libwidgets.a |
22 | |
23 CFLAGS += \ | |
2631
a2afa6ca7294
[svn] - integrate libmowgli requirement into buildsystem
nenolod
parents:
2589
diff
changeset
|
24 $(MOWGLI_CFLAGS) \ |
2441 | 25 $(GTK_CFLAGS) \ |
2313 | 26 $(LIBGLADE_CFLAGS) \ |
2441 | 27 $(BEEP_DEFINES) \ |
28 $(ARCH_DEFINES) \ | |
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
|
29 $(DBUS_CFLAGS) \ |
2538
719e0898ff3c
[svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents:
2537
diff
changeset
|
30 $(samplerate_CFLAGS) \ |
2441 | 31 $(REGEX_CFLAGS) \ |
2722
3dc52411bdbe
[svn] MCS_LIBS != LIBMCS_LIBS, allow audacious binary to link.
chainsaw
parents:
2721
diff
changeset
|
32 $(LIBMCS_CFLAGS) \ |
2313 | 33 -D_AUDACIOUS_CORE \ |
2441 | 34 -I.. -I../.. \ |
2313 | 35 -I../intl |
36 | |
2367 | 37 HEADERS = \ |
2739
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
2733
diff
changeset
|
38 auddrct.h \ |
2712
aeb4d8da1543
[svn] - move configdb public API to audacious proper
nenolod
parents:
2711
diff
changeset
|
39 configdb.h \ |
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
|
40 dbus.h \ |
2426 | 41 formatter.h \ |
2537 | 42 rcfile.h \ |
2387
af600aefd2cf
[svn] - add i18n.h which wraps gettext in a way that is usable to plugins.
nenolod
parents:
2386
diff
changeset
|
43 i18n.h \ |
2367 | 44 input.h \ |
2404 | 45 hook.h \ |
2386 | 46 main.h \ |
2367 | 47 output.h \ |
48 playlist.h \ | |
49 playlist_container.h \ | |
50 plugin.h \ | |
2385
ab2b1b6f6179
[svn] - add missing inclusion of strings.h where necessary, do not export main.h and export strings.h
giacomo
parents:
2367
diff
changeset
|
51 strings.h \ |
2441 | 52 titlestring.h \ |
2367 | 53 ui_fileinfopopup.h \ |
54 ui_preferences.h \ | |
55 util.h \ | |
56 vfs.h \ | |
2431
3ec22a11c83e
[svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
2426
diff
changeset
|
57 vfs_buffer.h \ |
2589 | 58 vfs_buffered_file.h \ |
2431
3ec22a11c83e
[svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
2426
diff
changeset
|
59 xconvert.h |
2367 | 60 |
2313 | 61 SOURCES = \ |
2739
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
2733
diff
changeset
|
62 auddrct.c \ |
2313 | 63 build_stamp.c \ |
2712
aeb4d8da1543
[svn] - move configdb public API to audacious proper
nenolod
parents:
2711
diff
changeset
|
64 configdb.c \ |
2365 | 65 dnd.c \ |
66 dock.c \ | |
67 effect.c \ | |
68 fft.c \ | |
2426 | 69 formatter.c \ |
2365 | 70 general.c \ |
2313 | 71 genevent.c \ |
2365 | 72 glade.c \ |
73 hints.c \ | |
2404 | 74 hook.c \ |
2365 | 75 iir.c \ |
76 iir_cfs.c \ | |
77 iir_fpu.c \ | |
78 input.c \ | |
79 logger.c \ | |
80 main.c \ | |
81 memorypool.c \ | |
2313 | 82 output.c \ |
2365 | 83 pixbuf_effects.c \ |
84 playback.c \ | |
2313 | 85 playlist.c \ |
86 playlist_container.c \ | |
2365 | 87 pluginenum.c \ |
2537 | 88 rcfile.c \ |
2365 | 89 signals.c \ |
90 strings.c \ | |
2431
3ec22a11c83e
[svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
2426
diff
changeset
|
91 titlestring.c \ |
2365 | 92 ui_about.c \ |
2442
44df6c17411b
[svn] - split out albumart locating functions into a seperate file and make the public API available in util.h
nenolod
parents:
2441
diff
changeset
|
93 ui_albumart.c \ |
2365 | 94 ui_credits.c \ |
95 ui_equalizer.c \ | |
2313 | 96 ui_fileinfo.c \ |
2348
564e8a1fe09a
[svn] - made a public API for fileinfopopup (popup that displays metadata, the same used in playlist); now plugins can include ui_fileinfopopup.h to display metadata popups (i.e. statusicon and libnotify plugins)
giacomo
parents:
2341
diff
changeset
|
97 ui_fileinfopopup.c \ |
2416
0fd7f4f969ad
[svn] integrated urldecode.* from libaudacious into audacious directory, made separate ui_fileopener.*
mf0102
parents:
2411
diff
changeset
|
98 ui_fileopener.c \ |
2500 | 99 ui_jumptotrack.c \ |
2365 | 100 ui_main.c \ |
2313 | 101 ui_manager.c \ |
2365 | 102 ui_playlist.c \ |
2499
15a1f5ee4d1c
[svn] - playlist_manager -> ui_playlist_manager, since it's a UI component.
nenolod
parents:
2494
diff
changeset
|
103 ui_playlist_manager.c \ |
2365 | 104 ui_preferences.c \ |
2494
59661bd074b4
[svn] Try to put some skinned window code in a common place.
nenolod
parents:
2465
diff
changeset
|
105 ui_skinned_cursor.c \ |
59661bd074b4
[svn] Try to put some skinned window code in a common place.
nenolod
parents:
2465
diff
changeset
|
106 ui_skinned_window.c \ |
2842
c2622a939e9e
rename audacious_pbutton to ui_skinned_button
Tomasz Mon <desowin@gmail.com>
parents:
2837
diff
changeset
|
107 ui_skinned_button.c \ |
2911 | 108 ui_skinned_textbox.c \ |
2365 | 109 ui_skinselector.c \ |
2422 | 110 ui_urlopener.c \ |
2416
0fd7f4f969ad
[svn] integrated urldecode.* from libaudacious into audacious directory, made separate ui_fileopener.*
mf0102
parents:
2411
diff
changeset
|
111 urldecode.c \ |
2365 | 112 util.c \ |
2494
59661bd074b4
[svn] Try to put some skinned window code in a common place.
nenolod
parents:
2465
diff
changeset
|
113 vfs.c \ |
2365 | 114 vfs_buffer.c \ |
115 vfs_buffered_file.c \ | |
116 vfs_common.c \ | |
2431
3ec22a11c83e
[svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
2426
diff
changeset
|
117 visualization.c \ |
3ec22a11c83e
[svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
2426
diff
changeset
|
118 xconvert.c |
2313 | 119 |
2785 | 120 LIBDEP = widgets/libwidgets.a ../libguess/libguess.a ../librcd/librcd.a |
121 | |
2771
4585019eb82e
[svn] -Renamed MPRIS /TrackList Shuffle method to Random
magma
parents:
2769
diff
changeset
|
122 ifdef USE_DBUS |
4585019eb82e
[svn] -Renamed MPRIS /TrackList Shuffle method to Random
magma
parents:
2769
diff
changeset
|
123 SOURCES += dbus.c |
2785 | 124 CFLAGS += -I../libaudclient |
2771
4585019eb82e
[svn] -Renamed MPRIS /TrackList Shuffle method to Random
magma
parents:
2769
diff
changeset
|
125 DBUS_BINDINGS = dbus-server-bindings.h dbus-client-bindings.h |
4585019eb82e
[svn] -Renamed MPRIS /TrackList Shuffle method to Random
magma
parents:
2769
diff
changeset
|
126 OBJECTIVE_LIBS_NOINST += $(DBUS_BINDINGS) |
2785 | 127 LIBDEP += ../libaudclient/libaudclient.so |
128 LDADD += -L../libaudclient -laudclient | |
2771
4585019eb82e
[svn] -Renamed MPRIS /TrackList Shuffle method to Random
magma
parents:
2769
diff
changeset
|
129 endif |
4585019eb82e
[svn] -Renamed MPRIS /TrackList Shuffle method to Random
magma
parents:
2769
diff
changeset
|
130 |
2836
7035e35d4067
Remove build_stamp.c and generate it on demand.
William Pitcock <nenolod@atheme.org>
parents:
2785
diff
changeset
|
131 depend-prehook: $(DBUS_BINDINGS) |
2905
084d367e3577
separate build_stamp.c from depend-prehook to avoid excessive stamping.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
2842
diff
changeset
|
132 |
084d367e3577
separate build_stamp.c from depend-prehook to avoid excessive stamping.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
2842
diff
changeset
|
133 build_stamp.c: |
2837
b6b8fe38e1e3
Fix handling of buildstamp rule.
William Pitcock <nenolod@atheme.org>
parents:
2836
diff
changeset
|
134 if [ -d ../../.hg ]; then \ |
b6b8fe38e1e3
Fix handling of buildstamp rule.
William Pitcock <nenolod@atheme.org>
parents:
2836
diff
changeset
|
135 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
|
136 [ -z "$$revh" ] || echo "$$revh" > build_stamp.c; \ |
2837
b6b8fe38e1e3
Fix handling of buildstamp rule.
William Pitcock <nenolod@atheme.org>
parents:
2836
diff
changeset
|
137 printf "%10s %-20s\n" STAMP "build_stamp.c"; \ |
2836
7035e35d4067
Remove build_stamp.c and generate it on demand.
William Pitcock <nenolod@atheme.org>
parents:
2785
diff
changeset
|
138 fi |
7035e35d4067
Remove build_stamp.c and generate it on demand.
William Pitcock <nenolod@atheme.org>
parents:
2785
diff
changeset
|
139 |
2905
084d367e3577
separate build_stamp.c from depend-prehook to avoid excessive stamping.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
2842
diff
changeset
|
140 clean-prehook: |
084d367e3577
separate build_stamp.c from depend-prehook to avoid excessive stamping.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
2842
diff
changeset
|
141 if [ -d ../../.hg ]; then \ |
084d367e3577
separate build_stamp.c from depend-prehook to avoid excessive stamping.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
2842
diff
changeset
|
142 rm -f build_stamp.c; \ |
084d367e3577
separate build_stamp.c from depend-prehook to avoid excessive stamping.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
2842
diff
changeset
|
143 fi |
084d367e3577
separate build_stamp.c from depend-prehook to avoid excessive stamping.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
2842
diff
changeset
|
144 |
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
|
145 DBUS_BINDINGS_SOURCES = \ |
2708 | 146 objects.xml \ |
147 mpris_root.xml \ | |
148 mpris_tracklist.xml \ | |
149 mpris_player.xml | |
150 | |
2313 | 151 OBJECTS = ${SOURCES:.c=.o} |
152 | |
153 desktop_DATA = audacious.desktop | |
154 desktopdir = $(datadir)/applications | |
155 | |
2691 | 156 audacious: $(OBJECTS) $(LIBDEP) |
2313 | 157 $(CXX) $(LDFLAGS) $(OBJECTS) $(LDADD) -o $@ |
158 @printf "%10s %-20s\n" LINK $@ | |
159 | |
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
|
160 dbus-server-bindings.h: $(DBUS_BINDINGS_SOURCES) |
2733
cf080b11c3fa
[svn] Implemented more of the stubs in audctrl; Added more methods to objects.xml with implementations in dbus.c. I'm still trying to get plugins working with libaudclient.
magma
parents:
2730
diff
changeset
|
161 $(DBUS_BINDING_TOOL) --mode=glib-server --prefix=audacious_rc objects.xml > $@ |
2769
bf2d80abf76e
[svn] Implemented CMD_IS_ADVANCE and CMD_TOGGLE_ADVANCE. Added partial MPRIS support. Root is complete, Player is partially implemented, and TrackList has not been started.
magma
parents:
2768
diff
changeset
|
162 $(DBUS_BINDING_TOOL) --mode=glib-server --prefix=mpris_root mpris_root.xml >> $@ |
2771
4585019eb82e
[svn] -Renamed MPRIS /TrackList Shuffle method to Random
magma
parents:
2769
diff
changeset
|
163 $(DBUS_BINDING_TOOL) --mode=glib-server --prefix=mpris_tracklist mpris_tracklist.xml >> $@ |
2769
bf2d80abf76e
[svn] Implemented CMD_IS_ADVANCE and CMD_TOGGLE_ADVANCE. Added partial MPRIS support. Root is complete, Player is partially implemented, and TrackList has not been started.
magma
parents:
2768
diff
changeset
|
164 $(DBUS_BINDING_TOOL) --mode=glib-server --prefix=mpris_player mpris_player.xml >> $@ |
2703 | 165 @printf "%10s %-20s\n" DBUS-BIND $@ |
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
|
166 |
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
|
167 dbus-client-bindings.h: $(DBUS_BINDINGS_SOURCES) |
2733
cf080b11c3fa
[svn] Implemented more of the stubs in audctrl; Added more methods to objects.xml with implementations in dbus.c. I'm still trying to get plugins working with libaudclient.
magma
parents:
2730
diff
changeset
|
168 $(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
|
169 @printf "%10s %-20s\n" DBUS-BIND $@ |
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
|
170 |
2313 | 171 OBJECTIVE_DATA = audacious.desktop:$(datadir)/applications |