1 # Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Free Software
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.
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 EXTRA_DIST = gnashrc.in gnashpluginrc.in
21 sysconf_DATA = gnashrc gnashpluginrc
23 # this is where Gnash plugins get installed
24 pluginsdir = $(prefix)/lib/gnash/plugins
26 # If we are using an installable libltdl, then it needs to be built
27 # before libgnash, as libgnash depends on it for extensions.
28 pkglib_LTLIBRARIES = libgnashbase.la
30 libgnashbase_la_CPPFLAGS = -DPLUGINSDIR=\"$(pluginsdir)\" \
31 -DSYSCONFDIR=\"$(sysconfdir)\" \
32 -I$(top_srcdir)/libltdl \
46 libgnashbase_la_CPPFLAGS += $(ANDROID_NDK)/usr/include
49 # These headers get installed
51 libgnashbase_la_LIBADD = \
63 libgnashbase_la_SOURCES = \
68 GnashFileUtilities.cpp \
84 noseek_fd_adapter.cpp \
90 URLAccessManager.cpp \
96 libgnashbase_la_SOURCES += SharedMemHaiku.cpp
99 libgnashbase_la_SOURCES += SharedMemHaiku.cpp
101 libgnashbase_la_SOURCES += SharedMem.cpp
106 -e 's|@DEFAULT_FLASH_PLATFORM_ID[@]|$(DEFAULT_FLASH_PLATFORM_ID)|g' \
107 -e 's|@DEFAULT_FLASH_MAJOR_VERSION[@]|$(DEFAULT_FLASH_MAJOR_VERSION)|g' \
108 -e 's|@DEFAULT_FLASH_MINOR_VERSION[@]|$(DEFAULT_FLASH_MINOR_VERSION)|g' \
109 -e 's|@DEFAULT_FLASH_REV_NUMBER[@]|$(DEFAULT_FLASH_REV_NUMBER)|g' \
110 -e 's|@DEFAULT_STREAMS_TIMEOUT[@]|$(DEFAULT_STREAMS_TIMEOUT)|g' \
111 -e 's|@DEFAULT_SOL_SAFEDIR[@]|$(DEFAULT_SOL_SAFEDIR)|g'
113 gnashrc: gnashrc.in Makefile
114 $(edit) '$(srcdir)/$@.in' >$@
116 gnashpluginrc: gnashpluginrc.in
117 $(edit) '$(srcdir)/$@.in' >$@
120 libgnashbase_la_SOURCES += GnashImagePng.cpp
124 libgnashbase_la_SOURCES += GnashImageGif.cpp
128 noinst_LTLIBRARIES = libltdlc.la
129 libltdlc_la_CPPFLAGS = $(LTDLINCL) -I$(top_srcdir)/libltdl
130 libltdlc_la_SOURCES = $(top_srcdir)/libltdl/ltdl.c
131 libgnashbase_la_LIBADD += $(top_builddir)/libbase/libltdlc.la
135 libgnashbase_la_LIBADD += $(top_builddir)/libltdl/libltdlc.la
140 libgnashbase_la_LIBADD += $(HAIKU_LIBS)
144 libgnashbase_la_LIBADD += -lws2_32 -lwinmm
147 # Maybe use jemalloc, which handles memory fragmentation for
148 # ECAMscript languages better than the regular system malloc.
149 # This is controlled by the --enable-jemalloc (disabled by default)
173 GnashSystemFDHeaders.h \
174 GnashSystemNetHeaders.h \
175 GnashSystemIOHeaders.h \
176 GnashFileUtilities.h \
180 noseek_fd_adapter.h \
192 noinst_HEADERS += GnashImagePng.h
195 noinst_HEADERS += GnashImageGif.h
226 instdir = $(includedir)/gnash
227 inst_HEADERS += $(EXTENSIONS_API)
229 libgnashbase_la_LDFLAGS = -release $(VERSION)
230 libgnashbase_la_DEPENDENCIES = $(LIBLTDLLIB)
232 if BUILD_OGL_RENDERER
233 libgnashbase_la_SOURCES += \
243 libgnashbase_la_SOURCES += \
244 GnashVaapiImage.cpp \
249 GnashVaapiImageProxy.h \
253 libgnashbase_la_SOURCES += \
254 GnashVaapiTexture.cpp \
258 GnashVaapiTexture.h \
263 libgnashbase_la_CPPFLAGS += \
264 -I$(top_srcdir)/libvaapi \
267 libgnashbase_la_LIBADD += \
268 $(top_builddir)/libvaapi/libgnashvaapi.la \
271 libgnashbase_la_DEPENDENCIES += \
272 $(top_builddir)/libvaapi/libgnashvaapi.la \
278 libgnashbase_la_LDFLAGS += -no-undefined
279 libgnashbase_la_LIBADD += -lws2_32 -lwinmm
283 AM_CXXFLAGS = $(PCH_FLAGS)
286 CLEANFILES = libltdl.la libltdlc.la gnashrc gnashpluginrc
288 # Rebuild with GCC 4.x Mudflap support
290 @echo "Rebuilding with GCC Mudflap support"
291 $(MAKE) CXXFLAGS="$(CXXFLAGS) -fmudflap" LDFLAGS="$(LDFLAGS) -lmudflap"