Include program counter on action limit notification log
[gnash.git] / libcore / Makefile.am
blobe227b9140805c2b535ddd4981c8ea9c68262465e
1 ## Process this file with automake to generate Makefile.in
2
3 #   Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
4
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.
9
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
18 AUTOMAKE_OPTIONS = 
20 SUBDIRS = parser vm
22 if ENABLE_PCH
23 AM_CXXFLAGS = $(PCH_FLAGS)
24 endif
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
32 AM_CPPFLAGS = \
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 \
44         $(PTHREAD_CFLAGS) \
45         $(GLIB_CFLAGS) \
46         $(BOOST_CFLAGS) \
47         $(FREETYPE2_CFLAGS) \
48         $(FONTCONFIG_CFLAGS) \
49         $(NULL)
51 libgnashcore_la_SOURCES = \
52         BitmapMovie.cpp \
53         Property.cpp \
54         PropertyList.cpp \
55         SystemClock.cpp \
56         ClassHierarchy.cpp \
57         as_environment.cpp \
58         as_function.cpp \
59         event_id.cpp \
60         Relay.cpp \
61         as_object.cpp \
62         AMFConverter.cpp \
63         as_value.cpp \
64         DisplayObjectContainer.cpp \
65         DisplayObject.cpp \
66         CharacterProxy.cpp \
67         SWFCxForm.cpp \
68         Geometry.cpp \
69         DynamicShape.cpp        \
70         Bitmap.cpp \
71         Shape.cpp \
72         MorphShape.cpp \
73         StaticText.cpp \
74         TextField.cpp \
75         parser/filter_factory.cpp \
76         InteractiveObject.cpp \
77         ExternalInterface.cpp \
78         HostInterface.cpp \
79         SWFMatrix.cpp \
80         SWFMovie.cpp \
81         movie_root.cpp \
82         namedStrings.cpp \
83         SWFRect.cpp \
84         MovieClip.cpp \
85         swf/SWF.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 \
96         swf/ShapeRecord.cpp \
97         swf/SoundInfoRecord.cpp \
98         swf/TextRecord.cpp \
99         swf/tag_loaders.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 \
112         Function.cpp \
113         Function2.cpp \
114         Video.cpp \
115         Button.cpp \
116         DisplayList.cpp \
117         FillStyle.cpp \
118         Font.cpp \
119         fontlib.cpp \
120         LoadVariablesThread.cpp \
121         SWFStream.cpp \
122         LineStyle.cpp \
123         Timers.cpp \
124         RGBA.cpp        \
125         MovieFactory.cpp \
126         MovieLoader.cpp \
127         $(FREETYPE_SOURCES) \
128         $(NULL)
130 if ENABLE_AVM2
131 libgnashcore_la_SOURCES += \
132         abc/CodeStream.cpp \
133         abc/Class.cpp \
134         abc/Namespace.cpp \
135         abc/as_class.cpp \
136         abc/abc_function.cpp \
137         abc/Method.cpp \
138         abc/AbcBlock.cpp \
139         $(NULL)
140 endif
142 noinst_HEADERS = \
143         VirtualClock.h \
144         SystemClock.h \
145         ClassHierarchy.h \
146         ManualClock.h \
147         Bitmap.h \
148         BitmapMovie.h \
149         Transform.h \
150         Button.h \
151         TextField.h \
152         Filters.h \
153         parser/filter_factory.h \
154         Font.h \
155         fontlib.h \
156         Shape.h \
157         MorphShape.h \
158         StaticText.h \
159         LoadVariablesThread.h \
160         SWFMovie.h \
161         SWFStream.h \
162         MovieLibrary.h \
163         HostInterface.h \
164         ExternalInterface.h \
165         swf/tag_loaders.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 \
180         swf/TextRecord.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 \
191         swf/DoActionTag.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 \
198         swf_event.h \
199         Function.h \
200         Function2.h \
201         Timers.h \
202         Video.h \
203         MovieLoader.h \
204         $(NULL)
206 if ENABLE_AVM2
207 noinst_HEADERS += \
208         abc/CodeStream.h \
209         abc/Class.h \
210         abc/Namespace.h \
211         swf/DoABCTag.h \
212         abc/as_class.h \
213         abc/abc_function.h \
214         abc/Method.h \
215         abc/asException.h \
216         abc/BoundValues.h \
217         abc/AbcBlock.h \
218         abc/MultiName.h \
219         $(NULL)
220 endif
222 EXTENSIONS_API = \
223         Relay.h \
224         as_object.h \
225         ObjectURI.h \
226         Property.h \
227         PropertyList.h \
228         AMFConverter.h \
229         as_value.h \
230         PropFlags.h     \
231         CharacterProxy.h \
232         builtin_function.h \
233         UserFunction.h \
234         NativeFunction.h \
235         as_function.h \
236         namedStrings.h \
237         as_environment.h \
238         movie_root.h \
239         MouseButtonState.h \
240         DragState.h \
241         InteractiveObject.h \
242         SWFRect.h \
243         GnashKey.h \
244         Movie.h \
245         RunResources.h \
246         DisplayObjectContainer.h \
247         DisplayObject.h \
248         MovieClip.h \
249         event_id.h \
250         SWFMatrix.h \
251         SWFCxForm.h \
252         DisplayList.h   \
253         DynamicShape.h  \
254         swf/ControlTag.h \
255         swf/DefinitionTag.h \
256         swf/ShapeRecord.h \
257         swf/TagLoadersTable.h \
258         swf/SWF.h \
259         MovieFactory.h \
260         FillStyle.h \
261         LineStyle.h \
262         RGBA.h  \
263         Geometry.h      \
264         Video.h \
265         $(NULL)
267 # These makefile fragments build the ActionScript library for
268 # Gnash, and supports both AS2 as well as AS3, so we always
269 # want to build.
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 \
282         $(BOOST_LIBS) \
283         $(PTHREAD_LIBS) \
284         $(FREETYPE2_LIBS) \
285         $(FONTCONFIG_LIBS) \
286         $(NULL)
288 if USE_GST_ENGINE
289 AM_CPPFLAGS += $(GSTREAMER_CFLAGS) \
290                 -I$(top_srcdir)/libmedia/gst
291 libgnashcore_la_LIBADD += $(GSTREAMER_LIBS)
292 endif
294 if USE_FFMPEG_ENGINE
295 AM_CPPFLAGS += $(FFMPEG_CFLAGS) \
296                 -I$(top_srcdir)/libmedia/ffmpeg
297 endif
299 libgnashcore_la_LDFLAGS = -release $(VERSION) -export-dynamic
301 if HAIKU
302   libgnashcore_la_LIBADD += $(HAIKU_LIBS)
303 endif
305 # Rebuild with GCC 4.x Mudflap support
306 mudflap:
307         @echo "Rebuilding with GCC Mudflap support"
308         $(MAKE) CXXFLAGS="$(CXXFLAGS) -fmudflap" LDFLAGS="$(LDFLAGS) -lmudflap"
310 clean-hook:
311         -rm -f core.*
313 # Remove libtool .la files
314 install-exec-hook:
315         $(RM) $(DESTDIR)$(libdir)/gnash/libgnashcore.la
317 uninstall-local:
318         $(RM) $(DESTDIR)$(libdir)/gnash/libgnashcore-*.so