e5121edfd5c6471f50e268a78e26629d558eaf96
[platform/upstream/gstreamer.git] / examples / manual / Makefile.am
1 if HAVE_LIBGNOMEUI
2 GNOME=gnome
3 else
4 GNOME=
5 endif
6
7 if GST_DISABLE_AUTOPLUG
8 GST_AUTOPLUG_SRC =
9 else
10 GST_AUTOPLUG_SRC = helloworld2
11 endif
12
13 if GST_DISABLE_LOADSAVE
14 GST_LOADSAVE_SRC =
15 else
16 GST_LOADSAVE_SRC = xml-mp3
17 endif
18
19 EXAMPLES = dynamic $(GNOME) helloworld $(GST_AUTOPLUG_SRC) queue threads $(GST_LOADSAVE_SRC)
20 noinst_PROGRAMS = $(EXAMPLES)
21
22 LDADD = $(GST_LIBS)
23 INCLUDES = $(GST_CFLAGS)
24
25 #dynamic_LDADD = $(GST_LIBS) $(LIBGNOMEUI_LIBS)
26 #dynamic_CFLAGS = $(GST_CFLAGS) $(LIBGNOMEUI_CFLAGS)
27 gnome_LDADD = $(GST_LIBS) $(LIBGNOMEUI_LIBS)
28 gnome_CFLAGS = $(GST_CFLAGS) $(LIBGNOMEUI_CFLAGS)
29
30 EXTRA_DIST = extract.pl
31
32 # for some reason specifying %.c runs us into trouble when running make
33 # clean, it starts looking for things like mostlyclean-am.c, please
34 # help me fix that so we don't need to specify all sources here
35 # also, it's a bit irritating that right now a change in any xml file
36 # triggers a rebuild of all examples
37 #%.c:
38 dynamic.c gnome.c helloworld.c helloworld2.c queue.c threads.c xml-mp3.c: $(top_srcdir)/docs/manual/*.xml
39         $(PERL_PATH) $(srcdir)/extract.pl $@ $(top_srcdir)/docs/manual/*.xml