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 pkglib_LTLIBRARIES = libgnashcore.la
28 # TODO: use a conditional to optionally link ?
29 FREETYPE_SOURCES = FreetypeGlyphsProvider.h FreetypeGlyphsProvider.cpp
31 # Only enable if we're configured with --enable-mp3
33 -I$(top_srcdir)/librender \
34 -I$(top_srcdir)/libcore/swf \
35 -I$(top_srcdir)/libcore/abc \
36 -I$(top_srcdir)/libcore/asobj \
37 -I$(top_srcdir)/libcore/asobj/flash \
38 -I$(top_srcdir)/libcore/parser \
39 -I$(top_srcdir)/libcore/vm \
40 -I$(top_srcdir)/libltdl \
41 -I$(top_srcdir)/libbase \
42 -I$(top_srcdir)/libmedia \
43 -I$(top_srcdir)/libsound \
48 $(FONTCONFIG_CFLAGS) \
51 libgnashcore_la_SOURCES = \
64 DisplayObjectContainer.cpp \
75 parser/filter_factory.cpp \
76 InteractiveObject.cpp \
77 ExternalInterface.cpp \
86 swf/TagLoadersTable.cpp \
87 swf/DefaultTagLoaders.cpp \
88 swf/DefineVideoStreamTag.cpp \
89 swf/DefineTextTag.cpp \
90 swf/DefineButtonSoundTag.cpp \
91 swf/DefineButtonCxformTag.cpp \
92 swf/DefineButtonTag.cpp \
93 swf/DefineFontTag.cpp \
94 swf/VideoFrameTag.cpp \
95 swf/DefinitionTag.cpp \
97 swf/SoundInfoRecord.cpp \
100 swf/DefineBitsTag.cpp \
101 swf/DefineFontAlignZonesTag.cpp \
102 swf/DefineShapeTag.cpp \
103 swf/DefineScalingGridTag.cpp \
104 swf/DefineEditTextTag.cpp \
105 swf/DefineMorphShapeTag.cpp \
106 swf/CSMTextSettingsTag.cpp \
107 swf/PlaceObject2Tag.cpp \
108 swf/RemoveObjectTag.cpp \
109 swf/StartSoundTag.cpp \
110 swf/SetTabIndexTag.cpp \
111 swf/StreamSoundBlockTag.cpp \
120 LoadVariablesThread.cpp \
127 $(FREETYPE_SOURCES) \
131 libgnashcore_la_SOURCES += \
136 abc/abc_function.cpp \
153 parser/filter_factory.h \
159 LoadVariablesThread.h \
164 ExternalInterface.h \
166 swf/DefineBitsTag.h \
167 swf/DefaultTagLoaders.h \
168 swf/ImportAssetsTag.h \
169 swf/ExportAssetsTag.h \
170 swf/VideoFrameTag.h \
171 swf/DefineVideoStreamTag.h \
172 swf/DefineFontAlignZonesTag.h \
173 swf/SymbolClassTag.h \
174 swf/DefineSceneAndFrameLabelDataTag.h \
175 swf/CSMTextSettingsTag.h \
176 swf/DefineShapeTag.h \
177 swf/DefineScalingGridTag.h \
178 swf/DefineMorphShapeTag.h \
179 swf/SoundInfoRecord.h \
181 swf/DefineButtonSoundTag.h \
182 swf/DefineTextTag.h \
183 swf/DefineButtonTag.h \
184 swf/DefineEditTextTag.h \
185 swf/DefineButtonCxformTag.h \
186 swf/PlaceObject2Tag.h \
187 swf/DefineFontTag.h \
188 swf/DefineFontNameTag.h \
189 swf/RemoveObjectTag.h \
190 swf/DisplayListTag.h \
192 swf/DoInitActionTag.h \
193 swf/SetBackgroundColorTag.h \
194 swf/SetTabIndexTag.h \
195 swf/StartSoundTag.h \
196 swf/StreamSoundBlockTag.h \
197 swf/ScriptLimitsTag.h \
241 InteractiveObject.h \
246 DisplayObjectContainer.h \
255 swf/DefinitionTag.h \
257 swf/TagLoadersTable.h \
267 # These makefile fragments build the ActionScript library for
268 # Gnash, and supports both AS2 as well as AS3, so we always
270 include $(srcdir)/asobj/flash.am
271 libgnashcore_la_SOURCES += $(libgnashasobjs_la_SOURCES)
273 instdir = $(includedir)/gnash/asobj
274 inst_HEADERS += $(EXTENSIONS_API)
276 libgnashcore_la_LIBADD = \
277 $(top_builddir)/libcore/parser/libgnashparser.la \
278 $(top_builddir)/libcore/vm/libgnashvm.la \
279 $(top_builddir)/libmedia/libgnashmedia.la \
280 $(top_builddir)/libsound/libgnashsound.la \
281 $(top_builddir)/libbase/libgnashbase.la \
289 AM_CPPFLAGS += $(GSTREAMER_CFLAGS) \
290 -I$(top_srcdir)/libmedia/gst
291 libgnashcore_la_LIBADD += $(GSTREAMER_LIBS)
295 AM_CPPFLAGS += $(FFMPEG_CFLAGS) \
296 -I$(top_srcdir)/libmedia/ffmpeg
299 libgnashcore_la_LDFLAGS = -release $(VERSION) -export-dynamic
302 libgnashcore_la_LIBADD += $(HAIKU_LIBS)
305 # Rebuild with GCC 4.x Mudflap support
307 @echo "Rebuilding with GCC Mudflap support"
308 $(MAKE) CXXFLAGS="$(CXXFLAGS) -fmudflap" LDFLAGS="$(LDFLAGS) -lmudflap"
313 # Remove libtool .la files
315 $(RM) $(DESTDIR)$(libdir)/gnash/libgnashcore.la