Fix test for bug #32625
[gnash.git] / utilities / Makefile.am
bloba3d56d5c2ac73adc9b55010e263b7ce188d97c08
1
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 ?
26 GNASH_LIBS = \
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 \
32         $(NULL)
34 ## WARNING: make sure GLIB_LIBS appears first
35 ## See: http://lists.gnu.org/archive/html/gnash-dev/2006-07/msg00076.html
36 AM_LDFLAGS = \
37         $(LIBINTL) \
38         $(LIBADD_DL) \
39         $(MYSQL_LIBS) \
40         $(CURL_LIBS) \
41         $(JPEG_LIBS) \
42         $(PNG_LIBS) \
43         $(BOOST_LIBS) \
44         $(PYTHON_LIBS) \
45         $(PTHREAD_LIBS) \
46         $(NULL)
48 # bzip2 is a dependency of some libraries with mingw32
49 if WIN32
50 AM_LDFLAGS += $(BZ2_LIBS)
51 endif
53 localedir = $(datadir)/locale
55 AM_CPPFLAGS = \
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)\" \
69         $(GSTREAMER_CFLAGS) \
70         $(GSTREAMER_PLUGINS_BASE_CFLAGS) \
71         $(GLIB_CFLAGS) \
72         $(BOOST_CFLAGS) \
73         $(PTHREAD_CFLAGS) \
74         $(MYSQL_CFLAGS) \
75         $(NULL)
77 if WIN32
78   GNASH_LIBS += -lintl -lz -lws2_32
79 endif
81 if USE_FFMPEG_ENGINE
82  AM_CPPFLAGS += $(FFMPEG_CFLAGS) \
83                 -I$(top_srcdir)/libmedia/ffmpeg 
84  GNASH_LIBS += $(FFMPEG_LIBS)
85 endif
87 if USE_GST_ENGINE
88  AM_CPPFLAGS += $(GSTREAMER_CFLAGS) \
89                 -I$(top_srcdir)/libmedia/gst
90  GNASH_LIBS += $(GLIB_LIBS) $(GSTREAMER_LIBS)
91 if CROSS_COMPILING
92   GNASH_LIBS += $(GLIB_LIBS)
93 endif
94 endif
96 bin_PROGRAMS = gprocessor rtmpget
98 if CYGNAL
99 AM_CPPFLAGS += \
100         -I$(top_srcdir)/cygnal/libamf \
101         -I$(top_srcdir)/cygnal/libnet
102 bin_PROGRAMS += soldumper flvdumper
104 CYGNAL_LIBS = \
105         $(top_builddir)/cygnal/libamf/libgnashamf.la \
106         $(top_builddir)/cygnal/libnet/libgnashnet.la \
107         $(BOOST_CYGNAL_LIBS) \
108         $(NULL)
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)
116 endif
118 #check_PROGRAMS = gdebug.swf
120 if USE_GST_ENGINE
121  # seems kindof silly to build these for an embedded target
122 if !CROSS_COMPILING
123    bin_PROGRAMS += findwebcams
124    bin_PROGRAMS += findmicrophones
125 endif
126 endif
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)
139 if USE_GST_ENGINE
140  GST_STUFF = \
141         $(GSTREAMER_PBUTILS_LIBS) \
142         $(GSTREAMER_PLUGINS_BASE_LIBS) \
143         $(GSTREAMER_LIBS) \
144         $(GSTAPP_CFLAGS) \
145         $(NULL)
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)
152 endif
154 # Rebuild with GCC 4.x Mudflap support
155 mudflap:
156         @echo "Rebuilding with GCC Mudflap support"
157         $(MAKE) CXXFLAGS="$(CXXFLAGS) -fmudflap" LDFLAGS="$(LDFLAGS) -lmudflap"
159 clean-hook:
160         -rm -f core.*
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.
168 SUFFIXES = as swf
169 .as.swf: 
170         $(MAKESWF) $(DEF_MAKESWF_FLAGS) $(MAKESWF_FLAGS) -o $@ $<