Mercurial > audlegacy
annotate audacious/Makefile @ 2146:e0e50e151bab trunk
[svn] - move vfs from libaudacious to main audacious
author | nenolod |
---|---|
date | Sun, 17 Dec 2006 08:52:31 -0800 |
parents | b9c6f1305c99 |
children | 7b17bae290df |
rev | line source |
---|---|
582 | 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 | 3 include ../mk/objective.mk |
4 | |
1991 | 5 SUBDIRS = widgets glade images |
582 | 6 |
7 beepincludedir = $(includedir)/audacious | |
8 | |
9 OBJECTIVE_BINS = audacious | |
10 | |
1630 | 11 LDFLAGS += $(AUDLDFLAGS) |
12 | |
582 | 13 LDADD = \ |
757 | 14 -L.. $(LTLIBINTL) \ |
1106 | 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 | 18 $(LIBGLADE_LIBS) \ |
1991 | 19 ./widgets/libwidgets.a |
582 | 20 |
21 CFLAGS += \ | |
22 $(GTK_CFLAGS) \ | |
23 $(LIBGLADE_CFLAGS) \ | |
24 $(BEEP_DEFINES) \ | |
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 | 27 -I.. \ |
28 -I../intl | |
29 | |
659 | 30 HEADERS = \ |
31 input.h \ | |
1740 | 32 main.h \ |
659 | 33 output.h \ |
1732 | 34 playlist.h \ |
1733 | 35 playlist_container.h \ |
1175 | 36 plugin.h \ |
1735
0617015a528b
[svn] - export the util.h as provided by audacious/
nenolod
parents:
1733
diff
changeset
|
37 prefswin.h \ |
2146
e0e50e151bab
[svn] - move vfs from libaudacious to main audacious
nenolod
parents:
2071
diff
changeset
|
38 util.h \ |
e0e50e151bab
[svn] - move vfs from libaudacious to main audacious
nenolod
parents:
2071
diff
changeset
|
39 vfs.h \ |
e0e50e151bab
[svn] - move vfs from libaudacious to main audacious
nenolod
parents:
2071
diff
changeset
|
40 vfs_buffer.h |
659 | 41 |
582 | 42 SOURCES = \ |
43 build_stamp.c \ | |
2146
e0e50e151bab
[svn] - move vfs from libaudacious to main audacious
nenolod
parents:
2071
diff
changeset
|
44 vfs.c \ |
e0e50e151bab
[svn] - move vfs from libaudacious to main audacious
nenolod
parents:
2071
diff
changeset
|
45 vfs_buffer.c \ |
e0e50e151bab
[svn] - move vfs from libaudacious to main audacious
nenolod
parents:
2071
diff
changeset
|
46 vfs_common.c \ |
582 | 47 genevent.c \ |
48 util.c \ | |
49 output.c \ | |
50 fft.c \ | |
51 input.c \ | |
52 effect.c \ | |
53 general.c \ | |
54 visualization.c \ | |
55 pluginenum.c \ | |
56 playlist.c \ | |
1548
d5be38600be5
[svn] - incomplete PlaylistContainer implementation
nenolod
parents:
1541
diff
changeset
|
57 playlist_container.c \ |
582 | 58 controlsocket.c \ |
1064 | 59 dock.c \ |
582 | 60 playback.c \ |
61 main.c \ | |
62 logger.c \ | |
1653 | 63 mainwin.c \ |
582 | 64 skinwin.c \ |
65 prefswin.c \ | |
1262 | 66 ui_fileinfo.c \ |
1653 | 67 ui_playlist.c \ |
68 equalizer.c \ | |
582 | 69 glade.c \ |
70 hints.c \ | |
71 about.c credits.c \ | |
72 getopt.c getopt1.c \ | |
73 iir.c \ | |
74 iir_cfs.c \ | |
75 iir_fpu.c | |
76 | |
77 OBJECTS = ${SOURCES:.c=.o} | |
78 | |
79 desktop_DATA = audacious.desktop | |
80 desktopdir = $(datadir)/applications | |
81 | |
1921
57e92364c354
[svn] - add a build-prehook to ensure that the build_stamp is fresh.
nenolod
parents:
1890
diff
changeset
|
82 build-prehook: |
1923 | 83 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
|
84 rm -f build_stamp.c; \ |
57e92364c354
[svn] - add a build-prehook to ensure that the build_stamp is fresh.
nenolod
parents:
1890
diff
changeset
|
85 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
|
86 fi |
57e92364c354
[svn] - add a build-prehook to ensure that the build_stamp is fresh.
nenolod
parents:
1890
diff
changeset
|
87 |
582 | 88 build_stamp.c: |
2024
2f8a85fc9450
[svn] - fix conditionals for building build_stamp.c
nenolod
parents:
1991
diff
changeset
|
89 if [ -d .svn ] && [ ! -f build_stamp.c ]; then \ |
582 | 90 ( \ |
91 echo '/* SVN repository version.'; \ | |
92 echo ' * This auto-generated file must not be included in SVN; but must'; \ | |
93 echo ' * be included in release tarballs.'; \ | |
94 echo ' */'; \ | |
95 echo '#include <glib.h>'; \ | |
96 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
|
97 (svnversion -n .); \ |
582 | 98 echo '";' \ |
99 ) > build_stamp.c; \ | |
1922
29d90d3f9680
[svn] - add feedback when the build_stamp is generated.
nenolod
parents:
1921
diff
changeset
|
100 printf "%10s %-20s\n" STAMP build_stamp.c; \ |
582 | 101 fi; |
102 | |
1776
1f8b12f14dfa
[svn] - make audacious re-link when libwidgets.a has been updated.
yaz
parents:
1741
diff
changeset
|
103 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
|
104 $(CXX) $(LDFLAGS) $(OBJECTS) $(LDADD) -o $@ |
874 | 105 @printf "%10s %-20s\n" LINK $@ |