1 ## Process this file with automake to generate Makefile.in
3 # Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 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.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23 AM_CXXFLAGS = $(PCH_FLAGS)
26 # noinst_LTLIBRARIES = libserver.la
27 pkglib_LTLIBRARIES = libgnashcore.la
28 # noinst_SCRIPTS = gen-files.sh
30 # TODO: use a conditional to optionally link ?
31 FREETYPE_SOURCES = FreetypeGlyphsProvider.h FreetypeGlyphsProvider.cpp
33 # Only enable if we're configured with --enable-mp3
35 -I$(top_srcdir)/librender \
36 -I$(top_srcdir)/libcore/swf \
37 -I$(top_srcdir)/libcore/abc \
38 -I$(top_srcdir)/libcore/asobj \
39 -I$(top_srcdir)/libcore/asobj/flash \
40 -I$(top_srcdir)/libcore/parser \
41 -I$(top_srcdir)/libltdl \
42 -I$(top_srcdir)/libcore/vm \
43 -I$(top_srcdir)/libbase \
44 -I$(top_srcdir)/libmedia \
45 -I$(top_srcdir)/libsound \
50 $(FONTCONFIG_CFLAGS) \
53 libgnashcore_la_SOURCES = \
57 URLAccessManager.cpp \
67 DisplayObjectContainer.cpp \
78 parser/filter_factory.cpp \
79 InteractiveObject.cpp \
80 ExternalInterface.cpp \
88 swf/TagLoadersTable.cpp \
89 swf/DefaultTagLoaders.cpp \
90 swf/DefineVideoStreamTag.cpp \
91 swf/DefineTextTag.cpp \
92 swf/DefineButtonSoundTag.cpp \
93 swf/DefineButtonCxformTag.cpp \
94 swf/DefineButtonTag.cpp \
95 swf/DefineFontTag.cpp \
96 swf/VideoFrameTag.cpp \
97 swf/DefinitionTag.cpp \
99 swf/SoundInfoRecord.cpp \
101 swf/tag_loaders.cpp \
102 swf/DefineBitsTag.cpp \
103 swf/DefineFontAlignZonesTag.cpp \
104 swf/DefineShapeTag.cpp \
105 swf/DefineScalingGridTag.cpp \
106 swf/DefineEditTextTag.cpp \
107 swf/DefineMorphShapeTag.cpp \
108 swf/CSMTextSettingsTag.cpp \
109 swf/PlaceObject2Tag.cpp \
110 swf/RemoveObjectTag.cpp \
111 swf/StartSoundTag.cpp \
112 swf/SetTabIndexTag.cpp \
113 swf/StreamSoundBlockTag.cpp \
123 LoadVariablesThread.cpp \
130 $(FREETYPE_SOURCES) \
134 libgnashcore_la_SOURCES += \
139 abc/abc_function.cpp \
158 parser/filter_factory.h \
164 LoadVariablesThread.h \
168 ExternalInterface.h \
170 swf/DefineBitsTag.h \
171 swf/DefaultTagLoaders.h \
172 swf/ImportAssetsTag.h \
173 swf/ExportAssetsTag.h \
174 swf/VideoFrameTag.h \
175 swf/DefineVideoStreamTag.h \
176 swf/DefineFontAlignZonesTag.h \
177 swf/SymbolClassTag.h \
178 swf/DefineSceneAndFrameLabelDataTag.h \
179 swf/CSMTextSettingsTag.h \
180 swf/DefineShapeTag.h \
181 swf/DefineScalingGridTag.h \
182 swf/DefineMorphShapeTag.h \
183 swf/SoundInfoRecord.h \
185 swf/DefineButtonSoundTag.h \
186 swf/DefineTextTag.h \
187 swf/DefineButtonTag.h \
188 swf/DefineEditTextTag.h \
189 swf/DefineButtonCxformTag.h \
190 swf/PlaceObject2Tag.h \
191 swf/DefineFontTag.h \
192 swf/DefineFontNameTag.h \
193 swf/RemoveObjectTag.h \
194 swf/DisplayListTag.h \
196 swf/DoInitActionTag.h \
197 swf/SetBackgroundColorTag.h \
198 swf/SetTabIndexTag.h \
199 swf/StartSoundTag.h \
200 swf/StreamSoundBlockTag.h \
201 swf/ScriptLimitsTag.h \
245 InteractiveObject.h \
250 DisplayObjectContainer.h \
260 swf/DefinitionTag.h \
262 swf/TagLoadersTable.h \
272 # These makefile fragments build the ActionScript library for
273 # Gnash, and supports both AS2 as well as AS3, so we always
275 include $(srcdir)/asobj/flash.am
276 libgnashcore_la_SOURCES += $(libgnashasobjs_la_SOURCES)
278 instdir = $(includedir)/gnash/asobj
279 inst_HEADERS += $(EXTENSIONS_API)
281 libgnashcore_la_LIBADD = \
282 $(top_builddir)/libcore/parser/libgnashparser.la \
283 $(top_builddir)/libcore/vm/libgnashvm.la \
284 $(top_builddir)/libmedia/libgnashmedia.la \
285 $(top_builddir)/libsound/libgnashsound.la \
286 $(top_builddir)/libbase/libgnashbase.la \
294 AM_CPPFLAGS += $(GSTREAMER_CFLAGS) \
295 -I$(top_srcdir)/libmedia/gst
296 libgnashcore_la_LIBADD += $(GSTREAMER_LIBS)
300 AM_CPPFLAGS += $(FFMPEG_CFLAGS) \
301 -I$(top_srcdir)/libmedia/ffmpeg
304 # Enable building the Flash debugger
306 libgnashcore_la_SOURCES += debugger.cpp
309 #libserver_la_LIBDADD = #@DL_LIB@
310 libgnashcore_la_LDFLAGS = -release $(VERSION) -export-dynamic
313 libgnashcore_la_LIBADD += $(HAIKU_LIBS)
316 # Rebuild with GCC 4.x Mudflap support
318 @echo "Rebuilding with GCC Mudflap support"
319 $(MAKE) CXXFLAGS="$(CXXFLAGS) -fmudflap" LDFLAGS="$(LDFLAGS) -lmudflap"