use getStride() instead of calculating it ourselves
[gnash.git] / libdevice / Makefile.am
blob85713733b309a38ff4f5f863f721983e4792594f
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
19 ## Process this file with automake to generate Makefile.in
21 AUTOMAKE_OPTIONS =
23 # this is where Gnash plugins get installed
24 pluginsdir = $(libdir)/gnash/plugins
26 ## WARNING: make sure GLIB_LIBS appears first
27 ## See: http://lists.gnu.org/archive/html/gnash-dev/2006-07/msg00076.html
28 AM_CPPFLAGS = -I.. \
29         -I$(srcdir) \
30         -I$(top_srcdir) \
31         -I$(top_srcdir)/libmedia \
32         -I$(top_srcdir)/libbase \
33         -I$(top_srcdir)/librender \
34         -I$(top_srcdir)/libcore \
35         -I$(top_srcdir)/libcore/vm \
36         -I$(top_srcdir)/libcore/parser \
37         -I$(top_srcdir)/libcore/swf \
38         -I$(top_srcdir)/gui \
39         $(PTHREAD_CFLAGS) \
40         $(SDL_CFLAGS) \
41         $(PANGO_CFLAGS) \
42         $(GLIB_CFLAGS) \
43         $(GTK2_CFLAGS) \
44         $(ATK_CFLAGS) \
45         $(DMALLOC_CFLAGS) \
46         $(PNG_CFLAGS) \
47         $(JPEG_CFLAGS) \
48         $(OGG_CFLAGS) \
49         $(BOOST_CFLAGS) \
50         $(OPENGL_CFLAGS) \
51         $(AGG_CFLAGS) \
52         $(DIRECTFB_CFLAGS) \
53         $(CAIRO_CFLAGS) \
54         $(NULL)
56 GNASH_LIBS = \
57         $(top_builddir)/libmedia/libgnashmedia.la \
58         $(top_builddir)/libbase/libgnashbase.la \
59         $(NULL)
61 instdir = $(includedir)/gnash
63 noinst_HEADERS = \
64         GnashDevice.h \
65         DeviceGlue.h \
66         $(NULL)
68 pkglib_LTLIBRARIES =  libgnashdevice.la
70 libgnashdevice_la_CPPFLAGS = $(AM_CPPFLAGS)
71 libgnashdevice_la_LIBADD = \
72         $(CURL_LIBS) \
73         $(LIBVA_LIBS) \
74         $(LIBVA_X11_LIBS) \
75         $(LIBVA_GLX_LIBS) \
76         $(TS_LIBS) \
77         $(LTDL_LIBS) \
78         $(GNASH_LIBS)
79 libgnashdevice_la_LDFLAGS =  -release $(VERSION) 
80 libgnashdevice_la_SOURCES = \
81         GnashDevice.h \
82         DeviceGlue.h
84 if BUILD_X11_DEVICE
85 libgnashdevice_la_CPPFLAGS += $(X11_CFLAGS)
86 libgnashdevice_la_SOURCES += \
87         x11/X11Device.cpp \
88         x11/X11Device.h
89 libgnashdevice_la_LIBADD += \
90         $(TS_LIBS) \
91         $(X11_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.*
102 if ENABLE_PCH
103 AM_CXXFLAGS = $(PCH_FLAGS)
104 endif
106 bin_PROGRAMS =
107 check_PROGRAMS =
109 if BUILD_RAWFB_DEVICE
110 include rawfb/rawfb.am
111 endif
113 # This is for Linux Input Event support
114 if ENABLE_INPUT_EVENTS
115 include events/events.am
116 endif
118 if BUILD_EGL_DEVICE
119 include egl/egl.am
120 endif
122 if BUILD_DIRECTFB_DEVICE
123 include directfb/directfb.am
124 endif
126 if BUILD_X11_DEVICE
127 check_PROGRAMS += test_x11
128 test_x11_SOURCES = x11/test_x11.cpp
129 test_x11_CPPFLAGS = $(AM_CPPFLAGS) $(X11_CFLAGS)
130 test_x11_LDADD = \
131         libgnashdevice.la \
132         $(X11_LIBS) \
133         $(GNASH_LIBS)
134 endif
136 if BUILD_VAAPI_DEVICE
137 include vaapi/vaapi.am
138 endif