update copyright date
[gnash.git] / librender / Makefile.am
blobf1ed0fea36eede356fb714e540a7d991212fa424
1
2 #   Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010,
3 #   2011 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.
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
21 ## Process this file with automake to generate Makefile.in
23 AUTOMAKE_OPTIONS =
25 # this is where Gnash plugins get installed
26 pluginsdir = $(libdir)/gnash/plugins
28 ## WARNING: make sure GLIB_LIBS appears first
29 ## See: http://lists.gnu.org/archive/html/gnash-dev/2006-07/msg00076.html
30 AM_CPPFLAGS = -I.. \
31         -I$(srcdir) \
32         -I$(top_srcdir) \
33         -I$(top_srcdir)/libcore \
34         -I$(top_srcdir)/libcore/parser \
35         -I$(top_srcdir)/libcore/swf \
36         -I$(top_srcdir)/libbase \
37         -I$(top_srcdir)/librender \
38         $(PTHREAD_CFLAGS) \
39         $(SDL_CFLAGS) \
40         $(PANGO_CFLAGS) \
41         $(GLIB_CFLAGS) \
42         $(ATK_CFLAGS) \
43         $(DMALLOC_CFLAGS) \
44         $(PNG_CFLAGS) \
45         $(JPEG_CFLAGS) \
46         $(OGG_CFLAGS) \
47         $(BOOST_CFLAGS) \
48         $(OPENGL_CFLAGS) \
49         $(AGG_CFLAGS) \
50         $(CAIRO_CFLAGS) \
51         $(NULL)
53 GNASH_LIBS = \
54         $(top_builddir)/libcore/libgnashcore.la \
55         $(top_builddir)/libbase/libgnashbase.la \
56         $(NULL)
58 instdir = $(includedir)/gnash
60 inst_HEADERS = \
61         Renderer.h \
62         $(NULL)
64 noinst_HEADERS = \
65         agg/Renderer_agg.h \
66         agg/LinearRGB.h \
67         agg/Renderer_agg_bitmap.h \
68         agg/Renderer_agg_style.h \
69         opengl/tu_opengl_includes.h \
70         opengl/Renderer_ogl.h \
71         cairo/Renderer_cairo.h \
72         cairo/PathParser.h
73         $(NULL)
75 pkglib_LTLIBRARIES = libgnashrender.la
76 libgnashrender_la_LIBADD = $(LIBVA_LIBS) $(LIBVA_X11_LIBS) $(LIBVA_GLX_LIBS)
77 libgnashrender_la_LDFLAGS =  -release $(VERSION) 
78 libgnashrender_la_SOURCES =
80 if BUILD_OGL_RENDERER
81 libgnashrender_la_SOURCES += opengl/Renderer_ogl.cpp
82 libgnashrender_la_LIBADD += $(OPENGL_LIBS)
83 endif
85 if  BUILD_AGG_RENDERER
86 libgnashrender_la_SOURCES += agg/Renderer_agg.cpp 
87 libgnashrender_la_LIBADD += $(AGG_LIBS) $(LIBVA)
88 endif
90 if  BUILD_CAIRO_RENDERER
91 libgnashrender_la_SOURCES += cairo/Renderer_cairo.cpp
92 libgnashrender_la_SOURCES += cairo/PathParser.cpp
93 libgnashrender_la_LIBADD += $(CAIRO_LIBS)
94 endif
96 # Rebuild with GCC 4.x Mudflap support
97 mudflap:
98         @echo "Rebuilding with GCC Mudflap support"
99         $(MAKE) CXXFLAGS="`$(CXXFLAGS) -fmudflap" LDFLAGS="$(LDFLAGS) -lmudflap"
101 clean-hook:
102         -rm -f core.*
105 if ENABLE_PCH
106 AM_CXXFLAGS = $(PCH_FLAGS)
107 endif