<climits> is needed for INT_MAX in agg2 headers
[gnash.git] / librender / Makefile.am
blob54a81b816d62d144bd7a88bcfbd5b5dc82eb0f64
1
2 #   Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
4 #   This program is free software; you can redistribute it and/or modify
5 #   it under the terms of the GNU General Public License as published by
6 #   the Free Software Foundation; either version 3 of the License, or
7 #   (at your option) any later version.
9 #   This program is distributed in the hope that it will be useful,
10 #   but WITHOUT ANY WARRANTY; without even the implied warranty of
11 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 #   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
20 ## Process this file with automake to generate Makefile.in
22 AUTOMAKE_OPTIONS =
24 # this is where Gnash plugins get installed
25 pluginsdir = $(libdir)/gnash/plugins
27 ## WARNING: make sure GLIB_LIBS appears first
28 ## See: http://lists.gnu.org/archive/html/gnash-dev/2006-07/msg00076.html
29 AM_CPPFLAGS = -I.. \
30         -I$(srcdir) \
31         -I$(top_srcdir) \
32         -I$(top_srcdir)/libcore \
33         -I$(top_srcdir)/libcore/parser \
34         -I$(top_srcdir)/libcore/swf \
35         -I$(top_srcdir)/libbase \
36         -I$(top_srcdir)/librender \
37         $(PTHREAD_CFLAGS) \
38         $(SDL_CFLAGS) \
39         $(PANGO_CFLAGS) \
40         $(GLIB_CFLAGS) \
41         $(ATK_CFLAGS) \
42         $(DMALLOC_CFLAGS) \
43         $(PNG_CFLAGS) \
44         $(JPEG_CFLAGS) \
45         $(OGG_CFLAGS) \
46         $(BOOST_CFLAGS) \
47         $(OPENGL_CFLAGS) \
48         $(AGG_CFLAGS) \
49         $(CAIRO_CFLAGS) \
50         $(NULL)
52 GNASH_LIBS = \
53         $(top_builddir)/libcore/libgnashcore.la \
54         $(top_builddir)/libbase/libgnashbase.la \
55         $(NULL)
57 instdir = $(includedir)/gnash
59 inst_HEADERS = \
60         Renderer.h \
61         $(NULL)
63 noinst_HEADERS = \
64         agg/Renderer_agg.h \
65         agg/Renderer_agg_bitmap.h \
66         agg/Renderer_agg_style.h \
67         opengl/tu_opengl_includes.h \
68         opengl/Renderer_ogl.h \
69         cairo/Renderer_cairo.h \
70         cairo/PathParser.h
71         $(NULL)
73 pkglib_LTLIBRARIES = libgnashrender.la
74 libgnashrender_la_LIBADD = $(LIBVA_LIBS) $(LIBVA_X11_LIBS) $(LIBVA_GLX_LIBS)
75 libgnashrender_la_LDFLAGS =  -release $(VERSION) 
76 libgnashrender_la_SOURCES =
78 if BUILD_OGL_RENDERER
79 libgnashrender_la_SOURCES += opengl/Renderer_ogl.cpp
80 libgnashrender_la_LIBADD += $(OPENGL_LIBS)
81 endif
83 if  BUILD_AGG_RENDERER
84 libgnashrender_la_SOURCES += agg/Renderer_agg.cpp 
85 libgnashrender_la_LIBADD += $(AGG_LIBS) $(LIBVA)
86 endif
88 if  BUILD_CAIRO_RENDERER
89 libgnashrender_la_SOURCES += cairo/Renderer_cairo.cpp
90 libgnashrender_la_SOURCES += cairo/PathParser.cpp
91 libgnashrender_la_LIBADD += $(CAIRO_LIBS)
92 endif
94 # Rebuild with GCC 4.x Mudflap support
95 mudflap:
96         @echo "Rebuilding with GCC Mudflap support"
97         $(MAKE) CXXFLAGS="`$(CXXFLAGS) -fmudflap" LDFLAGS="$(LDFLAGS) -lmudflap"
99 clean-hook:
100         -rm -f core.*
103 if ENABLE_PCH
104 AM_CXXFLAGS = $(PCH_FLAGS)
105 endif