2 # Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
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.
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
19 ## Process this file with automake to generate Makefile.in
21 AUTOMAKE_OPTIONS = # dejagnu
23 # @@ shouldn't we drop package_LIBS and leave deps
24 # on the gnash libraries side instead ?
27 $(top_builddir)/libcore/libgnashcore.la \
28 $(top_builddir)/libbase/libgnashbase.la \
29 $(top_builddir)/libmedia/libgnashmedia.la \
30 $(top_builddir)/libsound/libgnashsound.la \
31 $(top_builddir)/librender/libgnashrender.la \
34 ## WARNING: make sure GLIB_LIBS appears first
35 ## See: http://lists.gnu.org/archive/html/gnash-dev/2006-07/msg00076.html
48 # bzip2 is a dependency of some libraries with mingw32
50 AM_LDFLAGS += $(BZ2_LIBS)
53 localedir = $(datadir)/locale
56 -I$(top_srcdir)/libbase \
57 -I$(top_srcdir)/librender \
58 -I$(top_srcdir)/librender/agg \
59 -I$(top_srcdir)/librender/cairo \
60 -I$(top_srcdir)/librender/opengl \
61 -I$(top_srcdir)/libcore \
62 -I$(top_srcdir)/libcore/asobj \
63 -I$(top_srcdir)/libcore/swf \
64 -I$(top_srcdir)/libcore/parser \
65 -I$(top_srcdir)/libcore/vm \
66 -I$(top_srcdir)/libmedia \
67 -I$(top_srcdir)/libsound \
68 -DLOCALEDIR=\"$(localedir)\" \
70 $(GSTREAMER_PLUGINS_BASE_CFLAGS) \
78 GNASH_LIBS += -lintl -lz -lws2_32
82 AM_CPPFLAGS += $(FFMPEG_CFLAGS) \
83 -I$(top_srcdir)/libmedia/ffmpeg
84 GNASH_LIBS += $(FFMPEG_LIBS)
88 AM_CPPFLAGS += $(GSTREAMER_CFLAGS) \
89 -I$(top_srcdir)/libmedia/gst
90 GNASH_LIBS += $(GLIB_LIBS) $(GSTREAMER_LIBS)
92 GNASH_LIBS += $(GLIB_LIBS)
96 bin_PROGRAMS = gprocessor rtmpget
100 -I$(top_srcdir)/cygnal/libamf \
101 -I$(top_srcdir)/cygnal/libnet
102 bin_PROGRAMS += soldumper flvdumper
105 $(top_builddir)/cygnal/libamf/libgnashamf.la \
106 $(top_builddir)/cygnal/libnet/libgnashnet.la \
107 $(BOOST_CYGNAL_LIBS) \
110 soldumper_SOURCES = soldumper.cpp
111 soldumper_LDADD = $(GNASH_LIBS) $(CYGNAL_LIBS) $(AM_LDFLAGS)
113 flvdumper_SOURCES = flvdumper.cpp
114 flvdumper_LDADD = $(GNASH_LIBS) $(CYGNAL_LIBS) $(AM_LDFLAGS)
118 #check_PROGRAMS = gdebug.swf
121 # seems kindof silly to build these for an embedded target
123 bin_PROGRAMS += findwebcams
124 bin_PROGRAMS += findmicrophones
128 gprocessor_SOURCES = processor.cpp
129 # export our symbols so they can be used by Gnash plugins
130 gprocessor_LDFLAGS = -export-dynamic
131 gprocessor_LDADD = $(GNASH_LIBS) $(AM_LDFLAGS)
133 rtmpget_SOURCES = rtmpget.cpp
134 rtmpget_LDADD = $(GNASH_LIBS) $(AM_LDFLAGS)
136 #dumpshm_SOURCES = dumpshm.cpp
137 #dumpshm_LDADD = $(GNASH_LIBS) $(AM_LDFLAGS)
141 $(GSTREAMER_PBUTILS_LIBS) \
142 $(GSTREAMER_PLUGINS_BASE_LIBS) \
147 findwebcams_SOURCES = findwebcams.cpp
148 findwebcams_LDADD = $(GST_STUFF) $(GNASH_LIBS) $(AM_LDFLAGS)
150 findmicrophones_SOURCES = findmicrophones.cpp
151 findmicrophones_LDADD = $(GST_STUFF) $(GNASH_LIBS) $(AM_LDFLAGS)
154 # Rebuild with GCC 4.x Mudflap support
156 @echo "Rebuilding with GCC Mudflap support"
157 $(MAKE) CXXFLAGS="$(CXXFLAGS) -fmudflap" LDFLAGS="$(LDFLAGS) -lmudflap"
162 #gdebug.swf: gdebug.as gdebcmds.as
164 # Wrap a single .as tests in dejagnu_so importer.
165 # At play time, if the relative url '../ming-misc.all/Dejagnu.swf'
166 # takes to the Dejagnu.swf shared library we'll get visual traces,
167 # otherwise normal traces will be used.
170 $(MAKESWF) $(DEF_MAKESWF_FLAGS) $(MAKESWF_FLAGS) -o $@ $<