update copyright date
[gnash.git] / libdevice / Makefile.am
blob991526eec32aedcfc867a3b6bed61afe54e65d95
1
2 #   Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
3 #   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
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)/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)
57 instdir = $(includedir)/gnash
59 noinst_HEADERS = \
60         GnashDevice.h \
61         DeviceGlue.h \
62         $(NULL)
64 pkglib_LTLIBRARIES =  libgnashdevice.la
66 libgnashdevice_la_CPPFLAGS = $(AM_CPPFLAGS)
67 libgnashdevice_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)
75 libgnashdevice_la_LDFLAGS =  -release $(VERSION) 
76 libgnashdevice_la_SOURCES = \
77         GnashDevice.h \
78         DeviceGlue.h \
79         DeviceGlue.cpp \
80         $(NULL)       
82 if BUILD_X11_DEVICE
83 libgnashdevice_la_CPPFLAGS += $(X11_CFLAGS)
84 libgnashdevice_la_SOURCES += \
85         x11/X11Device.cpp \
86         x11/X11Device.h
87 libgnashdevice_la_LIBADD += \
88         $(TS_LIBS) \
89         $(X11_LIBS)
90 endif
92 # Rebuild with GCC 4.x Mudflap support
93 mudflap:
94         @echo "Rebuilding with GCC Mudflap support"
95         $(MAKE) CXXFLAGS="`$(CXXFLAGS) -fmudflap" LDFLAGS="$(LDFLAGS) -lmudflap"
97 clean-hook:
98         -rm -f core.*
100 if ENABLE_PCH
101 AM_CXXFLAGS = $(PCH_FLAGS)
102 endif
104 bin_PROGRAMS =
105 check_PROGRAMS =
107 if BUILD_RAWFB_DEVICE
108 include rawfb/rawfb.am
109 endif
111 # This is for Linux Input Event support
112 if ENABLE_INPUT_EVENTS
113 include events/events.am
114 endif
116 if BUILD_EGL_DEVICE
117 include egl/egl.am
118 endif
120 if BUILD_DIRECTFB_DEVICE
121 include directfb/directfb.am
122 endif
124 if ENABLE_DEVELOPER_TESTS
125 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
135 endif
137 if BUILD_VAAPI_DEVICE
138 include vaapi/vaapi.am
139 endif