dvbsuboverlay: Make the libdvbsub callback handler responsible for memory cleanup
[platform/upstream/gstreamer.git] / Makefile.am
index 4966813..37b104d 100644 (file)
@@ -1,47 +1,73 @@
-if USE_GCONFTOOL
-GCONF_DIR=gconf
-else
-GCONF_DIR=
-endif
+DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
 
-if BUILD_EXTERNAL
-EXT_DIR=ext
-else
-EXT_DIR=
-endif
+SUBDIRS = \
+       gst-libs gst sys ext pkgconfig \
+       m4 common docs tests po tools
+
+DIST_SUBDIRS = \
+       gst gst-libs sys ext pkgconfig \
+       m4 common docs tests po tools
+
+# include before EXTRA_DIST for win32 assignment
+include $(top_srcdir)/common/win32.mak
+
+EXTRA_DIST = \
+       gst-plugins-bad.spec depcomp \
+       AUTHORS COPYING NEWS README RELEASE REQUIREMENTS \
+       ChangeLog gst-plugins-bad.doap autogen.sh \
+       $(win32)
+
+DISTCLEANFILES = _stdint.h
+
+ACLOCAL_AMFLAGS = -I m4 -I common/m4
 
-if BUILD_EXAMPLES
-EXAMPLES_DIR=examples
+include $(top_srcdir)/common/release.mak
+include $(top_srcdir)/common/po.mak
+
+check-valgrind:
+       cd tests/check && make check-valgrind
+
+if HAVE_GST_CHECK
+check-torture:
+       cd tests/check && make torture
 else
-EXAMPLES_DIR=
+check-torture:
+       true
 endif
 
-SUBDIRS=gst-libs \
-       gst sys $(EXT_DIR) \
-       $(EXAMPLES_DIR) \
-       tools \
-       $(GCONF_DIR) \
-       testsuite \
-       po \
-       common \
-       m4 \
-       pkgconfig
-
-DIST_SUBDIRS=ext gst-libs \
-       gst sys \
-       examples \
-       tools \
-       gconf \
-       testsuite \
-       po \
-       common \
-       m4 \
-       pkgconfig
-
-EXTRA_DIST=gst-plugins.spec depcomp \
-          AUTHORS COPYING COPYING.LIB NEWS README RELEASE REQUIREMENTS \
-          ChangeLog autogen.sh
-
-DISTCLEANFILES=_stdint.h
+include $(top_srcdir)/common/coverage/lcov.mak
 
-include $(top_srcdir)/common/release.mak
+check: check-exports
+
+# cruft: plugins that have been merged or moved or renamed
+
+CRUFT_FILES = \
+       $(top_builddir)/common/shave \
+       $(top_builddir)/common/shave-libtool \
+       $(top_builddir)/ext/alsaspdif/.libs/*.{so,dll,DLL,dylib} \
+       $(top_builddir)/ext/ivorbis/.libs/*.{so,dll,DLL,dylib} \
+       $(top_builddir)/gst/aacparse/.libs/*.{so,dll,DLL,dylib} \
+       $(top_builddir)/gst/amrparse/.libs/*.{so,dll,DLL,dylib} \
+       $(top_builddir)/gst/flacparse/.libs/*.{so,dll,DLL,dylib} \
+       $(top_builddir)/gst/shapewipe/.libs/*.{so,dll,DLL,dylib} \
+       $(top_builddir)/gst/imagefreeze/.libs/*.{so,dll,DLL,dylib} \
+       $(top_builddir)/sys/oss4/.libs/*.{so,dll,DLL,dylib} \
+       $(top_builddir)/tests/check/elements/capssetter \
+       $(top_builddir)/tests/check/elements/imagefreeze \
+       $(top_builddir)/tests/check/pipelines/metadata \
+       $(top_builddir)/tests/icles/test-oss4
+
+CRUFT_DIRS = \
+       $(top_srcdir)/gst/aacparse \
+       $(top_srcdir)/gst/amrparse \
+       $(top_srcdir)/gst/flacparse \
+       $(top_srcdir)/gst/imagefreeze \
+       $(top_srcdir)/gst/shapewipe \
+       $(top_srcdir)/tests/examples/shapewipe \
+       $(top_srcdir)/ext/alsaspdif \
+       $(top_srcdir)/ext/ivorbis \
+       $(top_srcdir)/ext/metadata 
+
+include $(top_srcdir)/common/cruft.mak
+
+all-local: check-cruft