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 = .configline
117 MAINTAINERCLEANFILES = revno.h .lastmod
118 BUILT_SOURCES = revno.h .configline
121 # Extract info from the repository to include in the build.
122 # If top source dir is not a git repository or git is not installed,
123 # keep the current revno.h file (which should be part of any distribution).
124 # It's primarily used by the testsuites and when building binary packages
125 # from multiple branches.
127 @if test -d $(top_srcdir)/.git; then \
128 nowmod="$(shell stat -c "%X" $(top_srcdir)/.git/index)"; \
129 if test -e .lastmod; then \
130 lastmod="$(shell cat .lastmod)"; \
134 if test $${nowmod} -gt $${lastmod}; then \
135 rm -f .lastmod; echo "$${nowmod}" > .lastmod; \
136 revno="`cd $(top_srcdir) ; $(GIT) log | grep '^commit' | wc -l`"; \
137 comm_id="`cd $(top_srcdir) ; $(GIT) rev-parse --short HEAD`"; \
138 nick="`cd $(top_srcdir) ; $(GIT) branch | grep '^\*' | cut -d ' ' -f 2`"; \
145 if test $${nowmod} -gt $${lastmod}; then \
146 echo "Generating revno.h ($${nick} $${revno} $${comm_id})"; \
147 echo "static const char* BRANCH_REVNO = \"$${revno}\";" > $(top_builddir)/revno.h; \
148 echo "static const char* BRANCH_NICK = \"$${nick}\";" >> $(top_builddir)/revno.h; \
149 echo "static const char* COMMIT_ID = \"$${comm_id}\";" >> $(top_builddir)/revno.h; \
152 .configline: config.log
154 @head config.log | grep " .*/configure " | sed -e 's:^ . .*configure ::' > .configline*s
157 # Precompiled header support
159 include $(srcdir)/pch.am
162 # Binary tarball packaging
164 include $(srcdir)/packaging/snapshot.am
167 # Build an RPM package
169 include $(srcdir)/packaging/rpm.am
171 # Build a Debian/Ubuntu .deb GNU/Linux package
172 include $(srcdir)/packaging/deb.am
175 # Build a Debian Familiar .ipk GNU/Linux package. These are always
176 # cross compiled, typically for the ARM or XScale.
178 include $(srcdir)/packaging/ipkg.am
181 # Access Linux Platform support.
183 include $(srcdir)/packaging/alp.am
186 # BSD package building
188 include $(srcdir)/packaging/bsd.am
191 # Mozille/Firefox XPI support
193 include $(srcdir)/packaging/xpi.am
196 @echo "Rebuilding with GCC Mudflap support"
197 $(MAKE) CXXFLAGS="$(CXXFLAGS) -fmudflapth" LDFLAGS="$(LDFLAGS) -lmudflapth"
200 @echo "Rechecking with GCC Mudflap support"
201 $(MAKE) check CXXFLAGS="$(CXXFLAGS) -fmudflap" LDFLAGS="$(LDFLAGS) -lmudflap"
203 # Set a few variables to what features we selected so we can dump it with the
207 @echo "Building in directories: $(SUBDIRS)"
208 @echo "Some directories may be excluded from the build"
211 @echo "CXXFLAGS: $(CXXFLAGS)"
213 @echo "Image decoding support..."
214 @echo " JPEG_CFLAGS is $(JPEG_CFLAGS)"
215 @echo " JPEG_LIBS is $(JPEG_LIBS)"
216 @echo " PNG_CFLAGS is $(PNG_CFLAGS)"
217 @echo " PNG_LIBS is $(PNG_LIBS)"
218 @echo " GIF_CFLAGS is $(GIF_CFLAGS)"
219 @echo " GIF_LIBS is $(GIF_LIBS)"
220 @echo "Audio decoding support..."
222 @echo " GSTREAMER_CFLAGS is $(GSTREAMER_CFLAGS)"
223 @echo " GSTREAMER_LIBS is $(GSTREAMER_LIBS)"
224 @echo " GSTREAMER_PBUTILS_CFLAGS is $(GSTREAMER_PBUTILS_CFLAGS)"
225 @echo " GSTREAMER_PBUTILS_LIBS is $(GSTREAMER_PBUTILS_LIBS)"
228 @echo " FFMPEG_CFLAGS is $(FFMPEG_CFLAGS)"
229 @echo " FFMPEG_LIBS is $(FFMPEG_LIBS)"
230 @echo " OGG_CFLAGS is $(OGG_CFLAGS)"
231 @echo " OGG_LIBS is $(OGG_LIBS)"
234 @echo " SPEEX_CFLAGS is $(SPEEX_CFLAGS)"
235 @echo " SPEEXDSP_CFLAGS is $(SPEEXDSP_CFLAGS)"
236 @echo " SPEEX_LIBS is $(SPEEX_LIBS)"
237 @echo " SPEEXDSP_LIBS is $(SPEEXDSP_LIBS)"
239 @echo "GUI Toolkit decoding support..."
240 @echo " SDL_CFLAGS is $(SDL_CFLAGS)"
241 @echo " SDL_LIBS is $(SDL_LIBS)"
243 @echo " KDE3_CFLAGS is $(KDE3_CFLAGS)"
244 @echo " KDE3_LIBS is $(KDE3_LIBS)"
247 @echo " KDE4_CFLAGS is $(KDE4_CFLAGS)"
248 @echo " KDE4_LIBS is $(KDE4_LIBS)"
251 @echo " QT3_CFLAGS is $(QT3_CFLAGS)"
252 @echo " QT3_LIBS is $(QT3_LIBS)"
255 @echo " QT4_CFLAGS is $(QT4_CFLAGS)"
256 @echo " QT4_LIBS is $(QT4_LIBS)"
259 @echo " QTOPIA3_CFLAGS is $(QTOPIA3_CFLAGS)"
260 @echo " QTOPIA3_LIBS is $(QTOPIA3_LIBS)"
263 @echo " QTOPIA4_CFLAGS is $(QTOPIA4_CFLAGS)"
264 @echo " QTOPIA4_LIBS is $(QTOPIA4_LIBS)"
267 @echo " FLTK2_CFLAGS is $(FLTK2_CFLAGS)"
268 @echo " FLTK2_LIBS is $(FLTK2_LIBS)"
269 @echo " XFT_CFLAGS is $(XFT_CFLAGS)"
270 @echo " XFT_LIBS is $(XFT_LIBS)"
273 @echo " HAIKU_LIBS is $(HAIKU_LIBS)"
276 @echo " GTK2_CFLAGS is $(GTK2_CFLAGS)"
277 @echo " GTK2_LIBS is $(GTK2_LIBS)"
278 @echo " PANGO_CFLAGS is $(PANGO_CFLAGS)"
279 @echo " PANGO_LIBS is $(PANGO_LIBS)"
280 @echo " ATK_CFLAGS is $(ATK_CFLAGS)"
281 @echo " ATK_LIBS is $(ATK_LIBS)"
283 @echo " X11_CFLAGS is $(X11_CFLAGS)"
284 @echo " X11_LIBS is $(X11_LIBS)"
285 @echo "Support libraries..."
286 @echo " INCLTDL $(INCLTDL) "
287 @echo " LIBLTDL $(LIBLTDL) "
288 @echo " GLIB_CFLAGS is $(GLIB_CFLAGS)"
289 @echo " GLIB_LIBS is $(GLIB_LIBS)"
290 @echo " Z_CFLAGS is $(Z_CFLAGS)"
291 @echo " Z_LIBS is $(Z_LIBS)"
292 @echo " FREETYPE_CFLAGS is $(FREETYPE2_CFLAGS)"
293 @echo " FREETYPE_LIBS is $(FREETYPE2_LIBS)"
294 @echo " FONTCONFIG_CFLAGS is $(FONTCONFIG_CFLAGS)"
295 @echo " FONTCONFIG_LIBS is $(FONTCONFIG_LIBS)"
296 @echo " LIBINTL is $(LIBINTL)"
298 @echo " DMALLOC_CFLAGS is $(DMALLOC_CFLAGS)"
299 @echo " DMALLOC_LIBS is $(DMALLOC_LIBS)"
302 @echo " MYSQL_CFLAGS is $(MYSQL_CFLAGS)"
303 @echo " MYSQL_LIBS is $(MYSQL_LIBS)"
305 @echo " PTHREAD_CFLAGS is $(PTHREAD_CFLAGS)"
306 @echo " PTHREAD_LIBS is $(PTHREAD_LIBS)"
307 @echo " CURL_CFLAGS is $(CURL_CFLAGS)"
308 @echo " CURL_LIBS is $(CURL_LIBS)"
309 @echo " BOOST_CFLAGS is $(BOOST_CFLAGS)"
310 @echo " BOOST_LIBS is $(BOOST_LIBS)"
311 @if test -n "$(BOOST_CYGNAL_LIBS)"; then \
312 echo " BOOST_CYGNAL_LIBS is $(BOOST_CYGNAL_LIBS)"; \
315 @echo " MING_VERSION_CODE $(MING_VERSION_CODE) "
316 @echo " MING_LIBS $(MING_LIBS) "
317 @echo " MING_CFLAGS $(MING_CFLAGS) "
318 @echo " MAKESWF $(MAKESWF) "
321 @echo " MTASC $(MTASC)"
322 @echo " MTASC CLASSPATH $(MTASC_CLASSPATH)"
325 @echo " HAXE $(HAXE)"
326 @echo " HAXE CLASSPATH $(HAXE_CLASSPATH)"
329 @echo " SWFMILL $(SWFMILL) "
330 @echo " SWFMILL_VERSION_CODE $(SWFMILL_VERSION) "
333 @echo " SWFC $(SWFC) "
335 if ENABLE_SWFDEC_TESTSUITE
336 @echo " SWFDEC_TESTSUITE $(SWFDEC_TESTSUITE)"
338 if ENABLE_HTTP_TESTSUITE
339 @echo " HTTP_TESTSUITE $(HTTP_TESTSUITE)"
341 if ENABLE_RED5_TESTING
342 @echo " RED5_HOST $(RED5_HOST)"
344 @echo "Graphics support..."
345 if BUILD_CAIRO_RENDERER
346 @echo " CAIRO_CFLAGS is $(CAIRO_CFLAGS)"
347 @echo " CAIRO_LIBS is $(CAIRO_LIBS)"
349 if BUILD_OGL_RENDERER
350 @echo " GLEXT_CFLAGS is $(GLEXT_CFLAGS)"
351 @echo " GLEXT_LIBS is $(GLEXT_LIBS)"
352 @echo " OPENGL_CFLAGS is $(OPENGL_CFLAGS)"
353 @echo " OPENGL_LIBS is $(OPENGL_LIBS)"
355 if BUILD_AGG_RENDERER
356 @echo " AGG_CFLAGS is $(AGG_CFLAGS)"
357 @echo " AGG_LIBS is $(AGG_LIBS)"
360 @echo "A blank value for CFLAGS means the header is installed in the"
361 @echo "default system header location. All the LIBS should have a"
364 @echo "Configurable options are:"
365 @echo " Media handlers: $(MEDIA_CONFIG)"
366 @echo " Renderer engines: $(RENDERER_CONFIG)"
367 @echo " Hardware Acceleration: $(HWACCEL_CONFIG)"
370 @echo " SSL_CFLAGS is $(SSL_CFLAGS)"
371 @echo " SSL_LIBS is $(SSL_LIBS)"
374 @echo " SSH_CFLAGS is $(SSH_CFLAGS)"
375 @echo " SSH_LIBS is $(SSH_LIBS)"
379 @echo " Supported GUI: GTK (+XVideo)"
381 @echo " Supported GUI: GTK"
385 @echo " Supported GUI: Dump"
388 @echo " Supported GUI: KDE3"
391 @echo " Supported GUI: KDE4"
394 @echo " Supported GUI: QTOPIA3"
397 @echo " Supported GUI: QTOPIA4"
400 @echo " Supported GUI: SDL"
403 @echo " Supported GUI: FLTK"
406 @echo " Supported GUI: AQUA"
409 @echo " Supported GUI: FB"
411 if BUILD_AMIGAOS4_GUI
412 @echo " Supported GUI: AMIGAOS4"
415 @echo " Supported GUI: Haiku"
418 @echo " Using jemalloc memory manager"
421 @if test -n "$(EXTENSIONS_LIST)" ; then \
422 echo " Extensions added are: $(EXTENSIONS_LIST)"; \
424 @if test -n "$(SECURITY_LIST)" ; then \
425 echo " Security features enabled are: $(SECURITY_LIST)"; \
427 @if test -n "$(STATISTICS_LIST)" ; then \
428 echo " Statistics features enabled are: $(STATISTICS_LIST)"; \
431 @echo " KPARTS 3.x (KDE) plugin enabled"
432 @echo " KPARTS 3.x plugin install dir: $(KDE_PLUGINDIR)"
433 @echo " KPARTS 3.x service install dir: $(KDE_SERVICESDIR)"
434 @echo " KPARTS 3.x config dir: ${KDE_CONFIGDIR}"
435 @echo " KPARTS 3.x appsdata dir: ${KDE_APPSDATADIR}"
437 @echo " KPARTS 3.x (KDE) plugin disabled"
440 @echo " KPARTS 4.x (KDE) plugin enabled"
441 @echo " KPARTS 4.x plugin install dir: $(KDE4_PLUGINDIR)"
442 @echo " KPARTS 4.x service install dir: $(KDE4_SERVICESDIR)"
443 @echo " KPARTS 4.x config dir: ${KDE4_CONFIGDIR}"
444 @echo " KPARTS 4.x appsdata dir: ${KDE4_APPSDATADIR}"
446 @echo " KPARTS 4.x (KDE) plugin disabled"
450 @echo " NPAPI (Mozilla) plugin enabled"
451 @echo " NPAPI plugin install dir: $(FIREFOX_PLUGINS)"
453 @echo " NPAPI (Mozilla) plugin disabled"
456 @echo " PYTHON support enabled"
458 @echo " PYTHON support disabled"
465 anal testreport checksum:
466 $(srcdir)/testsuite/anaylse-results.sh
469 .PHONY : dumpconfig \
482 install-plugins install-plugin uninstall-plugins install-pkglib:
488 pkgconfigdir = $(libdir)/pkgconfig
493 SWFDEC_REPO=git://anongit.freedesktop.org/git/swfdec/swfdec
494 SWFDEC_MOUNT=$(srcdir)/testsuite/swfdec/src
496 if test -d "$(SWFDEC_MOUNT)"; then \
497 cd "$(SWFDEC_MOUNT)" && git pull && git branch -v; \
499 git clone $(SWFDEC_REPO) "$(SWFDEC_MOUNT)"; \