check/Makefile.am: fix the broken rule for cleanup. Apparently this rule is only...
[platform/upstream/gstreamer.git] / check / Makefile.am
1 TESTS_ENVIRONMENT=\
2         GST_PLUGIN_PATH=$(top_builddir)/gst:$(top_builddir)/check \
3         GST_REGISTRY=$(top_builddir)/check/test-registry.xml
4
5 plugindir = $(libdir)/gstreamer-@GST_MAJORMINOR@
6
7 # make all tests depend on the versioned gst-register
8 $(TESTS): $(top_builddir)/tools/gst-register
9
10 # rebuild gst-register-@GST_MAJORMINOR@ if needed
11 $(top_builddir)/tools/gst-register-@GST_MAJORMINOR@$(EXEEXT):
12         cd $(top_builddir)/tools && make
13
14 # override to _not_ install the test plugins
15 install-pluginLTLIBRARIES:
16
17 # ths core dumps of some machines have PIDs appended
18 CLEANFILES = core.* test-registry.xml
19
20 clean-local:
21         for i in `find . -name ".libs" -type d`; do \
22           rm -rf $$i; \
23         done
24
25 TESTS = $(top_builddir)/tools/gst-register \
26         gst/gstbin              \
27         gst/gstbus              \
28         gst/gstcaps             \
29         gst/gstdata             \
30         gst/gstiterator         \
31         gst/gstmessage          \
32         gst/gstobject           \
33         gst/gstpad              \
34         gst/gstsystemclock      \
35         gst-libs/gdp    
36
37 check_PROGRAMS = $(TESTS)
38
39 noinst_LTLIBRARIES = libgstcheck.la
40
41 libgstcheck_la_SOURCES = gstcheck.c
42 libgstcheck_la_LIBADD = $(GST_OBJ_LIBS)
43 noinst_HEADERS = gstcheck.h
44
45 AM_CFLAGS = $(GST_OBJ_CFLAGS) $(CHECK_CFLAGS)
46 LDADD = $(GST_OBJ_LIBS) $(CHECK_LIBS) libgstcheck.la
47
48 gst_libs_gdp_SOURCES = \
49         gst-libs/gdp.c \
50         $(top_srcdir)/libs/gst/dataprotocol/dataprotocol.c
51 # remove GST_ENABLE_NEW when dataprotocol has been declared API-stable
52 gst_libs_gdp_CFLAGS = $(AM_CFLAGS) -DGST_ENABLE_NEW