1 ## Process this file with automake to generate Makefile.in
3 # Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 pkgpythondir = $(pyexecdir)/gtk-2.0
19 pkgpyexecdir = $(pyexecdir)/gtk-2.0
23 -I$(top_srcdir)/gui/gtk \
24 -I$(top_srcdir)/gui/pythonmod \
25 -I$(top_srcdir)/libbase \
26 -I$(top_srcdir)/librender \
27 -I$(top_srcdir)/librender/opengl \
28 -I$(top_srcdir)/librender/cairo \
29 -I$(top_srcdir)/librender/agg \
30 -I$(top_srcdir)/libcore \
31 -I$(top_srcdir)/libcore/swf \
32 -I$(top_srcdir)/libcore/vm \
33 -I$(top_srcdir)/libcore/parser \
34 -I$(top_srcdir)/libcore/asobj \
35 -I$(top_srcdir)/libmedia \
36 -I$(top_srcdir)/libvaapi \
37 -I$(top_srcdir)/libsound
45 pkgpyexec_LTLIBRARIES = gnash.la
48 $(top_builddir)/libmedia/libgnashmedia.la \
49 $(top_builddir)/libsound/libgnashsound.la \
50 $(top_builddir)/libcore/libgnashcore.la \
51 $(top_builddir)/libbase/libgnashbase.la \
54 gnash_la_LDFLAGS = -module -avoid-version initgnash -export-dynamic #-no-undefined
59 $(LIBVA_LIBS) $(LIBVA_X11_LIBS)
61 instdir = $(includedir)/gnash
62 inst_HEADERS = gnash-view.h
65 RENDERER_GLUE = $(top_srcdir)/gui/gtk/gtk_glue_gtkglext.cpp
66 INCLUDES += $(GLEXT_CFLAGS)
69 RENDERER_GLUE = $(top_srcdir)/gui/gtk/gtk_glue_agg.cpp
71 if BUILD_CAIRO_RENDERER
72 RENDERER_GLUE = $(top_srcdir)/gui/gtk/gtk_glue_cairo.cpp
76 BUILT_SOURCES = gen-gnash.c
81 nodist_gnash_la_SOURCES = $(BUILT_SOURCES)
85 $(top_srcdir)/gui/gtk/gtk_canvas.cpp \
88 gnash.c: gnash.defs gnash.override
91 EXTRA_DIST = gnash.override gnash.defs
93 gen-gnash.c: gnash.override gnash.defs
95 if test x"$(PYGOBJECT_CODEGEN)" != xno; then \
96 $(PYGOBJECT_CODEGEN) \
97 --register $(PYGTK_DEFSDIR)/gdk-types.defs \
98 --register $(PYGTK_DEFSDIR)/gtk-types.defs \
99 --override $(srcdir)/gnash.override \
100 --prefix pygnash $(srcdir)/gnash.defs > gen-gnash.c; \
101 else if test x"$(PYGTK_CODEGEN)" != xno; then \
103 --register $(PYGTK_DEFSDIR)/gdk-types.defs \
104 --register $(PYGTK_DEFSDIR)/gtk-types.defs \
105 --override $(srcdir)/gnash.override \
106 --prefix pygnash $(srcdir)/gnash.defs > gen-gnash.c; \