add gnash_la_CPPFLAGS to see if it makes distcheck happy
[gnash.git] / libvaapi / Makefile.am
blob19c3d5d91e49bec8c080baf515f72c62164b85e6
1
2 # Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
3
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.
8
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.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17 AUTOMAKE_OPTIONS = foreign
19 pkglib_LTLIBRARIES = libgnashvaapi.la
21 libgnashvaapi_la_CPPFLAGS = \
22         -I$(top_srcdir)/libbase \
23         $(BOOST_CFLAGS) \
24         $(FFMPEG_CFLAGS) \
25         $(LIBVA_CFLAGS) \
26         $(LIBVA_X11_CFLAGS) \
27         $(NULL)
29 libgnashvaapi_la_LIBADD = \
30         $(X11_LIBS) \
31         $(BOOST_LIBS) \
32         $(PTHREAD_LIBS) \
33         $(FFMPEG_LIBS) \
34         $(LIBVA_LIBS) \
35         $(LIBVA_X11_LIBS) \
36         $(NULL)
38 libgnashvaapi_la_SOURCES = \
39         vaapi_utils.cpp \
40         VaapiContext.cpp \
41         VaapiDisplay.cpp \
42         VaapiGlobalContext.cpp \
43         VaapiImage.cpp \
44         VaapiImageFormat.cpp \
45         VaapiSubpicture.cpp \
46         VaapiSurface.cpp \
47         VaapiSurfaceProxy.cpp \
48         $(NULL)
50 noinst_HEADERS = \
51         vaapi_common.h \
52         vaapi_utils.h \
53         VaapiContext.h \
54         VaapiDisplay.h \
55         VaapiDisplayX11.h \
56         VaapiDisplayGLX.h \
57         VaapiException.h \
58         VaapiGlobalContext.h \
59         VaapiImage.h \
60         VaapiImageFormat.h \
61         VaapiSubpicture.h \
62         VaapiSurface.h \
63         VaapiSurfaceGLX.h \
64         VaapiSurfaceProxy.h \
65         $(NULL)
67 if HAVE_VAAPI_GLX
68 libgnashvaapi_la_CPPFLAGS += \
69         $(LIBVA_GLX_CFLAGS) \
70         $(NULL)
72 libgnashvaapi_la_LIBADD += \
73         $(LIBVA_GLX_LIBS) \
74         $(NULL)
76 libgnashvaapi_la_SOURCES += \
77         VaapiSurfaceGLX.cpp \
78         $(NULL)
79 endif
81 libgnashvaapi_la_LDFLAGS = -release $(VERSION)
83 # Rebuild with GCC 4.x Mudflap support
84 mudflap:
85         @echo "Rebuilding with GCC Mudflap support"
86         $(MAKE) CXXFLAGS="$(CXXFLAGS) -fmudflap" LDFLAGS="$(LDFLAGS) -lmudflap"
88 clean-hook:
89         -rm -f core.* *.obj