Mercurial > audlegacy
annotate src/audacious/Makefile @ 2404:60f1bc20c19c trunk
[svn] - hooking implementation.
example: hook_register("playback begin"); hook_call("playback begin", <PlaylistEntry>);
author | nenolod |
---|---|
date | Thu, 25 Jan 2007 20:23:16 -0800 |
parents | 1ab061263ee8 |
children | 30ab29ed32d8 |
rev | line source |
---|---|
2391 | 1 include ${top_srcdir}/mk/rules.mk |
2 include ${top_srcdir}/mk/init.mk | |
3 include ${top_srcdir}/mk/objective.mk | |
2313 | 4 |
5 SUBDIRS = widgets glade images ui | |
6 | |
7 OBJECTIVE_BINS = audacious | |
8 | |
9 LDFLAGS += $(AUDLDFLAGS) | |
10 | |
11 LDADD = \ | |
12 -L.. $(LTLIBINTL) \ | |
13 -L../libaudacious -laudacious \ | |
14 $(CHARDET_LIBS) \ | |
15 $(GTK_LIBS) \ | |
16 $(LIBGLADE_LIBS) \ | |
17 $(REGEX_LIBS) \ | |
18 ./widgets/libwidgets.a | |
19 | |
20 CFLAGS += \ | |
21 $(GTK_CFLAGS) \ | |
22 $(LIBGLADE_CFLAGS) \ | |
23 $(BEEP_DEFINES) \ | |
24 $(ARCH_DEFINES) \ | |
25 $(REGEX_CFLAGS) \ | |
26 -D_AUDACIOUS_CORE \ | |
2391 | 27 -I.. -I${top_srcdir} \ |
2313 | 28 -I../intl |
29 | |
2367 | 30 HEADERS = \ |
2387
af600aefd2cf
[svn] - add i18n.h which wraps gettext in a way that is usable to plugins.
nenolod
parents:
2386
diff
changeset
|
31 i18n.h \ |
2367 | 32 input.h \ |
2404 | 33 hook.h \ |
2386 | 34 main.h \ |
2367 | 35 output.h \ |
36 playlist.h \ | |
37 playlist_container.h \ | |
38 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
|
39 strings.h \ |
2367 | 40 ui_fileinfopopup.h \ |
41 ui_preferences.h \ | |
42 util.h \ | |
2389
2413a9314bed
[svn] - strings.h should be installed because plugins may use str_to_utf8().
yaz
parents:
2387
diff
changeset
|
43 strings.h \ |
2367 | 44 vfs.h \ |
45 vfs_buffer.h | |
46 | |
2313 | 47 SOURCES = \ |
48 build_stamp.c \ | |
2365 | 49 controlsocket.c \ |
50 dnd.c \ | |
51 dock.c \ | |
52 effect.c \ | |
53 fft.c \ | |
54 general.c \ | |
2313 | 55 genevent.c \ |
2365 | 56 getopt1.c \ |
57 getopt.c \ | |
58 glade.c \ | |
59 hints.c \ | |
2404 | 60 hook.c \ |
2365 | 61 iir.c \ |
62 iir_cfs.c \ | |
63 iir_fpu.c \ | |
64 input.c \ | |
65 logger.c \ | |
66 main.c \ | |
67 memorypool.c \ | |
2313 | 68 output.c \ |
2365 | 69 pixbuf_effects.c \ |
70 playback.c \ | |
2313 | 71 playlist.c \ |
72 playlist_container.c \ | |
73 playlist_manager.c \ | |
2365 | 74 pluginenum.c \ |
75 signals.c \ | |
76 strings.c \ | |
77 ui_about.c \ | |
78 ui_credits.c \ | |
79 ui_equalizer.c \ | |
2313 | 80 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
|
81 ui_fileinfopopup.c \ |
2365 | 82 ui_main.c \ |
2313 | 83 ui_manager.c \ |
2365 | 84 ui_playlist.c \ |
85 ui_preferences.c \ | |
86 ui_skinselector.c \ | |
87 util.c \ | |
88 vfs_buffer.c \ | |
89 vfs_buffered_file.c \ | |
90 vfs.c \ | |
91 vfs_common.c \ | |
92 visualization.c | |
2313 | 93 |
94 OBJECTS = ${SOURCES:.c=.o} | |
95 | |
96 desktop_DATA = audacious.desktop | |
97 desktopdir = $(datadir)/applications | |
98 | |
99 build-prehook: | |
100 if [ -d .svn ] && [ -f build_stamp.c ]; then \ | |
101 rm -f build_stamp.c; \ | |
102 printf "%10s %-20s\n" RM build_stamp.c; \ | |
103 fi | |
104 | |
105 build_stamp.c: | |
106 if [ -d .svn ] && [ ! -f build_stamp.c ]; then \ | |
107 ( \ | |
108 echo '/* SVN repository version.'; \ | |
109 echo ' * This auto-generated file must not be included in SVN; but must'; \ | |
110 echo ' * be included in release tarballs.'; \ | |
111 echo ' */'; \ | |
112 echo '#include <glib.h>'; \ | |
113 echo -n 'const gchar *svn_stamp = "'; \ | |
114 (svnversion -n .); \ | |
115 echo '";' \ | |
116 ) > build_stamp.c; \ | |
117 printf "%10s %-20s\n" STAMP build_stamp.c; \ | |
118 fi; | |
119 | |
120 audacious: $(OBJECTS) widgets/libwidgets.a | |
121 $(CXX) $(LDFLAGS) $(OBJECTS) $(LDADD) -o $@ | |
122 @printf "%10s %-20s\n" LINK $@ | |
123 | |
124 OBJECTIVE_DATA = audacious.desktop:$(datadir)/applications |