6a4dc43c7b8c8b16a58965d3d9738721f4d9b0b3
[platform/upstream/gstreamer.git] / tests / old / examples / manual / Makefile.am
1 if HAVE_LIBGNOMEUI
2 GNOME=gnome
3 else
4 GNOME=
5 endif
6
7 if GST_DISABLE_LOADSAVE
8 GST_LOADSAVE_SRC =
9 else
10 GST_LOADSAVE_SRC = xml-mp3
11 endif
12
13 INCLUDES = $(GST_OBJ_CFLAGS)
14
15 #dynamic_LDADD = $(GST_OBJ_LIBS) $(LIBGNOMEUI_LIBS)
16 #dynamic_CFLAGS = $(GST_OBJ_CFLAGS) $(LIBGNOMEUI_CFLAGS)
17 gnome_LDADD = $(GST_OBJ_LIBS) $(LIBGNOMEUI_LIBS)
18 gnome_CFLAGS = $(GST_OBJ_CFLAGS) $(LIBGNOMEUI_CFLAGS)
19
20 EXTRA_DIST = extract.pl
21
22 EXAMPLES = \
23         dynamic $(GNOME) elementmake elementget helloworld \
24         init popt queue threads $(GST_LOADSAVE_SRC)
25
26 dynamic.c: $(top_srcdir)/docs/manual/dynamic.xml
27         $(PERL_PATH) $(srcdir)/extract.pl $@ $(top_srcdir)/docs/manual/dynamic.xml
28
29 elementmake.c elementget.c: $(top_srcdir)/docs/manual/elements-api.xml
30         $(PERL_PATH) $(srcdir)/extract.pl $@ $(top_srcdir)/docs/manual/elements-api.xml
31
32 gnome.c: $(top_srcdir)/docs/manual/gnome.xml
33         $(PERL_PATH) $(srcdir)/extract.pl $@ $(top_srcdir)/docs/manual/gnome.xml
34
35 helloworld.c: $(top_srcdir)/docs/manual/helloworld.xml
36         $(PERL_PATH) $(srcdir)/extract.pl $@ $(top_srcdir)/docs/manual/helloworld.xml
37
38 init.c popt.c: $(top_srcdir)/docs/manual/init-api.xml
39         $(PERL_PATH) $(srcdir)/extract.pl $@ $(top_srcdir)/docs/manual/init-api.xml
40
41 queue.c: $(top_srcdir)/docs/manual/queues.xml
42         $(PERL_PATH) $(srcdir)/extract.pl $@ $(top_srcdir)/docs/manual/queues.xml
43
44 threads.c: $(top_srcdir)/docs/manual/threads.xml
45         $(PERL_PATH) $(srcdir)/extract.pl $@ $(top_srcdir)/docs/manual/threads.xml
46
47 xml-mp3.c: $(top_srcdir)/docs/manual/xml.xml
48         $(PERL_PATH) $(srcdir)/extract.pl $@ $(top_srcdir)/docs/manual/xml.xml 
49
50 # we use some of the examples as testsuite apps, to verify that
51 # they actually run
52 include $(top_srcdir)/testsuite/Rules
53                                                                                 
54 tests_pass = elementmake elementget init popt
55 tests_fail =
56 tests_ignore =
57
58 noinst_PROGRAMS = $(EXAMPLES)
59 LDADD = $(GST_OBJ_LIBS)