Merge remote-tracking branch 'origin/master' into 0.11
[platform/upstream/gstreamer.git] / tools / Makefile.am
1 bin_SCRIPTS = \
2         gst-visualise-@GST_MAJORMINOR@
3
4 man_MANS = \
5         gst-visualise-@GST_MAJORMINOR@.1
6
7 bin_PROGRAMS = \
8         gst-discoverer-@GST_MAJORMINOR@
9
10 gst_discoverer_@GST_MAJORMINOR@_SOURCES = gst-discoverer.c
11
12 CLEANFILES = $(man_MANS) $(bin_SCRIPTS) $(bin_PROGRAMS)
13
14 EXTRA_DIST = \
15         gst-visualise-m.m gst-visualise.1.in
16
17
18 LDADD = $(top_builddir)/gst-libs/gst/pbutils/libgstpbutils-@GST_MAJORMINOR@.la \
19         $(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_MAJORMINOR@.la \
20         $(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_MAJORMINOR@.la \
21         $(GST_BASE_LIBS) $(GST_LIBS)
22
23 AM_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS)
24
25 # generate versioned scripts from templates
26 %-@GST_MAJORMINOR@: %-m.m
27         $(AM_V_GEN)sed -e s,\@GST_MAJORMINOR\@,@GST_MAJORMINOR@,g $< > $@ && \
28         chmod +x $@
29
30 # generate man pages
31 %-@GST_MAJORMINOR@.1: %.1.in
32         $(AM_V_GEN)sed \
33                 -e s,gst-visualise,gst-visualise-@GST_MAJORMINOR@,g \
34                 $< >$@
35
36 all: all-am chmod
37
38 chmod: $(bin_SCRIPTS)
39         @chmod +x $^
40
41 Android.mk: Makefile.am
42         androgenizer -:PROJECT gst-discoverer \
43          -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
44          -:EXECUTABLE gst-discoverer -:TAGS eng debug \
45          -:SOURCES $(gst_discoverer_@GST_MAJORMINOR@_SOURCES) \
46          -:CFLAGS $(DEFS) $(AM_CFLAGS) \
47          -:LDFLAGS -lgstpbutils-@GST_MAJORMINOR@ -lgstvideo-@GST_MAJORMINOR@ \
48                    $(GST_BASE_LIBS) $(GST_LIBS) \
49          -:PASSTHROUGH LOCAL_ARM_MODE:=arm \
50         > $@