Properly initialize referenceCount for NPNObject structs. The _correct_ way of creati...
[gnash.git] / utilities / Makefile.am
blobdc9ff5cd560d4d3e07237c4fdf8f92dfd7b1eac9
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 if LIBLTDL2
35 GNASH_LIBS += $(top_builddir)/libltdl/libltdlc.la
36 endif
37 if LIBLTDL1
38 GNASH_LIBS += $(top_builddir)/libbase/libltdlc.la
39 endif
41 ## WARNING: make sure GLIB_LIBS appears first
42 ## See: http://lists.gnu.org/archive/html/gnash-dev/2006-07/msg00076.html
43 AM_LDFLAGS = \
44         $(LIBINTL) \
45         $(LIBADD_DL) \
46         $(MYSQL_LIBS) \
47         $(CURL_LIBS) \
48         $(JPEG_LIBS) \
49         $(PNG_LIBS) \
50         $(BOOST_LIBS) \
51         $(PYTHON_LIBS) \
52         $(PTHREAD_LIBS) \
53         $(NULL)
55 # bzip2 is a dependency of some libraries with mingw32
56 if WIN32
57 AM_LDFLAGS += $(BZ2_LIBS)
58 endif
60 localedir = $(datadir)/locale
62 AM_CPPFLAGS = \
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)\" \
76         $(GSTREAMER_CFLAGS) \
77         $(GSTREAMER_PLUGINS_BASE_CFLAGS) \
78         $(GLIB_CFLAGS) \
79         $(BOOST_CFLAGS) \
80         $(PTHREAD_CFLAGS) \
81         $(MYSQL_CFLAGS) \
82         $(NULL)
84 if WIN32
85   GNASH_LIBS += -lintl -lz -lws2_32
86 endif
88 if USE_FFMPEG_ENGINE
89  AM_CPPFLAGS += $(FFMPEG_CFLAGS) \
90                 -I$(top_srcdir)/libmedia/ffmpeg 
91  GNASH_LIBS += $(FFMPEG_LIBS)
92 endif
94 if USE_GST_ENGINE
95  AM_CPPFLAGS += $(GSTREAMER_CFLAGS) \
96                 -I$(top_srcdir)/libmedia/gst
97  GNASH_LIBS += $(GLIB_LIBS) $(GSTREAMER_LIBS)
98 if CROSS_COMPILING
99   GNASH_LIBS += $(GLIB_LIBS)
100 endif
101 endif
103 bin_PROGRAMS = gprocessor rtmpget
105 if CYGNAL
106 AM_CPPFLAGS += \
107         -I$(top_srcdir)/cygnal/libamf \
108         -I$(top_srcdir)/cygnal/libnet
109 bin_PROGRAMS += soldumper flvdumper
111 CYGNAL_LIBS = \
112         $(top_builddir)/cygnal/libamf/libgnashamf.la \
113         $(top_builddir)/cygnal/libnet/libgnashnet.la \
114         $(BOOST_CYGNAL_LIBS) \
115         $(NULL)
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)
123 endif
125 #check_PROGRAMS = gdebug.swf
127 if USE_GST_ENGINE
128  # seems kindof silly to build these for an embedded target
129 if !CROSS_COMPILING
130    bin_PROGRAMS += findwebcams
131    bin_PROGRAMS += findmicrophones
132 endif
133 endif
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)
146 if USE_GST_ENGINE
147  GST_STUFF = \
148         $(GSTREAMER_PBUTILS_LIBS) \
149         $(GSTREAMER_PLUGINS_BASE_LIBS) \
150         $(GSTREAMER_LIBS) \
151         $(GSTAPP_CFLAGS) \
152         $(NULL)
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)
159 endif
161 # Rebuild with GCC 4.x Mudflap support
162 mudflap:
163         @echo "Rebuilding with GCC Mudflap support"
164         $(MAKE) CXXFLAGS="$(CXXFLAGS) -fmudflap" LDFLAGS="$(LDFLAGS) -lmudflap"
166 clean-hook:
167         -rm -f core.*
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.
175 SUFFIXES = as swf
176 .as.swf: 
177         $(MAKESWF) $(DEF_MAKESWF_FLAGS) $(MAKESWF_FLAGS) -o $@ $<