blob: 483dd099f58c435b4da8cb5897a184f6dee7c38e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# General compiler flags
AM_CFLAGS = -Wall -Werror -export-dynamic -W -Wno-unused-parameter
# General CPP flags. When I can demand automake 1.8, this can become
# sound_juicer_CPPFLAGS.
AM_CPPFLAGS = \
@DISABLE_DEPRECATED_CFLAGS@ \
-DGNOMELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
-DDATADIR=\""$(datadir)"\" \
-DPREFIX=\""$(prefix)"\" \
-DLIBDIR=\""$(libdir)"\" \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
-DPIXMAPDIR=\""$(datadir)/pixmaps"\" \
-DPKGDATADIR=\""$(datadir)/sound-juicer"\" \
@MUSICBRAINZ_CFLAGS@ @GSTREAMER_CFLAGS@ \
@UI_CFLAGS@ @HAL_CFLAGS@
# We always build Sound Juicer
bin_PROGRAMS = sound-juicer
sound_juicer_SOURCES = \
sound-juicer.h \
sj-structures.h \
sj-structures.c \
sj-main.c \
sj-prefs.h \
sj-prefs.c \
sj-error.h \
sj-error.c \
sj-extractor.h \
sj-extractor.c \
sj-genres.c \
sj-genres.h \
sj-metadata.h \
sj-metadata.c \
sj-metadata-musicbrainz.h \
sj-metadata-musicbrainz.c \
sj-util.h \
sj-util.c \
sj-about.h \
sj-about.c \
sj-extracting.h \
sj-extracting.c \
$(BACONFILES) \
$(MARSHALFILES)
sound_juicer_LDFLAGS = @MUSICBRAINZ_LIBS@ @GSTREAMER_LIBS@ @UI_LIBS@ @HAL_LIBS@
#
# Update the libbacon files
#
BACONDIR=$(srcdir)/../../nautilus-cd-burner/
BACONFILES=cd-drive.c cd-drive.h bacon-cd-selection.c bacon-cd-selection.h dvd_plus_rw_utils.cpp transport.hxx
regenerate-built-sources:
BACONFILES="$(BACONFILES)" BACONDIR="$(BACONDIR)" $(top_srcdir)/src/update-from-bacon.sh
#
# Build the GValue marshals
#
MARSHALFILES = sj-metadata-marshal.h sj-metadata-marshal.c
GLIB_GENMARSHAL =`pkg-config --variable=glib_genmarshal glib-2.0`
sj-metadata-marshal.h: sj-metadata-marshal.list
( $(GLIB_GENMARSHAL) --prefix=metadata_marshal $< \
--header > marshal-header.tmp \
&& mv marshal-header.tmp $@ ) \
|| ( rm -f marshal-header.tmp && exit 1 )
sj-metadata-marshal.c: sj-metadata-marshal.list
( $(GLIB_GENMARSHAL) --prefix=metadata_marshal $< \
--body > marshal-source.tmp \
&& echo "#include \"sj-metadata-marshal.h\"" > $@ \
&& cat marshal-source.tmp >> $@ \
&& rm -f marshal-source.tmp ) \
|| ( rm -f marshal-source.tmp && exit 1 )
BUILT_SOURCES = $(MARSHALFILES)
CLEANFILES = $(BUILT_SOURCES)
EXTRA_DIST = sj-metadata-marshal.list
|