Merge branch 'master' into release_0_8_9
[gnash.git] / extensions / gtk2 / Makefile.am
blob8ac117c2f44219abbeaeb2be71a4814642cfb96b
1 ## Process this file with automake to generate Makefile.in
2
3 #   Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010,
4 #   2011 Free Software Foundation, Inc.
5
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
10
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19 AUTOMAKE_OPTIONS = 
21 # this is where Gnash plugins get installed
22 pluginsdir = $(libdir)/gnash/plugins
24 plugins_LTLIBRARIES = gtkext.la
25 DEF_MAKESWF_FLAGS = -I $(top_srcdir)/testsuite/actionscript.all
27 AM_CPPFLAGS = \
28         -I$(top_srcdir)/libbase \
29         -I$(top_srcdir)/gui \
30         -I$(top_srcdir)/libcore \
31         -I$(top_srcdir)/libcore/abc \
32         -I$(top_srcdir)/libcore/swf \
33         -I$(top_srcdir)/libcore/vm \
34         -I$(top_srcdir)/libcore/parser \
35         -I$(top_srcdir)/libcore/asobj \
36         $(SDL_CFLAGS) \
37         $(BOOST_CFLAGS) \
38         $(PTHREAD_CFLAGS) \
39         $(GTK2_CFLAGS) \
40         $(GLEXT_CFLAGS) \
41         $(GLIB_CFLAGS) \
42         $(PANGO_CFLAGS) \
43         $(ATK_CFLAGS) \
44         $(CAIRO_CFLAGS) \
45         $(NULL)
47 AM_LDFLAGS =  \
48         $(top_builddir)/libbase/libgnashbase.la \
49         $(top_builddir)/libcore/libgnashcore.la \
50         $(GTK2_LIBS) \
51         $(GLEXT_LIBS) \
52         $(CAIRO_LIBS) \
53         $(PANGO_LIBS) \
54         $(ATK_LIBS) \
55         $(GLIB_LIBS) \
56         $(EXPAT_LIBS) \
57         $(BOOST_LIBS) \
58         $(PTHREAD_LIBS) \
59         $(NULL)
61 gtkext_la_SOURCES = gtkext.cpp gtkext.h
62 gtkext_la_CPPFLAGS = $(AM_CPPFLAGS)
63 gtkext_la_LDFLAGS = -module -avoid-version # -no-undefined
64 gtkext_la_LIBDADD = $(LIBADD_DL) $(AM_LDFLAGS)
66 # check_PROGRAMS = hello
67 CLEANFILES = \
68         gnash-dbg.log\
69         hello.swf.frame0.pp \
70         hello.swf \
71         logfile
73 # hello: hello.swf
74 #       ../../utilities/gprocessor hello.swf
76 # noinst_SCRIPTS = hello.as
77 # hello.swf: hello.as
79 SUFFIXES = as swf
80 .as.swf: 
81         $(MAKESWF) $(DEF_MAKESWF_FLAGS) $(MAKESWF_FLAGS) -o $@ $<
83 install-pluginsLTLIBRARIES: $(plugins_LTLIBRARIES)
84         test -d "$(DESTDIR)$(pluginsdir)" || $(mkinstalldirs) "$(DESTDIR)$(pluginsdir)"
85         $(LIBTOOL) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $(plugins_LTLIBRARIES) "$(DESTDIR)$(pluginsdir)/$(plugins_LTLIBRARIES)"
86         $(RM) $(DESTDIR)$(pluginsdir)/*.a 
88 uninstall-local:
89         $(RM) $(DESTDIR)$(pluginsdir)/gtk2.so