Mercurial > audlegacy
annotate audacious/Makefile @ 1921:57e92364c354 trunk
[svn] - add a build-prehook to ensure that the build_stamp is fresh.
author | nenolod |
---|---|
date | Mon, 30 Oct 2006 13:58:27 -0800 |
parents | 90d95cd7edb5 |
children | 29d90d3f9680 |
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 | |
1653 | 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) \ |
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 \ |
0617015a528b
[svn] - export the util.h as provided by audacious/
nenolod
parents:
1733
diff
changeset
|
38 util.h |
659 | 39 |
582 | 40 SOURCES = \ |
41 build_stamp.c \ | |
42 genevent.c \ | |
43 util.c \ | |
44 output.c \ | |
45 fft.c \ | |
46 input.c \ | |
47 effect.c \ | |
48 general.c \ | |
49 visualization.c \ | |
50 pluginenum.c \ | |
51 playlist.c \ | |
1548
d5be38600be5
[svn] - incomplete PlaylistContainer implementation
nenolod
parents:
1541
diff
changeset
|
52 playlist_container.c \ |
582 | 53 controlsocket.c \ |
1064 | 54 dock.c \ |
582 | 55 playback.c \ |
56 main.c \ | |
57 logger.c \ | |
1653 | 58 mainwin.c \ |
582 | 59 skinwin.c \ |
60 prefswin.c \ | |
1262 | 61 ui_fileinfo.c \ |
1653 | 62 ui_playlist.c \ |
63 equalizer.c \ | |
582 | 64 glade.c \ |
65 hints.c \ | |
66 about.c credits.c \ | |
67 softvolume.c \ | |
68 getopt.c getopt1.c \ | |
69 urldecode.c \ | |
70 iir.c \ | |
71 iir_cfs.c \ | |
72 iir_fpu.c | |
73 | |
74 OBJECTS = ${SOURCES:.c=.o} | |
75 | |
76 beepinclude_HEADERS = plugin.h output.h input.h | |
77 | |
78 desktop_DATA = audacious.desktop | |
79 desktopdir = $(datadir)/applications | |
80 | |
1921
57e92364c354
[svn] - add a build-prehook to ensure that the build_stamp is fresh.
nenolod
parents:
1890
diff
changeset
|
81 build-prehook: |
57e92364c354
[svn] - add a build-prehook to ensure that the build_stamp is fresh.
nenolod
parents:
1890
diff
changeset
|
82 if [ -d .svn ]; then \ |
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 | 87 build_stamp.c: |
88 if [ -d .svn ] || [ ! -f build_stamp.c ]; then \ | |
89 ( \ | |
90 echo '/* SVN repository version.'; \ | |
91 echo ' * This auto-generated file must not be included in SVN; but must'; \ | |
92 echo ' * be included in release tarballs.'; \ | |
93 echo ' */'; \ | |
94 echo '#include <glib.h>'; \ | |
95 echo -n 'const gchar *svn_stamp = "'; \ | |
96 (cd ..; svnversion -n .); \ | |
97 echo '";' \ | |
98 ) > build_stamp.c; \ | |
99 fi; | |
100 | |
1776
1f8b12f14dfa
[svn] - make audacious re-link when libwidgets.a has been updated.
yaz
parents:
1741
diff
changeset
|
101 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
|
102 $(CXX) $(LDFLAGS) $(OBJECTS) $(LDADD) -o $@ |
874 | 103 @printf "%10s %-20s\n" LINK $@ |