X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/3f5b23510f628ed59c969d3d78552b956a43d32b..7ea68e43017a769ef14823e519b346ba6c63d5e0:/plugins/Makefile.am diff --git a/plugins/Makefile.am b/plugins/Makefile.am index c8883b5..0a64c1e 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am @@ -16,18 +16,22 @@ # along with this program. If not, see . # +VPATH+=${top_srcdir}/common + pkglib_LTLIBRARIES=disorder-tracklength.la fs.la notify.la exec.la shell.la \ execraw.la +check_PROGRAMS= AUTOMAKE_OPTIONS=subdir-objects AM_CPPFLAGS=-I${top_srcdir}/lib +AM_CFLAGS= notify_la_SOURCES=notify.c notify_la_LDFLAGS=-module disorder_tracklength_la_SOURCES=tracklength.c tracklength.h \ tracklength-mp3.c tracklength-ogg.c tracklength-wav.c \ -tracklength-flac.c mad.c madshim.h ../lib/wav.h ../lib/wav.c \ -../lib/hreader.h ../lib/hreader.c +tracklength-flac.c mad.c madshim.h +nodist_disorder_tracklength_la_SOURCES=wav.c hreader.c disorder_tracklength_la_LDFLAGS=-module disorder_tracklength_la_LIBADD=$(LIBVORBISFILE) $(LIBMAD) $(LIBFLAC) -lm @@ -42,3 +46,19 @@ execraw_la_LDFLAGS=-module shell_la_SOURCES=shell.c shell_la_LDFLAGS=-module + +if GSTDECODE +AM_CFLAGS+=$(GSTREAMER_CFLAGS) +pkglib_LTLIBRARIES+=tracklength-gstreamer.la +tracklength_gstreamer_la_SOURCES=tracklength-gstreamer.c +tracklength_gstreamer_la_LDFLAGS=-module +tracklength_gstreamer_la_LIBADD=$(LIBOBJS) \ + $(GSTREAMER_PLUGINS_BASE_LIBS) \ + $(GSTREAMER_LIBS) +check_PROGRAMS+=tracklength-gstreamer-test +tracklength_gstreamer_test_SOURCES=tracklength-gstreamer.c +tracklength_gstreamer_test_LDADD=$(LIBOBJS) ../lib/libdisorder.a \ + $(GSTREAMER_PLUGINS_BASE_LIBS) \ + $(GSTREAMER_LIBS) +tracklength_gstreamer_test_CFLAGS=$(AM_CFLAGS) $(CFLAGS) -DSTANDALONE +endif