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 \
47 libgnashbase_la_CPPFLAGS += $(ANDROID_NDK)/usr/include
50 # These headers get installed
52 libgnashbase_la_LIBADD = \
64 libgnashbase_la_SOURCES = \
70 GnashFileUtilities.cpp \
86 noseek_fd_adapter.cpp \
92 URLAccessManager.cpp \
98 libgnashbase_la_SOURCES += SharedMemHaiku.cpp
101 libgnashbase_la_SOURCES += SharedMemHaiku.cpp
104 libgnashbase_la_SOURCES += SharedMemW32.cpp
106 libgnashbase_la_SOURCES += SharedMem.cpp
112 -e 's|@DEFAULT_FLASH_PLATFORM_ID[@]|$(DEFAULT_FLASH_PLATFORM_ID)|g' \
113 -e 's|@DEFAULT_FLASH_MAJOR_VERSION[@]|$(DEFAULT_FLASH_MAJOR_VERSION)|g' \
114 -e 's|@DEFAULT_FLASH_MINOR_VERSION[@]|$(DEFAULT_FLASH_MINOR_VERSION)|g' \
115 -e 's|@DEFAULT_FLASH_REV_NUMBER[@]|$(DEFAULT_FLASH_REV_NUMBER)|g' \
116 -e 's|@DEFAULT_STREAMS_TIMEOUT[@]|$(DEFAULT_STREAMS_TIMEOUT)|g' \
117 -e 's|@DEFAULT_SOL_SAFEDIR[@]|$(DEFAULT_SOL_SAFEDIR)|g'
119 gnashrc: gnashrc.in Makefile
120 $(edit) '$(srcdir)/$@.in' >$@
122 gnashpluginrc: gnashpluginrc.in
123 $(edit) '$(srcdir)/$@.in' >$@
126 libgnashbase_la_SOURCES += GnashImagePng.cpp
130 libgnashbase_la_SOURCES += GnashImageGif.cpp
134 noinst_LTLIBRARIES = libltdlc.la
135 libltdlc_la_CPPFLAGS = $(LTDLINCL) -I$(top_srcdir)/libltdl
136 libltdlc_la_SOURCES = $(top_srcdir)/libltdl/ltdl.c
137 libgnashbase_la_LIBADD += $(top_builddir)/libbase/libltdlc.la
141 libgnashbase_la_LIBADD += $(top_builddir)/libltdl/libltdlc.la
146 libgnashbase_la_LIBADD += $(HAIKU_LIBS)
150 libgnashbase_la_LIBADD += -lws2_32 -lwinmm
153 # Maybe use jemalloc, which handles memory fragmentation for
154 # ECAMscript languages better than the regular system malloc.
155 # This is controlled by the --enable-jemalloc (disabled by default)
180 GnashSystemFDHeaders.h \
181 GnashSystemNetHeaders.h \
182 GnashSystemIOHeaders.h \
183 GnashFileUtilities.h \
187 noseek_fd_adapter.h \
199 noinst_HEADERS += GnashImagePng.h
202 noinst_HEADERS += GnashImageGif.h
234 instdir = $(includedir)/gnash
235 inst_HEADERS += $(EXTENSIONS_API)
237 libgnashbase_la_LDFLAGS = -release $(VERSION)
238 libgnashbase_la_DEPENDENCIES = $(LIBLTDLLIB)
240 if BUILD_OGL_RENDERER
241 libgnashbase_la_SOURCES += \
251 libgnashbase_la_SOURCES += \
252 GnashVaapiImage.cpp \
257 GnashVaapiImageProxy.h \
261 libgnashbase_la_SOURCES += \
262 GnashVaapiTexture.cpp \
266 GnashVaapiTexture.h \
271 libgnashbase_la_CPPFLAGS += \
272 -I$(top_srcdir)/libvaapi \
275 libgnashbase_la_LIBADD += \
276 $(top_builddir)/libvaapi/libgnashvaapi.la \
279 libgnashbase_la_DEPENDENCIES += \
280 $(top_builddir)/libvaapi/libgnashvaapi.la \
286 libgnashbase_la_LDFLAGS += -no-undefined
287 libgnashbase_la_LIBADD += -lws2_32 -lwinmm
291 AM_CXXFLAGS = $(PCH_FLAGS)
294 CLEANFILES = libltdl.la libltdlc.la gnashrc gnashpluginrc
296 # Rebuild with GCC 4.x Mudflap support
298 @echo "Rebuilding with GCC Mudflap support"
299 $(MAKE) CXXFLAGS="$(CXXFLAGS) -fmudflap" LDFLAGS="$(LDFLAGS) -lmudflap"