Mercurial > audlegacy
annotate audacious/Makefile @ 1541:06329cbf186a trunk
[svn] this massive commit does the following:
- seriously cleans up dependencies on the WA2-like gui code
- moves all of the WA2 stuff into a seperate library (libwidgets.a)
- makes things less icky in the player tree
author | nenolod |
---|---|
date | Wed, 09 Aug 2006 02:47:22 -0700 |
parents | 04730ff1693d |
children | d5be38600be5 |
rev | line source |
---|---|
582 | 1 include ../mk/rules.mk |
2 include ../mk/objective.mk | |
3 | |
1541 | 4 SUBDIRS = widgets glade images |
582 | 5 |
6 beepincludedir = $(includedir)/audacious | |
7 | |
8 OBJECTIVE_BINS = audacious | |
9 | |
803
93c749c9e794
[svn] Don't override input LD_FLAGS - needed to enable profiling.
nemo
parents:
757
diff
changeset
|
10 LDFLAGS += -Wl,-export-dynamic |
582 | 11 LDADD = \ |
757 | 12 -L.. $(LTLIBINTL) \ |
1106 | 13 -L../libaudacious -laudacious \ |
1451 | 14 ../sqlite/libsqlite.a \ |
1455
04730ff1693d
[svn] changes link order to avoid linkage with installed library.
yaz
parents:
1451
diff
changeset
|
15 $(CHARDET_LIBS) \ |
04730ff1693d
[svn] changes link order to avoid linkage with installed library.
yaz
parents:
1451
diff
changeset
|
16 $(GTK_LIBS) \ |
1541 | 17 $(LIBGLADE_LIBS) \ |
18 ./widgets/libwidgets.a | |
582 | 19 |
20 CFLAGS += \ | |
21 $(GTK_CFLAGS) \ | |
22 $(LIBGLADE_CFLAGS) \ | |
23 $(BEEP_DEFINES) \ | |
24 $(ARCH_DEFINES) \ | |
25 -I.. \ | |
26 -I../intl | |
27 | |
659 | 28 HEADERS = \ |
29 input.h \ | |
30 output.h \ | |
1175 | 31 plugin.h \ |
32 prefswin.h | |
659 | 33 |
582 | 34 SOURCES = \ |
35 build_stamp.c \ | |
36 genevent.c \ | |
37 util.c \ | |
38 output.c \ | |
39 fft.c \ | |
40 input.c \ | |
41 effect.c \ | |
42 general.c \ | |
43 visualization.c \ | |
44 pluginenum.c \ | |
45 playlist.c \ | |
46 controlsocket.c \ | |
1064 | 47 dock.c \ |
582 | 48 playback.c \ |
49 main.c \ | |
50 logger.c \ | |
51 mainwin.c \ | |
52 skinwin.c \ | |
53 prefswin.c \ | |
1262 | 54 ui_fileinfo.c \ |
582 | 55 ui_playlist.c \ |
56 equalizer.c \ | |
57 glade.c \ | |
58 hints.c \ | |
59 about.c credits.c \ | |
60 softvolume.c \ | |
61 getopt.c getopt1.c \ | |
62 urldecode.c \ | |
63 mkdtemp.c \ | |
64 iir.c \ | |
65 iir_cfs.c \ | |
66 iir_fpu.c | |
67 | |
68 OBJECTS = ${SOURCES:.c=.o} | |
69 | |
70 beepinclude_HEADERS = plugin.h output.h input.h | |
71 | |
72 desktop_DATA = audacious.desktop | |
73 desktopdir = $(datadir)/applications | |
74 | |
75 build_stamp.c: | |
76 if [ -d .svn ] || [ ! -f build_stamp.c ]; then \ | |
77 ( \ | |
78 echo '/* SVN repository version.'; \ | |
79 echo ' * This auto-generated file must not be included in SVN; but must'; \ | |
80 echo ' * be included in release tarballs.'; \ | |
81 echo ' */'; \ | |
82 echo '#include <glib.h>'; \ | |
83 echo -n 'const gchar *svn_stamp = "'; \ | |
84 (cd ..; svnversion -n .); \ | |
85 echo '";' \ | |
86 ) > build_stamp.c; \ | |
87 fi; | |
88 | |
89 audacious: $(OBJECTS) | |
1109
95365899992e
[svn] - audacious should pick runtime library up from ${libdir}.
yaz
parents:
1106
diff
changeset
|
90 $(CC) $(LDFLAGS) $(OBJECTS) $(LDADD) -o $@ -Wl,-rpath,${libdir} |
874 | 91 @printf "%10s %-20s\n" LINK $@ |