added second example with plotting fixed some aesthetics
[platform/upstream/gst-plugins-good.git] / gst / level / Makefile.am
1
2 plugin_LTLIBRARIES = libgstlevel.la
3
4 libgstlevel_la_SOURCES = gstlevel.c gstlevel-marshal.c
5 libgstlevel_la_CFLAGS = $(GST_CFLAGS)
6 libgstlevel_la_LIBADD =
7 libgstlevel_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
8
9 noinst_HEADERS = gstlevel.h filter.func
10
11 if HAVE_GTK
12 noinst_PROGRAMS = demo plot
13 demo_SOURCES = demo.c
14 demo_CFLAGS = $(GTK_CFLAGS) $(GST_CFLAGS)
15 demo_LDFLAGS = $(GTK_LIBS) $(GST_LIBS)
16 plot_SOURCES = plot.c
17 plot_CFLAGS = $(GTK_CFLAGS) $(GST_CFLAGS)
18 plot_LDFLAGS = $(GTK_LIBS) $(GST_LIBS)
19 endif
20
21 EXTRA_libgstlevel_la_SOURCES = gstlevel-marshal.list
22
23 BUILT_SOURCES = \
24         gstlevel-marshal.c \
25         gstlevel-marshal.h
26
27 gstlevel-marshal.h: gstlevel-marshal.list
28         glib-genmarshal --header --prefix=gstlevel_cclosure_marshal $(srcdir)/gstlevel-marshal.list > gstlevel-marshal.h.tmp
29         mv gstlevel-marshal.h.tmp gstlevel-marshal.h
30                                                                                 
31 gstlevel-marshal.c: gstlevel-marshal.list
32         echo "#include \"glib.h\"" > gstlevel-marshal.c.tmp
33         echo "#include \"glib-object.h\"" >> gstlevel-marshal.c.tmp
34         echo "#include \"gstlevel-marshal.h\"" >> gstlevel-marshal.c.tmp
35         glib-genmarshal --body --prefix=gstlevel_cclosure_marshal $(srcdir)/gstlevel-marshal.list >> gstlevel-marshal.c.tmp
36         mv gstlevel-marshal.c.tmp gstlevel-marshal.c
37                                                                                 
38 # Don't want the generated marshal files in the dist
39 dist-hook:
40         rm -f $(distdir)/gstlevel-marshal.c
41         rm -f $(distdir)/gstlevel-marshal.h
42
43 EXTRA_DIST = README