summaryrefslogtreecommitdiffstats
path: root/gst/level/Makefile.am
blob: 21f909904e69103932660459907317c5c2198125 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47

plugin_LTLIBRARIES = libgstlevel.la

libgstlevel_la_SOURCES = gstlevel.c gstlevel-marshal.c
libgstlevel_la_CFLAGS = $(GST_CFLAGS)
libgstlevel_la_LIBADD =
libgstlevel_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)

noinst_HEADERS = gstlevel.h filter.func

if HAVE_GTK
noinst_PROGRAMS = demo plot
demo_SOURCES = demo.c
demo_CFLAGS = $(GTK_CFLAGS) $(GST_CFLAGS)
demo_LDFLAGS = $(GTK_LIBS) $(GST_LIBS)
plot_SOURCES = plot.c
plot_CFLAGS = $(GTK_CFLAGS) $(GST_CFLAGS)
plot_LDFLAGS = $(GTK_LIBS) $(GST_LIBS)
endif

EXTRA_libgstlevel_la_SOURCES = gstlevel-marshal.list

BUILT_SOURCES = \
	gstlevel-marshal.c \
	gstlevel-marshal.h
CLEANFILES = \
	gstlevel-marshal.c \
	gstlevel-marshal.h
			     

gstlevel-marshal.h: gstlevel-marshal.list
	glib-genmarshal --header --prefix=gstlevel_cclosure_marshal $(srcdir)/gstlevel-marshal.list > gstlevel-marshal.h.tmp
	mv gstlevel-marshal.h.tmp gstlevel-marshal.h
                                                                                
gstlevel-marshal.c: gstlevel-marshal.list
	echo "#include \"glib.h\"" > gstlevel-marshal.c.tmp
	echo "#include \"glib-object.h\"" >> gstlevel-marshal.c.tmp
	echo "#include \"gstlevel-marshal.h\"" >> gstlevel-marshal.c.tmp
	glib-genmarshal --body --prefix=gstlevel_cclosure_marshal $(srcdir)/gstlevel-marshal.list >> gstlevel-marshal.c.tmp
	mv gstlevel-marshal.c.tmp gstlevel-marshal.c
                                                                                
# Don't want the generated marshal files in the dist
dist-hook:
	rm -f $(distdir)/gstlevel-marshal.c
	rm -f $(distdir)/gstlevel-marshal.h

EXTRA_DIST = README