configure.ac: set CFLAGS and friends to -O0 if gcov is being used add GCOV LIBS
[platform/upstream/gstreamer.git] / plugins / indexers / Makefile.am
index 0af5680..bf5c328 100644 (file)
@@ -19,3 +19,8 @@ libgstcoreindexers_la_SOURCES = gstindexers.c gstmemindex.c $(GST_LOADSAVE_SRC)
 libgstcoreindexers_la_CFLAGS = $(GST_OBJ_CFLAGS)
 libgstcoreindexers_la_LIBADD = $(GST_OBJ_LIBS) $(GST_FILEINDEX_LIBS)
 libgstcoreindexers_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
+
+%.c.gcov: .libs/libgstcoreindexers_la-%.gcda %.c
+       $(GCOV) -b -f -o $^ > $@.out
+
+gcov: $(libgstcoreindexers_la_SOURCES:=.gcov)