annotate audacious/Makefile @ 1942:4a1e5cb81524 trunk

[svn] - add keypad-enter binding for queueing files in jump-to-file. closes #295.
author nenolod
date Sun, 05 Nov 2006 13:29:22 -0800
parents 3643a4136f0f
children 9963dcd51cbb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
582
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
1 include ../mk/rules.mk
1615
e402e0217870 [svn] - fix for the long-standing dependency oddness in our build system. now make tool surely picks up changed source files and builds required objectives.
yaz
parents: 1565
diff changeset
2 include ../mk/init.mk
582
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
3 include ../mk/objective.mk
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
4
1653
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents: 1648
diff changeset
5 SUBDIRS = widgets glade images
582
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
6
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
7 beepincludedir = $(includedir)/audacious
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
8
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
9 OBJECTIVE_BINS = audacious
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
10
1630
842667773cc0 [svn] - audacious now builds on OS X
nenolod
parents: 1615
diff changeset
11 LDFLAGS += $(AUDLDFLAGS)
842667773cc0 [svn] - audacious now builds on OS X
nenolod
parents: 1615
diff changeset
12
582
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
13 LDADD = \
757
30fe36d312c8 [svn] kludge
nenolod
parents: 691
diff changeset
14 -L.. $(LTLIBINTL) \
1106
f12a2a0556cf [svn] chardet build error fix.
yaz
parents: 1064
diff changeset
15 -L../libaudacious -laudacious \
1455
04730ff1693d [svn] changes link order to avoid linkage with installed library.
yaz
parents: 1451
diff changeset
16 $(CHARDET_LIBS) \
04730ff1693d [svn] changes link order to avoid linkage with installed library.
yaz
parents: 1451
diff changeset
17 $(GTK_LIBS) \
1653
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents: 1648
diff changeset
18 $(LIBGLADE_LIBS) \
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents: 1648
diff changeset
19 ./widgets/libwidgets.a
582
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
20
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
21 CFLAGS += \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
22 $(GTK_CFLAGS) \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
23 $(LIBGLADE_CFLAGS) \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
24 $(BEEP_DEFINES) \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
25 $(ARCH_DEFINES) \
1741
c7ab1203d933 [svn] - only include non-SDK things if _AUDACIOUS_CORE is defined.
nenolod
parents: 1740
diff changeset
26 -D_AUDACIOUS_CORE \
582
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
27 -I.. \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
28 -I../intl
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
29
659
bb0d818a6ed6 [svn] add HEADERS for audacious/
nenolod
parents: 615
diff changeset
30 HEADERS = \
bb0d818a6ed6 [svn] add HEADERS for audacious/
nenolod
parents: 615
diff changeset
31 input.h \
1740
1cd9aa465ea7 [svn] - export main.h API
nenolod
parents: 1735
diff changeset
32 main.h \
659
bb0d818a6ed6 [svn] add HEADERS for audacious/
nenolod
parents: 615
diff changeset
33 output.h \
1732
bf2860c64a32 [svn] - add the playlist API to the SDK.
nenolod
parents: 1698
diff changeset
34 playlist.h \
1733
e41a5d296e26 [svn] - add the PlaylistContainer API to the SDK.
nenolod
parents: 1732
diff changeset
35 playlist_container.h \
1175
d03157b6b5dd [svn] prefswin_page_new():
nenolod
parents: 1109
diff changeset
36 plugin.h \
1735
0617015a528b [svn] - export the util.h as provided by audacious/
nenolod
parents: 1733
diff changeset
37 prefswin.h \
0617015a528b [svn] - export the util.h as provided by audacious/
nenolod
parents: 1733
diff changeset
38 util.h
659
bb0d818a6ed6 [svn] add HEADERS for audacious/
nenolod
parents: 615
diff changeset
39
582
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
40 SOURCES = \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
41 build_stamp.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
42 genevent.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
43 util.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
44 output.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
45 fft.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
46 input.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
47 effect.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
48 general.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
49 visualization.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
50 pluginenum.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
51 playlist.c \
1548
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents: 1541
diff changeset
52 playlist_container.c \
582
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
53 controlsocket.c \
1064
13d721835794 [svn] - revert back to dock.c 2/2 (hope it works)
nenolod
parents: 1042
diff changeset
54 dock.c \
582
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
55 playback.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
56 main.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
57 logger.c \
1653
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents: 1648
diff changeset
58 mainwin.c \
582
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
59 skinwin.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
60 prefswin.c \
1262
186f774fa30b [svn] - ui_fileinfo goodness (not hooked up yet)
nenolod
parents: 1218
diff changeset
61 ui_fileinfo.c \
1653
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents: 1648
diff changeset
62 ui_playlist.c \
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents: 1648
diff changeset
63 equalizer.c \
582
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
64 glade.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
65 hints.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
66 about.c credits.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
67 softvolume.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
68 getopt.c getopt1.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
69 urldecode.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
70 iir.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
71 iir_cfs.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
72 iir_fpu.c
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
73
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
74 OBJECTS = ${SOURCES:.c=.o}
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
75
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
76 beepinclude_HEADERS = plugin.h output.h input.h
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
77
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
78 desktop_DATA = audacious.desktop
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
79 desktopdir = $(datadir)/applications
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
80
1921
57e92364c354 [svn] - add a build-prehook to ensure that the build_stamp is fresh.
nenolod
parents: 1890
diff changeset
81 build-prehook:
1923
3643a4136f0f [svn] - only rm -f the build stamp if needed.
nenolod
parents: 1922
diff changeset
82 if [ -d .svn ] && [ -f build_stamp.c ]; then \
1921
57e92364c354 [svn] - add a build-prehook to ensure that the build_stamp is fresh.
nenolod
parents: 1890
diff changeset
83 rm -f build_stamp.c; \
57e92364c354 [svn] - add a build-prehook to ensure that the build_stamp is fresh.
nenolod
parents: 1890
diff changeset
84 printf "%10s %-20s\n" RM build_stamp.c; \
57e92364c354 [svn] - add a build-prehook to ensure that the build_stamp is fresh.
nenolod
parents: 1890
diff changeset
85 fi
57e92364c354 [svn] - add a build-prehook to ensure that the build_stamp is fresh.
nenolod
parents: 1890
diff changeset
86
582
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
87 build_stamp.c:
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
88 if [ -d .svn ] || [ ! -f build_stamp.c ]; then \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
89 ( \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
90 echo '/* SVN repository version.'; \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
91 echo ' * This auto-generated file must not be included in SVN; but must'; \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
92 echo ' * be included in release tarballs.'; \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
93 echo ' */'; \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
94 echo '#include <glib.h>'; \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
95 echo -n 'const gchar *svn_stamp = "'; \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
96 (cd ..; svnversion -n .); \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
97 echo '";' \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
98 ) > build_stamp.c; \
1922
29d90d3f9680 [svn] - add feedback when the build_stamp is generated.
nenolod
parents: 1921
diff changeset
99 printf "%10s %-20s\n" STAMP build_stamp.c; \
582
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
100 fi;
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
101
1776
1f8b12f14dfa [svn] - make audacious re-link when libwidgets.a has been updated.
yaz
parents: 1741
diff changeset
102 audacious: $(OBJECTS) widgets/libwidgets.a
1679
2dab9da1abc4 [svn] Link C++ plugins correctly on *BSD, by Jonathan Schleifer <js@h3c.de>.
chainsaw
parents: 1653
diff changeset
103 $(CXX) $(LDFLAGS) $(OBJECTS) $(LDADD) -o $@
874
55128a9463a1 [svn] - cosmetic adjustment
nenolod
parents: 847
diff changeset
104 @printf "%10s %-20s\n" LINK $@