tagging stuff and build fixes. In detail:
[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 CLEANFILES = \
27         gstlevel-marshal.c \
28         gstlevel-marshal.h
29                              
30
31 gstlevel-marshal.h: gstlevel-marshal.list
32         glib-genmarshal --header --prefix=gstlevel_cclosure_marshal $(srcdir)/gstlevel-marshal.list > gstlevel-marshal.h.tmp
33         mv gstlevel-marshal.h.tmp gstlevel-marshal.h
34                                                                                 
35 gstlevel-marshal.c: gstlevel-marshal.list
36         echo "#include \"glib.h\"" > gstlevel-marshal.c.tmp
37         echo "#include \"glib-object.h\"" >> gstlevel-marshal.c.tmp
38         echo "#include \"gstlevel-marshal.h\"" >> gstlevel-marshal.c.tmp
39         glib-genmarshal --body --prefix=gstlevel_cclosure_marshal $(srcdir)/gstlevel-marshal.list >> gstlevel-marshal.c.tmp
40         mv gstlevel-marshal.c.tmp gstlevel-marshal.c
41                                                                                 
42 # Don't want the generated marshal files in the dist
43 dist-hook:
44         rm -f $(distdir)/gstlevel-marshal.c
45         rm -f $(distdir)/gstlevel-marshal.h
46
47 EXTRA_DIST = README