adding Makefile.am to compile farsight

This commit is contained in:
Yann Leboulanger 2008-01-22 22:48:37 +00:00
parent d3a4029288
commit 87db674203
4 changed files with 45 additions and 24 deletions

View File

@ -29,6 +29,8 @@ AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"], [Gettext package])
AM_GLIB_GNU_GETTEXT
AM_NLS
FARSIGHT_CFLAGS=`$PKG_CONFIG --libs farsight-0.1`
AC_SUBST([FARSIGHT_CFLAGS])
dnl ****
dnl pygtk and gtk+
@ -159,6 +161,7 @@ AC_CONFIG_FILES([
data/defs.py
src/Makefile
src/common/Makefile
src/common/farsight/Makefile
scripts/gajim
scripts/gajim-remote
po/Makefile.in

View File

@ -1,3 +1,4 @@
SUBDIRS = farsight
INCLUDES = \
$(PYTHON_INCLUDES)

View File

@ -1,24 +0,0 @@
CFLAGS=-g `pkg-config --cflags farsight-0.1 pygtk-2.0` -I /usr/include/python2.5 -I. -I farsight/
LDFLAGS=`pkg-config --libs farsight-0.1`
farsight.so: farsight.o farsightmodule.o
$(CC) $(LDFLAGS) -shared $^ -o $@
farsight.c: farsight.defs farsight.override
pygtk-codegen-2.0 \
--prefix farsight \
--override farsight.override \
--register /usr/share/gst-python/0.10/defs/gst-types.defs \
farsight.defs >$@
farsight.defs:
python /usr/share/pygtk/2.0/codegen/h2def.py \
farsight/farsight-codec.h \
farsight/farsight-session.h \
farsight/farsight-stream.h \
>$@
clean:
-rm farsight.c farsightmodule.o farsight.o farsight.so
.PHONY: clean

View File

@ -0,0 +1,41 @@
CLEANFILES = \
farsight.c
INCLUDES = \
$(PYTHON_INCLUDES)
farsightlib_LTLIBRARIES = farsight.la
farsightlibdir = $(libdir)/gajim
farsight_la_LIBADD = $(FARSIGHT_LIBS)
farsight_la_SOURCES = \
farsightmodule.c
nodist_farsight_la_SOURCES = farsight.c
farsight_la_LDFLAGS = \
-module -avoid-version
FARSIGHT_CFLAGS = @FARSIGHT_CFLAGS@
farsight_la_CFLAGS = $(FARSIGHT_CFLAGS) $(PYGTK_CFLAGS) $(PYTHON_INCLUDES) -I farsight/
#farsight_la_CFLAGS = -pthread -I/usr/include/farsight-0.1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gstreamer-0.10 -I/usr/include/libxml2 $(PYGTK_CFLAGS) $(PYTHON_INCLUDES) -I farsight/
farsight.c: farsight.defs farsight.override
pygtk-codegen-2.0 \
--prefix farsight \
--override farsight.override \
--register /usr/share/gst-python/0.10/defs/gst-types.defs \
farsight.defs >$@
farsight.defs:
python /usr/share/pygtk/2.0/codegen/h2def.py \
farsight/farsight-codec.h \
farsight/farsight-session.h \
farsight/farsight-stream.h \
>$@
DISTCLEANFILES =
EXTRA_DIST =
MAINTAINERCLEANFILES = Makefile.in