2009-01-19 07:38:10 +00:00
|
|
|
SUBDIRS = common codegen gst examples plugin testsuite pkgconfig
|
2002-03-24 04:32:10 +00:00
|
|
|
|
2008-01-21 21:21:00 +00:00
|
|
|
common_cflags = $(PYTHON_INCLUDES) $(PYGOBJECT_CFLAGS) $(GST_CFLAGS) $(GST_OPTION_CFLAGS) -fno-strict-aliasing
|
2007-11-08 10:51:07 +00:00
|
|
|
common_libadd = $(GST_LIBS) $(GST_OPTION_LIBS)
|
|
|
|
common_ldflags = -module -avoid-version
|
2007-07-27 11:47:16 +00:00
|
|
|
|
2007-12-18 09:42:57 +00:00
|
|
|
# include before EXTRA_DIST for win32 assignment
|
|
|
|
include $(top_srcdir)/common/win32.mak
|
2007-07-27 11:47:16 +00:00
|
|
|
|
2007-02-16 02:39:56 +00:00
|
|
|
ACLOCAL_AMFLAGS = -I common/m4
|
|
|
|
|
2007-11-08 10:51:07 +00:00
|
|
|
pyexec_LTLIBRARIES =
|
|
|
|
|
|
|
|
if HAVE_PYGOBJECT_2_16
|
|
|
|
pyexec_LTLIBRARIES += gstoption.la
|
|
|
|
endif
|
|
|
|
|
|
|
|
# GStreamer option bindings
|
|
|
|
gstoption_la_CFLAGS = $(common_cflags)
|
|
|
|
gstoption_la_LIBADD = $(common_libadd)
|
|
|
|
gstoption_la_LDFLAGS = $(common_ldflags) \
|
|
|
|
-export-symbols-regex "^(initgstoption|_PyGObject_API).*"
|
|
|
|
gstoption_la_SOURCES = gstoptionmodule.c
|
|
|
|
|
2002-03-24 04:32:10 +00:00
|
|
|
EXTRA_DIST = \
|
2006-09-23 10:43:18 +00:00
|
|
|
gstltihooks.py \
|
2005-09-02 11:01:24 +00:00
|
|
|
pygst.py.in \
|
2004-03-16 18:42:00 +00:00
|
|
|
gst-python.spec.in \
|
|
|
|
gst-python.spec \
|
2007-07-27 11:47:16 +00:00
|
|
|
RELEASE gst-python.doap \
|
|
|
|
$(win32)
|
2003-07-09 23:29:30 +00:00
|
|
|
|
2005-09-02 11:09:54 +00:00
|
|
|
BUILT_SOURCES = pygst.py
|
2006-06-13 10:59:44 +00:00
|
|
|
CLEANFILES = pygst.py pygst.pyc
|
2005-09-02 11:09:54 +00:00
|
|
|
|
2004-06-21 10:18:08 +00:00
|
|
|
include $(top_srcdir)/common/release.mak
|
2005-07-01 10:47:25 +00:00
|
|
|
|
2005-09-02 10:56:19 +00:00
|
|
|
pygst.py: $(top_srcdir)/pygst.py.in Makefile
|
2005-07-12 14:00:03 +00:00
|
|
|
if test -f $@; then chmod +w $@; fi
|
|
|
|
sed -e "s|@PYGSTDIR\@|$(shell pwd)|g" \
|
|
|
|
-e "s|@GST_MAJORMINOR\@|$(GST_MAJORMINOR)|g" \
|
|
|
|
$< > $@
|
|
|
|
chmod -w $@
|
|
|
|
|
|
|
|
# rewrite pygst path in installed pygst.py, install pth file.
|
2005-12-14 17:18:38 +00:00
|
|
|
# they go in pyexecdir, should make 64bit users happy
|
|
|
|
install-exec-local: Makefile
|
2005-07-01 10:47:25 +00:00
|
|
|
$(mkinstalldirs) $(DESTDIR)$(pyexecdir)
|
2005-12-14 17:18:38 +00:00
|
|
|
sed -e "s|@PYGSTDIR\@|$(PYEXECDIR)/gst-$(GST_MAJORMINOR)|g" \
|
|
|
|
-e "s|@GST_MAJORMINOR\@|$(GST_MAJORMINOR)|g" \
|
|
|
|
$(srcdir)/pygst.py.in > $(DESTDIR)$(pyexecdir)/pygst.py
|
|
|
|
chmod 644 $(DESTDIR)$(pyexecdir)/pygst.py
|
2005-07-01 10:47:25 +00:00
|
|
|
echo "gst-$(GST_MAJORMINOR)" > $(DESTDIR)$(pyexecdir)/pygst.pth
|
2005-09-02 11:07:49 +00:00
|
|
|
|
|
|
|
uninstall-local:
|
2005-12-14 17:18:38 +00:00
|
|
|
@rm $(DESTDIR)/$(pyexecdir)/pygst.py > /dev/null 2>&1 || true
|
2005-09-02 11:07:49 +00:00
|
|
|
@rm $(DESTDIR)/$(pyexecdir)/pygst.pth > /dev/null 2>&1 || true
|
2005-09-18 13:24:17 +00:00
|
|
|
|
|
|
|
check-valgrind:
|
2006-04-07 15:41:00 +00:00
|
|
|
cd testsuite/ && make check-valgrind
|
2005-11-23 21:28:24 +00:00
|
|
|
|
|
|
|
check-torture:
|
|
|
|
@true
|
2006-07-03 13:32:08 +00:00
|
|
|
|
|
|
|
include $(top_srcdir)/common/coverage/lcov.mak
|