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.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 ## Process this file with automake to produce Makefile.in
19 # no-portability allows us to use GNU make variable assignments
20 # without automake complaining.
21 AUTOMAKE_OPTIONS = 1.6.0 -Wno-portability
23 ACLOCAL_AMFLAGS = -I macros -I cygnal
24 noinst_SCRIPT = autogen.sh
27 ## Any custom ./configure switch we want to be
28 ## given at 'make distcheck' time should go here
30 ## We set plugins install dirs to a user-writable
31 ## and likely unused directory for now to avoid
32 ## permission problems and unexpected unistalls
33 ## from home dir. Ideally we should put them somewhere
34 ## under ${prefix} to make the uninstall check effective
35 ## (and I believe it should actually be the default when
36 ## --prefix is given, but that's another story --strk)
38 ## We also want to build everything possible, since we're
40 DISTCHECK_CONFIGURE_FLAGS = \
41 --with-plugins-install=prefix \
42 --enable-extensions=all \
73 SUBDIRS = $(LIBLTDLDIR) $(VAAPI_DIR) $(STD_DIRS)
74 DIST_SUBDIRS = $(STD_DIRS) cygnal extensions testsuite libltdl libvaapi
84 # man_MANS = doc/gnash.1 doc/gprocessor.1 doc/dumpshm.1 soldumper.1
91 macros/incllist macros/libslist \
102 packaging/snapshot.am \
107 packaging/gnash.xpm \
108 packaging/klash.xpm \
113 # @test -d "$(distdir)/packaging" || $(mkinstalldirs) "$(distdir)/packaging"
114 # cp -p $(srcdir)/*.am $(top_distdir)/packaging/
116 CLEANFILES = revno.h .configline
117 BUILT_SOURCES = revno.h .configline
120 # Extract info from the repository to include in the build. If
121 # bazar (bzr) isn't installed, just print stubs, as this is only
122 # used for display purposes. It's primarily used by the testsuites
123 # and when building binary packages from multiple branches.
124 # Note that this is only rebuilt after "make clean", if the Makefile
125 # has changed, or the source tree gets reconfigured. So unless you do
126 # a make clean, or nuke the revno.h file, this can get slightly
127 # behind the current version. Currently Gnash doesn't have this info
128 # so it'll be an improvement anyway. Bzr is amazing slow producing
129 # the info, which is why we don't want to do it all the time.
132 -@if test -d $(srcdir)/.bzr; then \
133 status=`which bzr 2>&1 | grep -c " no bzr"`; \
134 if test x"$${status}" = x"0"; then \
135 echo "Generating revno.h"; \
137 revno=`(cd $(srcdir) && bzr revno)`; \
138 nick=`basename $(top_srcdir)`; \
143 if test -d $(top_srcdir)/.git; then \
144 status=`which git 2>&1 | grep -c " no git"`; \
145 if test x"$${status}" = x"0"; then \
146 echo "Generating revno.h"; \
148 revno="`(cd $(top_srcdir) && git describe --tags | cut -d '-' -f 2-3 | tr a- a.)`"; \
149 nick="`(cd $(top_srcdir) && git branch | grep "\*" | cut -d ' ' -f 2)`"; \
155 if test x$$revno = x; then \
159 echo "static const char* BRANCH_REVNO = \"$${revno}\";" > revno.h; \
160 echo "static const char* BRANCH_NICK = \"$${nick}\";" >> revno.h;
162 # The branch nickname and revision number must be set before including
163 # the other Makefile fragments used for package building, as they use
165 BRANCH_REVNO := $(shell grep "REVNO" revno.h | cut -d '"' -f 2 | cut -d '.' -f 1)
166 BRANCH_NICK := $(shell grep "NICK" revno.h | cut -d '"' -f 2)
168 .configline: config.log
170 @head config.log | grep " .*/configure " | sed -e 's:^ . .*configure ::' > .configline
173 # Precompiled header support
175 include $(srcdir)/pch.am
178 # Binary tarball packaging
180 include $(srcdir)/packaging/snapshot.am
183 # Build an RPM package
185 include $(srcdir)/packaging/rpm.am
187 # Build a Debian/Ubuntu .deb GNU/Linux package
188 include $(srcdir)/packaging/deb.am
191 # Build a Debian Familiar .ipk GNU/Linux package. These are always
192 # cross compiled, typically for the ARM or XScale.
194 include $(srcdir)/packaging/ipkg.am
197 # Access Linux Platform support.
199 include $(srcdir)/packaging/alp.am
202 # BSD package building
204 include $(srcdir)/packaging/bsd.am
207 # Mozille/Firefox XPI support
209 include $(srcdir)/packaging/xpi.am
212 @echo "Rebuilding with GCC Mudflap support"
213 $(MAKE) CXXFLAGS="$(CXXFLAGS) -fmudflapth" LDFLAGS="$(LDFLAGS) -lmudflapth"
216 @echo "Rechecking with GCC Mudflap support"
217 $(MAKE) check CXXFLAGS="$(CXXFLAGS) -fmudflap" LDFLAGS="$(LDFLAGS) -lmudflap"
219 # Set a few variables to what features we selected so we can dump it with the
223 @echo "Building in directories: $(SUBDIRS)"
224 @echo "Some directories may be excluded from the build"
227 @echo "CXXFLAGS: $(CXXFLAGS)"
229 @echo "Image decoding support..."
230 @echo " JPEG_CFLAGS is $(JPEG_CFLAGS)"
231 @echo " JPEG_LIBS is $(JPEG_LIBS)"
232 @echo " PNG_CFLAGS is $(PNG_CFLAGS)"
233 @echo " PNG_LIBS is $(PNG_LIBS)"
234 @echo " GIF_CFLAGS is $(GIF_CFLAGS)"
235 @echo " GIF_LIBS is $(GIF_LIBS)"
236 @echo "Audio decoding support..."
238 @echo " GSTREAMER_CFLAGS is $(GSTREAMER_CFLAGS)"
239 @echo " GSTREAMER_LIBS is $(GSTREAMER_LIBS)"
240 @echo " GSTPBUTILS_CFLAGS is $(GSTPBUTILS_CFLAGS)"
241 @echo " GSTPBUTILS_LIBS is $(GSTPBUTILS_LIBS)"
244 @echo " FFMPEG_CFLAGS is $(FFMPEG_CFLAGS)"
245 @echo " FFMPEG_LIBS is $(FFMPEG_LIBS)"
246 @echo " OGG_CFLAGS is $(OGG_CFLAGS)"
247 @echo " OGG_LIBS is $(OGG_LIBS)"
250 @echo " SPEEX_CFLAGS is $(SPEEX_CFLAGS)"
251 @echo " SPEEXDSP_CFLAGS is $(SPEEXDSP_CFLAGS)"
252 @echo " SPEEX_LIBS is $(SPEEX_LIBS)"
253 @echo " SPEEXDSP_LIBS is $(SPEEXDSP_LIBS)"
255 @echo "GUI Toolkit decoding support..."
256 @echo " SDL_CFLAGS is $(SDL_CFLAGS)"
257 @echo " SDL_LIBS is $(SDL_LIBS)"
259 @echo " KDE3_CFLAGS is $(KDE3_CFLAGS)"
260 @echo " KDE3_LIBS is $(KDE3_LIBS)"
263 @echo " KDE4_CFLAGS is $(KDE4_CFLAGS)"
264 @echo " KDE4_LIBS is $(KDE4_LIBS)"
267 @echo " QT3_CFLAGS is $(QT3_CFLAGS)"
268 @echo " QT3_LIBS is $(QT3_LIBS)"
271 @echo " QT4_CFLAGS is $(QT4_CFLAGS)"
272 @echo " QT4_LIBS is $(QT4_LIBS)"
275 @echo " QTOPIA3_CFLAGS is $(QTOPIA3_CFLAGS)"
276 @echo " QTOPIA3_LIBS is $(QTOPIA3_LIBS)"
279 @echo " QTOPIA4_CFLAGS is $(QTOPIA4_CFLAGS)"
280 @echo " QTOPIA4_LIBS is $(QTOPIA4_LIBS)"
283 @echo " FLTK2_CFLAGS is $(FLTK2_CFLAGS)"
284 @echo " FLTK2_LIBS is $(FLTK2_LIBS)"
285 @echo " XFT_CFLAGS is $(XFT_CFLAGS)"
286 @echo " XFT_LIBS is $(XFT_LIBS)"
289 @echo " HAIKU_LIBS is $(HAIKU_LIBS)"
292 @echo " GTK2_CFLAGS is $(GTK2_CFLAGS)"
293 @echo " GTK2_LIBS is $(GTK2_LIBS)"
294 @echo " PANGO_CFLAGS is $(PANGO_CFLAGS)"
295 @echo " PANGO_LIBS is $(PANGO_LIBS)"
296 @echo " ATK_CFLAGS is $(ATK_CFLAGS)"
297 @echo " ATK_LIBS is $(ATK_LIBS)"
299 @echo " X11_CFLAGS is $(X11_CFLAGS)"
300 @echo " X11_LIBS is $(X11_LIBS)"
301 @echo "Support libraries..."
302 @echo " INCLTDL $(INCLTDL) "
303 @echo " LIBLTDL $(LIBLTDL) "
304 @echo " GLIB_CFLAGS is $(GLIB_CFLAGS)"
305 @echo " GLIB_LIBS is $(GLIB_LIBS)"
306 @echo " Z_CFLAGS is $(Z_CFLAGS)"
307 @echo " Z_LIBS is $(Z_LIBS)"
308 @echo " FREETYPE_CFLAGS is $(FREETYPE2_CFLAGS)"
309 @echo " FREETYPE_LIBS is $(FREETYPE2_LIBS)"
310 @echo " FONTCONFIG_CFLAGS is $(FONTCONFIG_CFLAGS)"
311 @echo " FONTCONFIG_LIBS is $(FONTCONFIG_LIBS)"
312 @echo " LIBINTL is $(LIBINTL)"
314 @echo " DMALLOC_CFLAGS is $(DMALLOC_CFLAGS)"
315 @echo " DMALLOC_LIBS is $(DMALLOC_LIBS)"
318 @echo "MYSQL_CFLAGS is $(MYSQL_CFLAGS)"
319 @echo "MYSQL_LIBS is $(MYSQL_LIBS)"
321 @echo " PTHREAD_CFLAGS is $(PTHREAD_CFLAGS)"
322 @echo " PTHREAD_LIBS is $(PTHREAD_LIBS)"
323 @echo " CURL_CFLAGS is $(CURL_CFLAGS)"
324 @echo " CURL_LIBS is $(CURL_LIBS)"
325 @echo " BOOST_CFLAGS is $(BOOST_CFLAGS)"
326 @echo " BOOST_LIBS is $(BOOST_LIBS)"
327 @if test -n "$(BOOST_CYGNAL_LIBS)"; then \
328 echo " BOOST_CYGNAL_LIBS is $(BOOST_CYGNAL_LIBS)"; \
331 @echo " MING_VERSION_CODE $(MING_VERSION_CODE) "
332 @echo " MING_LIBS $(MING_LIBS) "
333 @echo " MING_CFLAGS $(MING_CFLAGS) "
334 @echo " MAKESWF $(MAKESWF) "
337 @echo " MTASC $(MTASC)"
338 @echo " MTASC CLASSPATH $(MTASC_CLASSPATH)"
341 @echo " HAXE $(HAXE)"
342 @echo " HAXE CLASSPATH $(HAXE_CLASSPATH)"
345 @echo " SWFMILL $(SWFMILL) "
346 @echo " SWFMILL_VERSION_CODE $(SWFMILL_VERSION) "
349 @echo " SWFC $(SWFC) "
351 if ENABLE_SWFDEC_TESTSUITE
352 @echo " SWFDEC_TESTSUITE $(SWFDEC_TESTSUITE)"
354 if ENABLE_HTTP_TESTSUITE
355 @echo " HTTP_TESTSUITE $(HTTP_TESTSUITE)"
357 if ENABLE_RED5_TESTING
358 @echo " RED5_HOST $(RED5_HOST)"
360 @echo "Graphics support..."
361 if BUILD_CAIRO_RENDERER
362 @echo " CAIRO_CFLAGS is $(CAIRO_CFLAGS)"
363 @echo " CAIRO_LIBS is $(CAIRO_LIBS)"
365 if BUILD_OGL_RENDERER
366 @echo " GLEXT_CFLAGS is $(GLEXT_CFLAGS)"
367 @echo " GLEXT_LIBS is $(GLEXT_LIBS)"
368 @echo " OPENGL_CFLAGS is $(OPENGL_CFLAGS)"
369 @echo " OPENGL_LIBS is $(OPENGL_LIBS)"
371 if BUILD_AGG_RENDERER
372 @echo " AGG_CFLAGS is $(AGG_CFLAGS)"
373 @echo " AGG_LIBS is $(AGG_LIBS)"
376 @echo "A blank value for CFLAGS means the header is installed in the"
377 @echo "default system header location. All the LIBS should have a"
380 @echo "Configurable options are:"
381 @echo " Media handlers: $(MEDIA_CONFIG)"
382 @echo " Renderer engines: $(RENDERER_CONFIG)"
383 @echo " Hardware Acceleration: $(HWACCEL_CONFIG)"
386 @echo " SSL_CFLAGS is $(SSL_CFLAGS)"
387 @echo " SSL_LIBS is $(SSL_LIBS)"
390 @echo " SSH_CFLAGS is $(SSH_CFLAGS)"
391 @echo " SSH_LIBS is $(SSH_LIBS)"
395 @echo " Supported GUI: GTK (+XVideo)"
397 @echo " Supported GUI: GTK"
401 @echo " Supported GUI: Dump"
404 @echo " Supported GUI: KDE3"
407 @echo " Supported GUI: KDE4"
410 @echo " Supported GUI: QTOPIA3"
413 @echo " Supported GUI: QTOPIA4"
416 @echo " Supported GUI: SDL"
419 @echo " Supported GUI: FLTK"
422 @echo " Supported GUI: AQUA"
425 @echo " Supported GUI: FB"
427 if BUILD_AMIGAOS4_GUI
428 @echo " Supported GUI: AMIGAOS4"
431 @echo " Supported GUI: Haiku"
434 @echo " Using jemalloc memory manager"
437 @if test -n "$(EXTENSIONS_LIST)" ; then \
438 echo " Extensions added are: $(EXTENSIONS_LIST)"; \
440 @if test -n "$(SECURITY_LIST)" ; then \
441 echo " Security features enabled are: $(SECURITY_LIST)"; \
443 @if test -n "$(STATISTICS_LIST)" ; then \
444 echo " Statistics features enabled are: $(STATISTICS_LIST)"; \
447 @echo " KPARTS 3.x (KDE) plugin enabled"
448 @echo " KPARTS 3.x plugin install dir: $(KDE_PLUGINDIR)"
449 @echo " KPARTS 3.x service install dir: $(KDE_SERVICESDIR)"
450 @echo " KPARTS 3.x config dir: ${KDE_CONFIGDIR}"
451 @echo " KPARTS 3.x appsdata dir: ${KDE_APPSDATADIR}"
453 @echo " KPARTS 3.x (KDE) plugin disabled"
456 @echo " KPARTS 4.x (KDE) plugin enabled"
457 @echo " KPARTS 4.x plugin install dir: $(KDE4_PLUGINDIR)"
458 @echo " KPARTS 4.x service install dir: $(KDE4_SERVICESDIR)"
459 @echo " KPARTS 4.x config dir: ${KDE4_CONFIGDIR}"
460 @echo " KPARTS 4.x appsdata dir: ${KDE4_APPSDATADIR}"
462 @echo " KPARTS 4.x (KDE) plugin disabled"
466 @echo " NPAPI (Mozilla) plugin enabled"
467 @echo " NPAPI plugin install dir: $(FIREFOX_PLUGINS)"
469 @echo " NPAPI (Mozilla) plugin disabled"
472 @echo " PYTHON support enabled"
474 @echo " PYTHON support disabled"
481 anal testreport checksum:
482 $(srcdir)/testsuite/anaylse-results.sh
485 .PHONY : dumpconfig \
497 install-plugins install-plugin uninstall-plugins install-pkglib:
503 pkgconfigdir = $(libdir)/pkgconfig