annotate src/audacious/Makefile @ 2365:cfc8431aceb5 trunk

[svn] cleanups in many regards
author mf0102
date Fri, 19 Jan 2007 14:12:34 -0800
parents 564e8a1fe09a
children d5522d3cd68f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
1 include ../../mk/rules.mk
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
2 include ../../mk/init.mk
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
3 include ../../mk/objective.mk
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 = \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
12 -L.. $(LTLIBINTL) \
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) \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
15 $(GTK_LIBS) \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
16 $(LIBGLADE_LIBS) \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
17 $(REGEX_LIBS) \
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 += \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
21 $(GTK_CFLAGS) \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
22 $(LIBGLADE_CFLAGS) \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
23 $(BEEP_DEFINES) \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
24 $(ARCH_DEFINES) \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
25 $(REGEX_CFLAGS) \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
26 -D_AUDACIOUS_CORE \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
27 -I.. -I../.. \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
28 -I../intl
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
29
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
30 SOURCES = \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
31 build_stamp.c \
2365
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
32 controlsocket.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
33 dnd.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
34 dock.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
35 effect.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
36 fft.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
37 general.c \
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
38 genevent.c \
2365
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
39 getopt1.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
40 getopt.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
41 glade.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
42 hints.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
43 iir.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
44 iir_cfs.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
45 iir_fpu.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
46 input.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
47 logger.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
48 main.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
49 memorypool.c \
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
50 output.c \
2365
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
51 pixbuf_effects.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
52 playback.c \
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
53 playlist.c \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
54 playlist_container.c \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
55 playlist_manager.c \
2365
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
56 pluginenum.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
57 signals.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
58 strings.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
59 ui_about.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
60 ui_credits.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
61 ui_equalizer.c \
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
62 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
63 ui_fileinfopopup.c \
2365
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
64 ui_main.c \
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
65 ui_manager.c \
2365
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
66 ui_playlist.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
67 ui_preferences.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
68 ui_skinselector.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
69 util.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
70 vfs_buffer.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
71 vfs_buffered_file.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
72 vfs.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
73 vfs_common.c \
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2348
diff changeset
74 visualization.c
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
75
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
76 OBJECTS = ${SOURCES:.c=.o}
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
77
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
78 desktop_DATA = audacious.desktop
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
79 desktopdir = $(datadir)/applications
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
80
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
81 build-prehook:
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
82 if [ -d .svn ] && [ -f build_stamp.c ]; then \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
83 rm -f build_stamp.c; \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
84 printf "%10s %-20s\n" RM build_stamp.c; \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
85 fi
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
86
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
87 build_stamp.c:
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
88 if [ -d .svn ] && [ ! -f build_stamp.c ]; then \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
89 ( \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
90 echo '/* SVN repository version.'; \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
91 echo ' * This auto-generated file must not be included in SVN; but must'; \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
92 echo ' * be included in release tarballs.'; \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
93 echo ' */'; \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
94 echo '#include <glib.h>'; \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
95 echo -n 'const gchar *svn_stamp = "'; \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
96 (svnversion -n .); \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
97 echo '";' \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
98 ) > build_stamp.c; \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
99 printf "%10s %-20s\n" STAMP build_stamp.c; \
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
100 fi;
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
101
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
102 audacious: $(OBJECTS) widgets/libwidgets.a
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
103 $(CXX) $(LDFLAGS) $(OBJECTS) $(LDADD) -o $@
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
104 @printf "%10s %-20s\n" LINK $@
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
105
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
106 OBJECTIVE_DATA = audacious.desktop:$(datadir)/applications