configure.ac: set CFLAGS and friends to -O0 if gcov is being used add GCOV LIBS
[platform/upstream/gstreamer.git] / plugins / elements / Makefile.am
1 # FIXME:
2 # need to get gstbufferstore.[ch] into its own lib, preferably 
3 # libs/gst/bufferstore
4 # This requires building libs/gst before this dir, which we currently don't
5 # do.
6
7 plugin_LTLIBRARIES = libgstcoreelements.la
8
9 if HAVE_SYS_SOCKET_H
10 GSTFDSRC = gstfdsrc.c
11 GSTFDSINK = gstfdsink.c
12 else
13 GSTFDSRC =
14 GSTFDSINK = 
15 endif
16
17 libgstcoreelements_la_DEPENDENCIES = $(top_builddir)/gst/libgstreamer-@GST_MAJORMINOR@.la
18 libgstcoreelements_la_SOURCES = \
19         gstbufferstore.c        \
20         gstcapsfilter.c         \
21         gstelements.c           \
22         gstfakesrc.c            \
23         gstfakesink.c           \
24         $(GSTFDSRC)             \
25         $(GSTFDSINK)            \
26         gstfilesink.c           \
27         gstfilesrc.c            \
28         gstidentity.c           \
29         gstqueue.c              \
30         gsttee.c                \
31         gsttypefindelement.c
32
33 libgstcoreelements_la_CFLAGS = $(GST_OBJ_CFLAGS)
34 libgstcoreelements_la_LIBADD = \
35         $(top_builddir)/libs/gst/base/libgstbase-@GST_MAJORMINOR@.la \
36         $(GST_OBJ_LIBS)
37 libgstcoreelements_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
38
39 noinst_HEADERS =                \
40         gstbufferstore.h        \
41         gstfakesink.h           \
42         gstfakesrc.h            \
43         gstfdsrc.h              \
44         gstfdsink.h             \
45         gstfilesink.h           \
46         gstfilesrc.h            \
47         gstidentity.h           \
48         gstqueue.h              \
49         gsttee.h                \
50         gsttypefindelement.h
51
52 EXTRA_DIST = gstfdsrc.c \
53              gstfdsink.c
54
55
56 CLEANFILES = *.gcno *.gcda *.gcov
57
58 %.c.gcov: .libs/libgstcoreelements_la-%.gcda %.c
59         $(GCOV) -b -f -o $^ > $@.out
60
61 gcov: $(libgstcoreelements_la_SOURCES:=.gcov)