gstreamer/tools/Makefile.am
Tim-Philipp Müller 3a2dc6f518 tools: fix linking problems caused by accidentally linking against installed pbutils/gstvideo libs
Fixes build errors in jhbuild:
/foo/build/gst-plugins-base/gst-libs/gst/video/.libs/libgstvideo-0.10.so: undefined reference to `gst_element_factory_list_get_elements'
../gst-libs/gst/pbutils/.libs/libgstpbutils-0.10.so: undefined reference to `gst_element_link_pads_full'
/foo/build/gst-plugins-base/gst-libs/gst/video/.libs/libgstvideo-0.10.so: undefined reference to `gst_element_factory_list_filter'
../gst-libs/gst/pbutils/.libs/libgstpbutils-0.10.so: undefined reference to `gst_pad_link_full'
/foo/build/gst-plugins-base/gst-libs/gst/video/.libs/libgstvideo-0.10.so: undefined reference to `gst_plugin_feature_list_debug'
2010-10-21 13:07:34 +01:00

36 lines
895 B
Makefile

bin_SCRIPTS = \
gst-visualise-@GST_MAJORMINOR@
man_MANS = \
gst-visualise-@GST_MAJORMINOR@.1
bin_PROGRAMS = \
gst-discoverer
CLEANFILES = $(man_MANS) $(bin_SCRIPTS) $(bin_PROGRAMS)
EXTRA_DIST = \
gst-visualise-m.m gst-visualise.1.in \
gst-discoverer.c
LDADD = $(top_builddir)/gst-libs/gst/pbutils/libgstpbutils-@GST_MAJORMINOR@.la\
$(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_MAJORMINOR@.la\
$(GST_BASE_LIBS) $(GST_LIBS)
AM_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS)
# generate versioned scripts from templates
%-@GST_MAJORMINOR@: %-m.m
$(AM_V_GEN)sed -e s,\@GST_MAJORMINOR\@,@GST_MAJORMINOR@,g $< > $@ && \
chmod +x $@
# generate man pages
%-@GST_MAJORMINOR@.1: %.1.in
$(AM_V_GEN)sed \
-e s,gst-visualise,gst-visualise-@GST_MAJORMINOR@,g \
$< >$@
all: all-am chmod
chmod: $(bin_SCRIPTS)
@chmod +x $^