Commit | Line | Data |
---|---|---|
460b9539 | 1 | # |
2 | # This file is part of DisOrder | |
3f5b2351 | 3 | # Copyright (C) 2004-2008, 2010, 2013 Richard Kettlewell |
460b9539 | 4 | # |
e7eb3a27 | 5 | # This program is free software: you can redistribute it and/or modify |
460b9539 | 6 | # it under the terms of the GNU General Public License as published by |
e7eb3a27 | 7 | # the Free Software Foundation, either version 3 of the License, or |
460b9539 | 8 | # (at your option) any later version. |
9 | # | |
e7eb3a27 RK |
10 | # This program is distributed in the hope that it will be useful, |
11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | # GNU General Public License for more details. | |
14 | # | |
460b9539 | 15 | # You should have received a copy of the GNU General Public License |
e7eb3a27 | 16 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
460b9539 | 17 | # |
18 | ||
3e1d9716 MW |
19 | VPATH+=${top_srcdir}/common |
20 | ||
62dc3748 | 21 | pkglib_LTLIBRARIES=disorder-tracklength.la fs.la notify.la exec.la shell.la \ |
460b9539 | 22 | execraw.la |
7ea68e43 | 23 | check_PROGRAMS= |
3f5b2351 | 24 | AUTOMAKE_OPTIONS=subdir-objects |
460b9539 | 25 | AM_CPPFLAGS=-I${top_srcdir}/lib |
f8a3bdc8 | 26 | AM_CFLAGS= |
460b9539 | 27 | |
28 | notify_la_SOURCES=notify.c | |
29 | notify_la_LDFLAGS=-module | |
30 | ||
28e9141a RK |
31 | disorder_tracklength_la_SOURCES=tracklength.c tracklength.h \ |
32 | tracklength-mp3.c tracklength-ogg.c tracklength-wav.c \ | |
3e1d9716 MW |
33 | tracklength-flac.c mad.c madshim.h |
34 | nodist_disorder_tracklength_la_SOURCES=wav.c hreader.c | |
62dc3748 | 35 | disorder_tracklength_la_LDFLAGS=-module |
82d3594f | 36 | disorder_tracklength_la_LIBADD=$(LIBVORBISFILE) $(LIBMAD) $(LIBFLAC) -lm |
460b9539 | 37 | |
38 | fs_la_SOURCES=fs.c | |
39 | fs_la_LDFLAGS=-module | |
40 | ||
41 | exec_la_SOURCES=exec.c | |
42 | exec_la_LDFLAGS=-module | |
43 | ||
44 | execraw_la_SOURCES=execraw.c | |
45 | execraw_la_LDFLAGS=-module | |
46 | ||
47 | shell_la_SOURCES=shell.c | |
48 | shell_la_LDFLAGS=-module | |
f8a3bdc8 MW |
49 | |
50 | if GSTDECODE | |
51 | AM_CFLAGS+=$(GSTREAMER_CFLAGS) | |
52 | pkglib_LTLIBRARIES+=tracklength-gstreamer.la | |
53 | tracklength_gstreamer_la_SOURCES=tracklength-gstreamer.c | |
54 | tracklength_gstreamer_la_LDFLAGS=-module | |
55 | tracklength_gstreamer_la_LIBADD=$(LIBOBJS) \ | |
56 | $(GSTREAMER_PLUGINS_BASE_LIBS) \ | |
57 | $(GSTREAMER_LIBS) | |
7ea68e43 MW |
58 | check_PROGRAMS+=tracklength-gstreamer-test |
59 | tracklength_gstreamer_test_SOURCES=tracklength-gstreamer.c | |
60 | tracklength_gstreamer_test_LDADD=$(LIBOBJS) ../lib/libdisorder.a \ | |
61 | $(GSTREAMER_PLUGINS_BASE_LIBS) \ | |
62 | $(GSTREAMER_LIBS) | |
63 | tracklength_gstreamer_test_CFLAGS=$(AM_CFLAGS) $(CFLAGS) -DSTANDALONE | |
f8a3bdc8 | 64 | endif |