annotate src/audacious/Makefile @ 2442:44df6c17411b trunk

[svn] - split out albumart locating functions into a seperate file and make the public API available in util.h
author nenolod
date Mon, 29 Jan 2007 10:11:01 -0800
parents af8b86badfdb
children 890f503325bb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
4
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
5 SUBDIRS = widgets glade images ui
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
6
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
7 OBJECTIVE_BINS = audacious
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
8
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
9 LDFLAGS += $(AUDLDFLAGS)
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
10
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
11 LDADD = \
2441
af8b86badfdb [svn] - Cleaned up a bit
mf0102
parents: 2431
diff changeset
12 -L.. $(LTLIBINTL) \
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
13 -L../libaudacious -laudacious \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
14 $(CHARDET_LIBS) \
2441
af8b86badfdb [svn] - Cleaned up a bit
mf0102
parents: 2431
diff changeset
15 $(GTK_LIBS) \
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
16 $(LIBGLADE_LIBS) \
2441
af8b86badfdb [svn] - Cleaned up a bit
mf0102
parents: 2431
diff changeset
17 $(REGEX_LIBS) \
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
18 ./widgets/libwidgets.a
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
19
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
20 CFLAGS += \
2441
af8b86badfdb [svn] - Cleaned up a bit
mf0102
parents: 2431
diff changeset
21 $(GTK_CFLAGS) \
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
22 $(LIBGLADE_CFLAGS) \
2441
af8b86badfdb [svn] - Cleaned up a bit
mf0102
parents: 2431
diff changeset
23 $(BEEP_DEFINES) \
af8b86badfdb [svn] - Cleaned up a bit
mf0102
parents: 2431
diff changeset
24 $(ARCH_DEFINES) \
af8b86badfdb [svn] - Cleaned up a bit
mf0102
parents: 2431
diff changeset
25 $(REGEX_CFLAGS) \
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
26 -D_AUDACIOUS_CORE \
2441
af8b86badfdb [svn] - Cleaned up a bit
mf0102
parents: 2431
diff changeset
27 -I.. -I../.. \
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
28 -I../intl
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
29
2367
d5522d3cd68f [svn] fix a stupid bug of mine
mf0102
parents: 2365
diff changeset
30 HEADERS = \
2426
193bae6b2c8f [svn] - removed xmms_ prefix from formatter
mf0102
parents: 2422
diff changeset
31 formatter.h \
2387
af600aefd2cf [svn] - add i18n.h which wraps gettext in a way that is usable to plugins.
nenolod
parents: 2386
diff changeset
32 i18n.h \
2367
d5522d3cd68f [svn] fix a stupid bug of mine
mf0102
parents: 2365
diff changeset
33 input.h \
2404
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents: 2391
diff changeset
34 hook.h \
2386
86ef3bf12a59 [svn] - export main.h again
giacomo
parents: 2385
diff changeset
35 main.h \
2367
d5522d3cd68f [svn] fix a stupid bug of mine
mf0102
parents: 2365
diff changeset
36 output.h \
d5522d3cd68f [svn] fix a stupid bug of mine
mf0102
parents: 2365
diff changeset
37 playlist.h \
d5522d3cd68f [svn] fix a stupid bug of mine
mf0102
parents: 2365
diff changeset
38 playlist_container.h \
d5522d3cd68f [svn] fix a stupid bug of mine
mf0102
parents: 2365
diff changeset
39 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
40 strings.h \
2441
af8b86badfdb [svn] - Cleaned up a bit
mf0102
parents: 2431
diff changeset
41 titlestring.h \
2367
d5522d3cd68f [svn] fix a stupid bug of mine
mf0102
parents: 2365
diff changeset
42 ui_fileinfopopup.h \
d5522d3cd68f [svn] fix a stupid bug of mine
mf0102
parents: 2365
diff changeset
43 ui_preferences.h \
d5522d3cd68f [svn] fix a stupid bug of mine
mf0102
parents: 2365
diff changeset
44 util.h \
d5522d3cd68f [svn] fix a stupid bug of mine
mf0102
parents: 2365
diff changeset
45 vfs.h \
2431
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents: 2426
diff changeset
46 vfs_buffer.h \
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents: 2426
diff changeset
47 xconvert.h
2367
d5522d3cd68f [svn] fix a stupid bug of mine
mf0102
parents: 2365
diff changeset
48
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
49 SOURCES = \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
50 build_stamp.c \
2365
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
51 controlsocket.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
52 dnd.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
53 dock.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
54 effect.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
55 fft.c \
2426
193bae6b2c8f [svn] - removed xmms_ prefix from formatter
mf0102
parents: 2422
diff changeset
56 formatter.c \
2365
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
57 general.c \
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
58 genevent.c \
2365
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
59 glade.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
60 hints.c \
2404
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents: 2391
diff changeset
61 hook.c \
2365
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
62 iir.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
63 iir_cfs.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
64 iir_fpu.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
65 input.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
66 logger.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
67 main.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
68 memorypool.c \
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
69 output.c \
2365
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
70 pixbuf_effects.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
71 playback.c \
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
72 playlist.c \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
73 playlist_container.c \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
74 playlist_manager.c \
2365
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
75 pluginenum.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
76 signals.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
77 strings.c \
2431
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents: 2426
diff changeset
78 titlestring.c \
2365
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
79 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
80 ui_albumart.c \
2365
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
81 ui_credits.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
82 ui_equalizer.c \
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
83 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
84 ui_fileinfopopup.c \
2416
0fd7f4f969ad [svn] integrated urldecode.* from libaudacious into audacious directory, made separate ui_fileopener.*
mf0102
parents: 2411
diff changeset
85 ui_fileopener.c \
2365
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
86 ui_main.c \
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
87 ui_manager.c \
2365
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
88 ui_playlist.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
89 ui_preferences.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
90 ui_skinselector.c \
2422
b31111934cd3 [svn] - break out the URL opener UI code
nenolod
parents: 2416
diff changeset
91 ui_urlopener.c \
2416
0fd7f4f969ad [svn] integrated urldecode.* from libaudacious into audacious directory, made separate ui_fileopener.*
mf0102
parents: 2411
diff changeset
92 urldecode.c \
2365
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
93 util.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
94 vfs_buffer.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
95 vfs_buffered_file.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
96 vfs.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
97 vfs_common.c \
2431
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents: 2426
diff changeset
98 visualization.c \
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents: 2426
diff changeset
99 xconvert.c
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
100
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
101 OBJECTS = ${SOURCES:.c=.o}
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
102
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
103 desktop_DATA = audacious.desktop
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
104 desktopdir = $(datadir)/applications
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
105
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
106 build-prehook:
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
107 if [ -d .svn ] && [ -f build_stamp.c ]; then \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
108 rm -f build_stamp.c; \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
109 printf "%10s %-20s\n" RM build_stamp.c; \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
110 fi
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
111
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
112 build_stamp.c:
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
113 if [ -d .svn ] && [ ! -f build_stamp.c ]; then \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
114 ( \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
115 echo '/* SVN repository version.'; \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
116 echo ' * This auto-generated file must not be included in SVN; but must'; \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
117 echo ' * be included in release tarballs.'; \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
118 echo ' */'; \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
119 echo '#include <glib.h>'; \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
120 echo -n 'const gchar *svn_stamp = "'; \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
121 (svnversion -n .); \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
122 echo '";' \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
123 ) > build_stamp.c; \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
124 printf "%10s %-20s\n" STAMP build_stamp.c; \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
125 fi;
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
126
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
127 audacious: $(OBJECTS) widgets/libwidgets.a
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
128 $(CXX) $(LDFLAGS) $(OBJECTS) $(LDADD) -o $@
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
129 @printf "%10s %-20s\n" LINK $@
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
130
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
131 OBJECTIVE_DATA = audacious.desktop:$(datadir)/applications