annotate audacious/Makefile @ 2257:af716dc0cdb9 trunk

[svn] - do not create GtkAccelGroup anymore; use ui_manager_get_accel_group to get accelerator groups from ui_manager
author giacomo
date Thu, 04 Jan 2007 03:58:58 -0800
parents b09db7afa2ef
children
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
2150
7b17bae290df [svn] - add XML interface declaration for the playlist editor
nenolod
parents: 2146
diff changeset
5 SUBDIRS = widgets glade images ui
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) \
2168
caaf4b1a8487 [svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents: 2156
diff changeset
19 $(REGEX_LIBS) \
1991
327bc75fb21a [svn] - remove newui
nenolod
parents: 1986
diff changeset
20 ./widgets/libwidgets.a
582
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
21
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
22 CFLAGS += \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
23 $(GTK_CFLAGS) \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
24 $(LIBGLADE_CFLAGS) \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
25 $(BEEP_DEFINES) \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
26 $(ARCH_DEFINES) \
2168
caaf4b1a8487 [svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents: 2156
diff changeset
27 $(REGEX_CFLAGS) \
1741
c7ab1203d933 [svn] - only include non-SDK things if _AUDACIOUS_CORE is defined.
nenolod
parents: 1740
diff changeset
28 -D_AUDACIOUS_CORE \
582
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
29 -I.. \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
30 -I../intl
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
31
659
bb0d818a6ed6 [svn] add HEADERS for audacious/
nenolod
parents: 615
diff changeset
32 HEADERS = \
bb0d818a6ed6 [svn] add HEADERS for audacious/
nenolod
parents: 615
diff changeset
33 input.h \
1740
1cd9aa465ea7 [svn] - export main.h API
nenolod
parents: 1735
diff changeset
34 main.h \
659
bb0d818a6ed6 [svn] add HEADERS for audacious/
nenolod
parents: 615
diff changeset
35 output.h \
1732
bf2860c64a32 [svn] - add the playlist API to the SDK.
nenolod
parents: 1698
diff changeset
36 playlist.h \
2256
b09db7afa2ef [svn] - somehow playlist_container.h got expunged from the SDK distribution.
nenolod
parents: 2244
diff changeset
37 playlist_container.h \
1175
d03157b6b5dd [svn] prefswin_page_new():
nenolod
parents: 1109
diff changeset
38 plugin.h \
2242
c2f6cd0c6d24 [svn] - prefswin.c -> ui_preferences.c
nenolod
parents: 2241
diff changeset
39 ui_preferences.h \
2146
e0e50e151bab [svn] - move vfs from libaudacious to main audacious
nenolod
parents: 2071
diff changeset
40 util.h \
e0e50e151bab [svn] - move vfs from libaudacious to main audacious
nenolod
parents: 2071
diff changeset
41 vfs.h \
2232
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents: 2223
diff changeset
42 vfs_buffer.h
659
bb0d818a6ed6 [svn] add HEADERS for audacious/
nenolod
parents: 615
diff changeset
43
582
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
44 SOURCES = \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
45 build_stamp.c \
2146
e0e50e151bab [svn] - move vfs from libaudacious to main audacious
nenolod
parents: 2071
diff changeset
46 vfs.c \
e0e50e151bab [svn] - move vfs from libaudacious to main audacious
nenolod
parents: 2071
diff changeset
47 vfs_buffer.c \
e0e50e151bab [svn] - move vfs from libaudacious to main audacious
nenolod
parents: 2071
diff changeset
48 vfs_common.c \
582
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
49 genevent.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
50 util.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
51 output.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
52 fft.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
53 input.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
54 effect.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
55 general.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
56 visualization.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
57 pluginenum.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
58 playlist.c \
1548
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents: 1541
diff changeset
59 playlist_container.c \
2201
39e9c8e2745d [svn] - added initial code for playlist manager, that allows to create, delete and switch playlists
giacomo
parents: 2185
diff changeset
60 playlist_manager.c \
582
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
61 controlsocket.c \
1064
13d721835794 [svn] - revert back to dock.c 2/2 (hope it works)
nenolod
parents: 1042
diff changeset
62 dock.c \
582
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
63 playback.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
64 main.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
65 logger.c \
2244
1148bfa60fd5 [svn] skinwin.[ch] -> ui_skinselector.[ch]
nenolod
parents: 2242
diff changeset
66 ui_skinselector.c \
2242
c2f6cd0c6d24 [svn] - prefswin.c -> ui_preferences.c
nenolod
parents: 2241
diff changeset
67 ui_preferences.c \
1262
186f774fa30b [svn] - ui_fileinfo goodness (not hooked up yet)
nenolod
parents: 1218
diff changeset
68 ui_fileinfo.c \
1653
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents: 1648
diff changeset
69 ui_playlist.c \
2232
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents: 2223
diff changeset
70 ui_manager.c \
2236
ae7c17c4ef8b [svn] - rename equalizer.c to ui_equalizer.c
nenolod
parents: 2232
diff changeset
71 ui_equalizer.c \
2237
d507d2c1f75c [svn] - rename mainwin.c to ui_main.c and such
nenolod
parents: 2236
diff changeset
72 ui_main.c \
2241
a6010343e979 [svn] - about.c -> ui_about.c, credits.c -> ui_credits.c
nenolod
parents: 2237
diff changeset
73 ui_about.c ui_credits.c \
582
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
74 glade.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
75 hints.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
76 getopt.c getopt1.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
77 iir.c \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
78 iir_cfs.c \
2156
a792aaee8e8e [svn] - new signal handling which does not block (based on concept from BMP 0.9.8 that never got released)
nenolod
parents: 2150
diff changeset
79 iir_fpu.c \
2184
7d40f0a290b9 [svn] - break out string-related functions from util.c
nenolod
parents: 2168
diff changeset
80 signals.c \
2185
c108a98794b1 [svn] - add pixbuf_effects.c, containing various routines to alter images used by the skinengine
nenolod
parents: 2184
diff changeset
81 strings.c \
2223
e0d7335f56c3 [svn] - MemoryPool, a simple performance-oriented memory pool.
nenolod
parents: 2205
diff changeset
82 pixbuf_effects.c \
e0d7335f56c3 [svn] - MemoryPool, a simple performance-oriented memory pool.
nenolod
parents: 2205
diff changeset
83 memorypool.c
582
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
84
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
85 OBJECTS = ${SOURCES:.c=.o}
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
86
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
87 desktop_DATA = audacious.desktop
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
88 desktopdir = $(datadir)/applications
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
89
1921
57e92364c354 [svn] - add a build-prehook to ensure that the build_stamp is fresh.
nenolod
parents: 1890
diff changeset
90 build-prehook:
1923
3643a4136f0f [svn] - only rm -f the build stamp if needed.
nenolod
parents: 1922
diff changeset
91 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
92 rm -f build_stamp.c; \
57e92364c354 [svn] - add a build-prehook to ensure that the build_stamp is fresh.
nenolod
parents: 1890
diff changeset
93 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
94 fi
57e92364c354 [svn] - add a build-prehook to ensure that the build_stamp is fresh.
nenolod
parents: 1890
diff changeset
95
582
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
96 build_stamp.c:
2024
2f8a85fc9450 [svn] - fix conditionals for building build_stamp.c
nenolod
parents: 1991
diff changeset
97 if [ -d .svn ] && [ ! -f build_stamp.c ]; then \
582
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
98 ( \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
99 echo '/* SVN repository version.'; \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
100 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
101 echo ' * be included in release tarballs.'; \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
102 echo ' */'; \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
103 echo '#include <glib.h>'; \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
104 echo -n 'const gchar *svn_stamp = "'; \
1986
e75d0ae4fcb9 [svn] Avoid chdir .. when creating the SVN build stamp. This way we get a valid stamp when compiling from an ebuild.
chainsaw
parents: 1961
diff changeset
105 (svnversion -n .); \
582
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
106 echo '";' \
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
107 ) > build_stamp.c; \
1922
29d90d3f9680 [svn] - add feedback when the build_stamp is generated.
nenolod
parents: 1921
diff changeset
108 printf "%10s %-20s\n" STAMP build_stamp.c; \
582
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
109 fi;
fcb9cebe14fc [svn] Convert audacious over to a binary objective.
nenolod
parents:
diff changeset
110
1776
1f8b12f14dfa [svn] - make audacious re-link when libwidgets.a has been updated.
yaz
parents: 1741
diff changeset
111 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
112 $(CXX) $(LDFLAGS) $(OBJECTS) $(LDADD) -o $@
874
55128a9463a1 [svn] - cosmetic adjustment
nenolod
parents: 847
diff changeset
113 @printf "%10s %-20s\n" LINK $@