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 DISTCLEANFILES = revno.h
118 MAINTAINERCLEANFILES = revno.h .lastmod
119 BUILT_SOURCES = revno.h .configline
122 # Extract info from the repository to include in the build.
123 # If top source dir is not a git repository or git is not installed,
124 # keep the current revno.h file (which should be part of any distribution).
125 # It's primarily used by the testsuites and when building binary packages
126 # from multiple branches.
128 # This ia a big hack around makes's built in dependency checking, as the
129 # key file here isn't part of the normal files. In the source tree for
130 # developers, the .git/index files changes on any commits or pulls. We
131 # only want to regenerate this file if that file changes, so we have to
132 # do the dependency check ourselves.
134 @if test \! -e .lastmod; then \
135 touch -t 197001010000 .lastmod; \
137 if test $(top_srcdir)/.git/index -nt .lastmod; then \
138 if test -d $(top_srcdir)/.git -a x"${GIT}" != x; then \
139 echo "Getting build info for revno.h"; \
140 revno="`cd $(top_srcdir) ; $(GIT) rev-list HEAD | wc -l`"; \
141 comm_id="`cd $(top_srcdir) ; $(GIT) rev-parse --short HEAD`"; \
142 nick="`cd $(top_srcdir) ; $(GIT) branch | grep '^\*' | cut -d ' ' -f 2`"; \
148 echo "Generating revno.h ($${nick} $${revno} $${comm_id})"; \
149 echo "static const char* BRANCH_REVNO = \"$${revno}\";" > revno.h; \
150 echo "static const char* BRANCH_NICK = \"$${nick}\";" >> revno.h; \
151 echo "static const char* COMMIT_ID = \"$${comm_id}\";" >> revno.h; \
157 @head config.log | grep " .*/configure " | sed -e 's:^ . .*configure ::' > .configline
160 # Precompiled header support
162 include $(srcdir)/pch.am
165 # Binary tarball packaging
167 include $(srcdir)/packaging/snapshot.am
170 # Build an RPM package
172 include $(srcdir)/packaging/rpm.am
174 # Build a Debian/Ubuntu .deb GNU/Linux package
175 include $(srcdir)/packaging/deb.am
178 # Build a Debian Familiar .ipk GNU/Linux package. These are always
179 # cross compiled, typically for the ARM or XScale.
181 include $(srcdir)/packaging/ipkg.am
184 # Access Linux Platform support.
186 include $(srcdir)/packaging/alp.am
189 # BSD package building
191 include $(srcdir)/packaging/bsd.am
194 # Mozille/Firefox XPI support
196 include $(srcdir)/packaging/xpi.am
199 @echo "Rebuilding with GCC Mudflap support"
200 $(MAKE) CXXFLAGS="$(CXXFLAGS) -fmudflapth" LDFLAGS="$(LDFLAGS) -lmudflapth"
203 @echo "Rechecking with GCC Mudflap support"
204 $(MAKE) check CXXFLAGS="$(CXXFLAGS) -fmudflap" LDFLAGS="$(LDFLAGS) -lmudflap"
206 # Set a few variables to what features we selected so we can dump it with the
210 @echo "Building in directories: $(SUBDIRS)"
211 @echo "Some directories may be excluded from the build"
214 @echo "CXXFLAGS: $(CXXFLAGS)"
216 @echo "Image decoding support..."
217 @echo " JPEG_CFLAGS is $(JPEG_CFLAGS)"
218 @echo " JPEG_LIBS is $(JPEG_LIBS)"
219 @echo " PNG_CFLAGS is $(PNG_CFLAGS)"
220 @echo " PNG_LIBS is $(PNG_LIBS)"
221 @echo " GIF_CFLAGS is $(GIF_CFLAGS)"
222 @echo " GIF_LIBS is $(GIF_LIBS)"
223 @echo "Audio decoding support..."
225 @echo " GSTREAMER_CFLAGS is $(GSTREAMER_CFLAGS)"
226 @echo " GSTREAMER_LIBS is $(GSTREAMER_LIBS)"
227 @echo " GSTREAMER_PBUTILS_CFLAGS is $(GSTREAMER_PBUTILS_CFLAGS)"
228 @echo " GSTREAMER_PBUTILS_LIBS is $(GSTREAMER_PBUTILS_LIBS)"
231 @echo " FFMPEG_CFLAGS is $(FFMPEG_CFLAGS)"
232 @echo " FFMPEG_LIBS is $(FFMPEG_LIBS)"
233 @echo " OGG_CFLAGS is $(OGG_CFLAGS)"
234 @echo " OGG_LIBS is $(OGG_LIBS)"
237 @echo " SPEEX_CFLAGS is $(SPEEX_CFLAGS)"
238 @echo " SPEEXDSP_CFLAGS is $(SPEEXDSP_CFLAGS)"
239 @echo " SPEEX_LIBS is $(SPEEX_LIBS)"
240 @echo " SPEEXDSP_LIBS is $(SPEEXDSP_LIBS)"
242 @echo "GUI Toolkit decoding support..."
243 @echo " SDL_CFLAGS is $(SDL_CFLAGS)"
244 @echo " SDL_LIBS is $(SDL_LIBS)"
246 @echo " KDE3_CFLAGS is $(KDE3_CFLAGS)"
247 @echo " KDE3_LIBS is $(KDE3_LIBS)"
250 @echo " KDE4_CFLAGS is $(KDE4_CFLAGS)"
251 @echo " KDE4_LIBS is $(KDE4_LIBS)"
254 @echo " QT3_CFLAGS is $(QT3_CFLAGS)"
255 @echo " QT3_LIBS is $(QT3_LIBS)"
258 @echo " QT4_CFLAGS is $(QT4_CFLAGS)"
259 @echo " QT4_LIBS is $(QT4_LIBS)"
262 @echo " QTOPIA3_CFLAGS is $(QTOPIA3_CFLAGS)"
263 @echo " QTOPIA3_LIBS is $(QTOPIA3_LIBS)"
266 @echo " QTOPIA4_CFLAGS is $(QTOPIA4_CFLAGS)"
267 @echo " QTOPIA4_LIBS is $(QTOPIA4_LIBS)"
270 @echo " FLTK2_CFLAGS is $(FLTK2_CFLAGS)"
271 @echo " FLTK2_LIBS is $(FLTK2_LIBS)"
272 @echo " XFT_CFLAGS is $(XFT_CFLAGS)"
273 @echo " XFT_LIBS is $(XFT_LIBS)"
276 @echo " HAIKU_LIBS is $(HAIKU_LIBS)"
279 @echo " GTK2_CFLAGS is $(GTK2_CFLAGS)"
280 @echo " GTK2_LIBS is $(GTK2_LIBS)"
281 @echo " PANGO_CFLAGS is $(PANGO_CFLAGS)"
282 @echo " PANGO_LIBS is $(PANGO_LIBS)"
283 @echo " ATK_CFLAGS is $(ATK_CFLAGS)"
284 @echo " ATK_LIBS is $(ATK_LIBS)"
286 @echo " X11_CFLAGS is $(X11_CFLAGS)"
287 @echo " X11_LIBS is $(X11_LIBS)"
288 @echo "Support libraries..."
289 @echo " INCLTDL $(INCLTDL) "
290 @echo " LIBLTDL $(LIBLTDL) "
291 @echo " GLIB_CFLAGS is $(GLIB_CFLAGS)"
292 @echo " GLIB_LIBS is $(GLIB_LIBS)"
293 @echo " Z_CFLAGS is $(Z_CFLAGS)"
294 @echo " Z_LIBS is $(Z_LIBS)"
295 @echo " FREETYPE_CFLAGS is $(FREETYPE2_CFLAGS)"
296 @echo " FREETYPE_LIBS is $(FREETYPE2_LIBS)"
297 @echo " FONTCONFIG_CFLAGS is $(FONTCONFIG_CFLAGS)"
298 @echo " FONTCONFIG_LIBS is $(FONTCONFIG_LIBS)"
299 @echo " LIBINTL is $(LIBINTL)"
301 @echo " DMALLOC_CFLAGS is $(DMALLOC_CFLAGS)"
302 @echo " DMALLOC_LIBS is $(DMALLOC_LIBS)"
305 @echo " MYSQL_CFLAGS is $(MYSQL_CFLAGS)"
306 @echo " MYSQL_LIBS is $(MYSQL_LIBS)"
308 @echo " PTHREAD_CFLAGS is $(PTHREAD_CFLAGS)"
309 @echo " PTHREAD_LIBS is $(PTHREAD_LIBS)"
310 @echo " CURL_CFLAGS is $(CURL_CFLAGS)"
311 @echo " CURL_LIBS is $(CURL_LIBS)"
312 @echo " BOOST_CFLAGS is $(BOOST_CFLAGS)"
313 @echo " BOOST_LIBS is $(BOOST_LIBS)"
314 @if test -n "$(BOOST_CYGNAL_LIBS)"; then \
315 echo " BOOST_CYGNAL_LIBS is $(BOOST_CYGNAL_LIBS)"; \
318 @echo " MING_VERSION_CODE $(MING_VERSION_CODE) "
319 @echo " MING_LIBS $(MING_LIBS) "
320 @echo " MING_CFLAGS $(MING_CFLAGS) "
321 @echo " MAKESWF $(MAKESWF) "
324 @echo " MTASC $(MTASC)"
325 @echo " MTASC CLASSPATH $(MTASC_CLASSPATH)"
328 @echo " HAXE $(HAXE)"
329 @echo " HAXE CLASSPATH $(HAXE_CLASSPATH)"
332 @echo " SWFMILL $(SWFMILL) "
333 @echo " SWFMILL_VERSION_CODE $(SWFMILL_VERSION) "
336 @echo " SWFC $(SWFC) "
338 if ENABLE_SWFDEC_TESTSUITE
339 @echo " SWFDEC_TESTSUITE $(SWFDEC_TESTSUITE)"
341 if ENABLE_HTTP_TESTSUITE
342 @echo " HTTP_TESTSUITE $(HTTP_TESTSUITE)"
344 if ENABLE_RED5_TESTING
345 @echo " RED5_HOST $(RED5_HOST)"
347 @echo "Graphics support..."
348 if BUILD_CAIRO_RENDERER
349 @echo " CAIRO_CFLAGS is $(CAIRO_CFLAGS)"
350 @echo " CAIRO_LIBS is $(CAIRO_LIBS)"
352 if BUILD_OGL_RENDERER
353 @echo " GLEXT_CFLAGS is $(GLEXT_CFLAGS)"
354 @echo " GLEXT_LIBS is $(GLEXT_LIBS)"
355 @echo " OPENGL_CFLAGS is $(OPENGL_CFLAGS)"
356 @echo " OPENGL_LIBS is $(OPENGL_LIBS)"
358 if BUILD_AGG_RENDERER
359 @echo " AGG_CFLAGS is $(AGG_CFLAGS)"
360 @echo " AGG_LIBS is $(AGG_LIBS)"
363 @echo "A blank value for CFLAGS means the header is installed in the"
364 @echo "default system header location. All the LIBS should have a"
367 @echo "Configurable options are:"
368 @echo " Media handlers: $(MEDIA_CONFIG)"
369 @echo " Renderer engines: $(RENDERER_CONFIG)"
370 @echo " Hardware Acceleration: $(HWACCEL_CONFIG)"
373 @echo " SSL_CFLAGS is $(SSL_CFLAGS)"
374 @echo " SSL_LIBS is $(SSL_LIBS)"
377 @echo " SSH_CFLAGS is $(SSH_CFLAGS)"
378 @echo " SSH_LIBS is $(SSH_LIBS)"
382 @echo " Supported GUI: GTK (+XVideo)"
384 @echo " Supported GUI: GTK"
388 @echo " Supported GUI: Dump"
391 @echo " Supported GUI: KDE3"
394 @echo " Supported GUI: KDE4"
397 @echo " Supported GUI: QTOPIA3"
400 @echo " Supported GUI: QTOPIA4"
403 @echo " Supported GUI: SDL"
406 @echo " Supported GUI: FLTK"
409 @echo " Supported GUI: AQUA"
412 @echo " Supported GUI: FB"
414 if BUILD_AMIGAOS4_GUI
415 @echo " Supported GUI: AMIGAOS4"
418 @echo " Supported GUI: Haiku"
421 @echo " Using jemalloc memory manager"
424 @if test -n "$(EXTENSIONS_LIST)" ; then \
425 echo " Extensions added are: $(EXTENSIONS_LIST)"; \
427 @if test -n "$(SECURITY_LIST)" ; then \
428 echo " Security features enabled are: $(SECURITY_LIST)"; \
430 @if test -n "$(STATISTICS_LIST)" ; then \
431 echo " Statistics features enabled are: $(STATISTICS_LIST)"; \
434 @echo " KPARTS 3.x (KDE) plugin enabled"
435 @echo " KPARTS 3.x plugin install dir: $(KDE_PLUGINDIR)"
436 @echo " KPARTS 3.x service install dir: $(KDE_SERVICESDIR)"
437 @echo " KPARTS 3.x config dir: ${KDE_CONFIGDIR}"
438 @echo " KPARTS 3.x appsdata dir: ${KDE_APPSDATADIR}"
440 @echo " KPARTS 3.x (KDE) plugin disabled"
443 @echo " KPARTS 4.x (KDE) plugin enabled"
444 @echo " KPARTS 4.x plugin install dir: $(KDE4_PLUGINDIR)"
445 @echo " KPARTS 4.x service install dir: $(KDE4_SERVICESDIR)"
446 @echo " KPARTS 4.x config dir: ${KDE4_CONFIGDIR}"
447 @echo " KPARTS 4.x appsdata dir: ${KDE4_APPSDATADIR}"
449 @echo " KPARTS 4.x (KDE) plugin disabled"
453 @echo " NPAPI (Mozilla) plugin enabled"
454 @echo " NPAPI plugin install dir: $(FIREFOX_PLUGINS)"
456 @echo " NPAPI (Mozilla) plugin disabled"
459 @echo " PYTHON support enabled"
461 @echo " PYTHON support disabled"
468 anal testreport checksum:
469 $(srcdir)/testsuite/anaylse-results.sh
472 .PHONY : dumpconfig \
485 install-plugins install-plugin uninstall-plugins install-pkglib:
491 pkgconfigdir = $(libdir)/pkgconfig
496 SWFDEC_REPO=git://anongit.freedesktop.org/git/swfdec/swfdec
497 SWFDEC_MOUNT=$(srcdir)/testsuite/swfdec/src
499 if test -d "$(SWFDEC_MOUNT)"; then \
500 cd "$(SWFDEC_MOUNT)" && git pull && git branch -v; \
502 git clone $(SWFDEC_REPO) "$(SWFDEC_MOUNT)"; \
506 @if test -f /etc/debian_version; then $(MAKE) deb; \
507 else if test -f /etc/redhat-release; then $(MAKE) rpm; \
508 else echo "Gnash will not be packaged for this platform"; \
512 -test -z "$(CLEANFILES)" || rm -rf $(CLEANFILES)
514 # these files are created when building packages
515 CLEANFILES += *.deb rpmbuild *.dsc *.gz *.bz2 *.changes deb-copy-stamp gnash*git*