build demo app
[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
13 demo_SOURCES = demo.c
14 demo_CFLAGS = $(GTK_CFLAGS) $(GST_CFLAGS)
15 demo_LDFLAGS = $(GTK_LIBS) $(GST_LIBS)
16 endif
17
18 EXTRA_libgstlevel_la_SOURCES = gstlevel-marshal.list
19
20 BUILT_SOURCES = \
21         gstlevel-marshal.c \
22         gstlevel-marshal.h
23
24 gstlevel-marshal.h: gstlevel-marshal.list
25         glib-genmarshal --header --prefix=gstlevel_cclosure_marshal $(srcdir)/gstlevel-marshal.list > gstlevel-marshal.h.tmp
26         mv gstlevel-marshal.h.tmp gstlevel-marshal.h
27                                                                                 
28 gstlevel-marshal.c: gstlevel-marshal.list
29         echo "#include \"glib.h\"" > gstlevel-marshal.c.tmp
30         echo "#include \"glib-object.h\"" >> gstlevel-marshal.c.tmp
31         echo "#include \"gstlevel-marshal.h\"" >> gstlevel-marshal.c.tmp
32         glib-genmarshal --body --prefix=gstlevel_cclosure_marshal $(srcdir)/gstlevel-marshal.list >> gstlevel-marshal.c.tmp
33         mv gstlevel-marshal.c.tmp gstlevel-marshal.c
34                                                                                 
35 # Don't want the generated marshal files in the dist
36 dist-hook:
37         rm -f $(distdir)/gstlevel-marshal.c
38         rm -f $(distdir)/gstlevel-marshal.h
39
40 EXTRA_DIST = README