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 \
35 GNASH_LIBS += $(top_builddir)/libltdl/libltdlc.la
38 GNASH_LIBS += $(top_builddir)/libbase/libltdlc.la
41 ## WARNING: make sure GLIB_LIBS appears first
42 ## See: http://lists.gnu.org/archive/html/gnash-dev/2006-07/msg00076.html
55 # bzip2 is a dependency of some libraries with mingw32
57 AM_LDFLAGS += $(BZ2_LIBS)
60 localedir = $(datadir)/locale
63 -I$(top_srcdir)/libbase \
64 -I$(top_srcdir)/librender \
65 -I$(top_srcdir)/librender/agg \
66 -I$(top_srcdir)/librender/cairo \
67 -I$(top_srcdir)/librender/opengl \
68 -I$(top_srcdir)/libcore \
69 -I$(top_srcdir)/libcore/asobj \
70 -I$(top_srcdir)/libcore/swf \
71 -I$(top_srcdir)/libcore/parser \
72 -I$(top_srcdir)/libcore/vm \
73 -I$(top_srcdir)/libmedia \
74 -I$(top_srcdir)/libsound \
75 -DLOCALEDIR=\"$(localedir)\" \
77 $(GSTREAMER_PLUGINS_BASE_CFLAGS) \
85 GNASH_LIBS += -lintl -lz -lws2_32
89 AM_CPPFLAGS += $(FFMPEG_CFLAGS) \
90 -I$(top_srcdir)/libmedia/ffmpeg
91 GNASH_LIBS += $(FFMPEG_LIBS)
95 AM_CPPFLAGS += $(GSTREAMER_CFLAGS) \
96 -I$(top_srcdir)/libmedia/gst
97 GNASH_LIBS += $(GLIB_LIBS) $(GSTREAMER_LIBS)
99 GNASH_LIBS += $(GLIB_LIBS)
103 bin_PROGRAMS = gprocessor rtmpget
107 -I$(top_srcdir)/cygnal/libamf \
108 -I$(top_srcdir)/cygnal/libnet
109 bin_PROGRAMS += soldumper flvdumper
112 $(top_builddir)/cygnal/libamf/libgnashamf.la \
113 $(top_builddir)/cygnal/libnet/libgnashnet.la \
114 $(BOOST_CYGNAL_LIBS) \
117 soldumper_SOURCES = soldumper.cpp
118 soldumper_LDADD = $(GNASH_LIBS) $(CYGNAL_LIBS) $(AM_LDFLAGS)
120 flvdumper_SOURCES = flvdumper.cpp
121 flvdumper_LDADD = $(GNASH_LIBS) $(CYGNAL_LIBS) $(AM_LDFLAGS)
125 #check_PROGRAMS = gdebug.swf
128 # seems kindof silly to build these for an embedded target
130 bin_PROGRAMS += findwebcams
131 bin_PROGRAMS += findmicrophones
135 gprocessor_SOURCES = processor.cpp
136 # export our symbols so they can be used by Gnash plugins
137 gprocessor_LDFLAGS = -export-dynamic
138 gprocessor_LDADD = $(GNASH_LIBS) $(AM_LDFLAGS)
140 rtmpget_SOURCES = rtmpget.cpp
141 rtmpget_LDADD = $(GNASH_LIBS) $(AM_LDFLAGS)
143 #dumpshm_SOURCES = dumpshm.cpp
144 #dumpshm_LDADD = $(GNASH_LIBS) $(AM_LDFLAGS)
148 $(GSTREAMER_PBUTILS_LIBS) \
149 $(GSTREAMER_PLUGINS_BASE_LIBS) \
154 findwebcams_SOURCES = findwebcams.cpp
155 findwebcams_LDADD = $(GST_STUFF) $(GNASH_LIBS) $(AM_LDFLAGS)
157 findmicrophones_SOURCES = findmicrophones.cpp
158 findmicrophones_LDADD = $(GST_STUFF) $(GNASH_LIBS) $(AM_LDFLAGS)
161 # Rebuild with GCC 4.x Mudflap support
163 @echo "Rebuilding with GCC Mudflap support"
164 $(MAKE) CXXFLAGS="$(CXXFLAGS) -fmudflap" LDFLAGS="$(LDFLAGS) -lmudflap"
169 #gdebug.swf: gdebug.as gdebcmds.as
171 # Wrap a single .as tests in dejagnu_so importer.
172 # At play time, if the relative url '../ming-misc.all/Dejagnu.swf'
173 # takes to the Dejagnu.swf shared library we'll get visual traces,
174 # otherwise normal traces will be used.
177 $(MAKESWF) $(DEF_MAKESWF_FLAGS) $(MAKESWF_FLAGS) -o $@ $<