Fix FSF address
[platform/upstream/gstreamer.git] / tests / Makefile.am
index 9d11096..e5909fd 100644 (file)
@@ -1,11 +1,41 @@
-SUBDIRS = sched eos
+EXTRA_DIST = README
 
-noinst_PROGRAMS = init loadall simplefake states caps queue registry \
-paranoia rip mp3encode autoplug props case4 markup load 
+if BUILD_BENCHMARKS
+SUBDIRS_BENCHMARKS = benchmarks
+else
+SUBDIRS_BENCHMARKS =
+endif
 
-LDADD = $(GLIB_LIBS) $(GTK_LIBS) $(top_builddir)/gst/libgst.la
-CFLAGS = -Wall
+if BUILD_TESTS
+## SUBDIRS_TESTS = tests testsuite
+## FIXME: write tests from scratch
+SUBDIRS_TESTS =
+if HAVE_CHECK
+SUBDIRS_CHECK = check
+else
+SUBDIRS_CHECK =
+endif
+else
+SUBDIRS_TESTS =
+SUBDIRS_CHECK =
+endif
 
-INCLUDES = $(GLIB_CFLAGS) $(GTK_CFLAGS) -I$(top_srcdir)
+if BUILD_EXAMPLES
+SUBDIRS_EXAMPLES = examples
+else
+SUBDIRS_EXAMPLES =
+endif
 
-EXTRA_DIST = README
+SUBDIRS = \
+       $(SUBDIRS_BENCHMARKS) \
+       $(SUBDIRS_CHECK) \
+       misc            \
+       $(SUBDIRS_TESTS) \
+       $(SUBDIRS_EXAMPLES)
+
+# These are all the possible subdirs
+DIST_SUBDIRS = \
+       benchmarks \
+       check \
+       examples \
+       misc