1# 2# Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 3# Free Software Foundation, Inc. 4# 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. 9# 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# 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 18# 19 20## Process this file with automake to generate Makefile.in 21 22AUTOMAKE_OPTIONS = 23 24# this is where Gnash plugins get installed 25pluginsdir = $(libdir)/gnash/plugins 26 27## WARNING: make sure GLIB_LIBS appears first 28## See: http://lists.gnu.org/archive/html/gnash-dev/2006-07/msg00076.html 29AM_CPPFLAGS = -I.. \ 30 -I$(srcdir) \ 31 -I$(top_srcdir) \ 32 -I$(top_srcdir)/libmedia \ 33 -I$(top_srcdir)/libbase \ 34 -I$(top_srcdir)/librender \ 35 -I$(top_srcdir)/libcore \ 36 -I$(top_srcdir)/libcore/vm \ 37 -I$(top_srcdir)/libcore/parser \ 38 -I$(top_srcdir)/libcore/swf \ 39 -I$(top_srcdir)/gui \ 40 $(PTHREAD_CFLAGS) \ 41 $(SDL_CFLAGS) \ 42 $(PANGO_CFLAGS) \ 43 $(GLIB_CFLAGS) \ 44 $(GTK2_CFLAGS) \ 45 $(ATK_CFLAGS) \ 46 $(DMALLOC_CFLAGS) \ 47 $(PNG_CFLAGS) \ 48 $(JPEG_CFLAGS) \ 49 $(OGG_CFLAGS) \ 50 $(BOOST_CFLAGS) \ 51 $(OPENGL_CFLAGS) \ 52 $(AGG_CFLAGS) \ 53 $(DIRECTFB_CFLAGS) \ 54 $(CAIRO_CFLAGS) \ 55 $(NULL) 56 57instdir = $(includedir)/gnash 58 59noinst_HEADERS = \ 60 GnashDevice.h \ 61 DeviceGlue.h \ 62 $(NULL) 63 64pkglib_LTLIBRARIES = libgnashdevice.la 65 66libgnashdevice_la_CPPFLAGS = $(AM_CPPFLAGS) 67libgnashdevice_la_LIBADD = \ 68 $(CURL_LIBS) \ 69 $(LIBVA_LIBS) \ 70 $(LIBVA_X11_LIBS) \ 71 $(LIBVA_GLX_LIBS) \ 72 $(TS_LIBS) \ 73 $(LTDL_LIBS) \ 74 $(GNASH_LIBS) 75libgnashdevice_la_LDFLAGS = -release $(VERSION) 76libgnashdevice_la_SOURCES = \ 77 GnashDevice.h \ 78 DeviceGlue.h \ 79 DeviceGlue.cpp \ 80 $(NULL) 81 82if BUILD_X11_DEVICE 83libgnashdevice_la_CPPFLAGS += $(X11_CFLAGS) 84libgnashdevice_la_SOURCES += \ 85 x11/X11Device.cpp \ 86 x11/X11Device.h 87libgnashdevice_la_LIBADD += \ 88 $(TS_LIBS) \ 89 $(X11_LIBS) 90endif 91 92# Rebuild with GCC 4.x Mudflap support 93mudflap: 94 @echo "Rebuilding with GCC Mudflap support" 95 $(MAKE) CXXFLAGS="`$(CXXFLAGS) -fmudflap" LDFLAGS="$(LDFLAGS) -lmudflap" 96 97clean-hook: 98 -rm -f core.* 99 100AM_CXXFLAGS = $(CROSS_CXXFLAGS) 101# AM_LDFLAGS = $(CROSS_LDFLAGS) 102 103if ENABLE_PCH 104AM_CXXFLAGS += $(PCH_FLAGS) 105endif 106 107bin_PROGRAMS = 108check_PROGRAMS = 109 110if BUILD_RAWFB_DEVICE 111include rawfb/rawfb.am 112endif 113 114# This is for Linux Input Event support 115if ENABLE_INPUT_EVENTS 116include events/events.am 117endif 118 119if BUILD_EGL_DEVICE 120include egl/egl.am 121endif 122 123if BUILD_DIRECTFB_DEVICE 124include directfb/directfb.am 125endif 126 127if BUILD_VAAPI_DEVICE 128include vaapi/vaapi.am 129endif 130