1 ## Process this file with automake to generate Makefile.in
3 # Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011 Free Software Foundation, Inc.
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 # build gtk-gnash, kde-gnash, sdl-gnash, fltk-gnash, aqua-gnash, fb-gnash,
21 # riscos-gnash, haiku-gnash and dump-gnash
24 AUTOMAKE_OPTIONS = -Wno-portability
26 DIST_SUBDIRS = pythonmod fb dump
28 # Build the current directory first. It's hard to see, but there is a '.' dot here.
39 # If python support is enabled, built that too
45 localedir = $(datadir)/locale
47 # this is where Gnash plugins get installed
48 pluginsdir = $(libdir)/gnash/plugins
50 # noinst_LTLIBRARIES = libgnashgui.la
53 EXTRA_DIST = gnash.in \
61 # top_builddir and top_srcdir are for revno.h; its location depends on
62 # whether we're building from a snapshot or a checkout.
66 -I$(top_srcdir)/libnet \
67 -I$(top_srcdir)/libcore \
68 -I$(top_srcdir)/libcore/swf \
69 -I$(top_srcdir)/libcore/parser \
70 -I$(top_srcdir)/libcore/vm \
71 -I$(top_srcdir)/libcore/asobj \
72 -I$(top_srcdir)/libltdl \
73 -I$(top_srcdir)/libbase \
74 -I$(top_srcdir)/librender \
75 -I$(top_srcdir)/librender/agg \
76 -I$(top_srcdir)/librender/cairo \
77 -I$(top_srcdir)/librender/opengl \
78 -I$(top_srcdir)/libmedia \
79 -I$(top_srcdir)/libsound \
80 -DLOCALEDIR=\"$(localedir)\" \
81 -DPLUGINSDIR=\"$(pluginsdir)\" \
82 -DLIBAVCODEC_IDENT=\"$(LIBAVCODEC_IDENT)\" \
109 # The following will be filled up later
112 ## WARNING: make sure GLIB_LIBS appears first
113 ## See: http://lists.gnu.org/archive/html/gnash-dev/2006-07/msg00076.html
129 $(top_builddir)/libcore/libgnashcore.la \
130 $(top_builddir)/librender/libgnashrender.la \
131 $(top_builddir)/libsound/libgnashsound.la \
132 $(top_builddir)/libmedia/libgnashmedia.la \
133 $(top_builddir)/libbase/libgnashbase.la
135 LIB_FLAGS = -release $(VERSION)
137 LIB_FLAGS += --enable-auto-import
140 # endif # DYNAMIC_GUI
144 AM_LDFLAGS += $(FFMPEG_LIBS) $(LIBVA_LIBS) $(LIBVA_X11_LIBS)
145 AM_CPPFLAGS += $(FFMPEG_CFLAGS)
149 GST_STUFF = $(GSTREAMER_PBUTILS_LIBS) $(GSTREAMER_PLUGINS_BASE_LIBS) $(GSTREAMER_LIBS)
150 AM_CPPFLAGS += $(GSTREAMER_CFLAGS)
151 AM_LDFLAGS += $(GST_STUFF)
155 # FLTK_SRCS = fltk.cpp fltksup.h $(FLTK_AGG_SRCS) $(FLTK_CAIRO_SRCS)
156 # AM_CPPFLAGS += $(FLTK2_CFLAGS) $(X11_CFLAGS)
157 # AM_LDFLAGS += $(FLTK2_LIBS) $(XFT_LIBS) $(X11_LIBS)
162 AM_CPPFLAGS += -DPKGDATADIR="\"$(pkgdatadir)\""
163 AM_CPPFLAGS += -DRENDERER_CONFIG="\"$(RENDERER_CONFIG)\""
164 AM_CPPFLAGS += -DHWACCEL_CONFIG="\"$(HWACCEL_CONFIG)\""
165 AM_CPPFLAGS += -DMEDIA_CONFIG="\"$(MEDIA_CONFIG)\""
166 AM_CPPFLAGS += -DCONFIG_CONFIG="\"$(shell cat ../.configline)\""
167 AM_CPPFLAGS += -DCXXFLAGS="\"$(CXXFLAGS)\""
169 dist_images_DATA = images/gnash_128_96.ico images/GnashG.png
170 #dist_images_DATA = images/gnash_G_v3.ico
171 imagesdir = $(pkgdatadir)
177 cp $(srcdir)/gnash.in $@
180 # Always include the device files in the source tarball
186 GUI_SRCS = gnash.cpp \
188 Player.cpp Player.h \
189 NullGui.cpp NullGui.h \
190 ScreenShotter.cpp ScreenShotter.h \
194 BUILT_SOURCES += bundle
195 EXTRA_DIST += Gnash.app
198 # Build the QTOPIA gui
200 include $(srcdir)/kde/qtopia3.am
205 BUILT_SOURCES += klash3.moc
206 include $(srcdir)/kde/kde3.am
211 BUILT_SOURCES += Kde4Gui.moc
212 BUILT_SOURCES += Kde4Glue.moc
213 include $(srcdir)/kde/kde4.am
218 include $(srcdir)/sdl/sdl.am
221 # Build the AmigaOS4 gui
222 if BUILD_AMIGAOS4_GUI
223 include $(srcdir)/aos4/aos4.am
226 # Build the Haiku gui
228 include $(srcdir)/haiku/haiku.am
233 include $(srcdir)/fltk/fltk.am
238 include $(srcdir)/aqua/aqua.am
243 include $(srcdir)/gtk/gtk.am
246 # Build the RISCOS gui
248 include $(srcdir)/riscos/riscos.am
251 CLEANFILES = klash3.moc Kde4Gui.moc Kde4Glue.moc gnash
253 bundle: Info.plist aqua-gnash
254 @echo " Building: $(bundle_name)"
255 rm -rf $(bundle_name)/Contents
256 mkdir -p $(bundle_name)/Contents/MacOS
257 mkdir -p $(bundle_name)/Contents/Resources
258 echo "APPL????" > $(bundle_name)/Contents/PkgInfo
259 cp Info.plist $(bundle_name)/Contents/Info.plist
260 cp -f aqua-gnash $(bundle_name)/Contents/MacOS/Gnash
261 cp -f images/GnashG.icns $(bundle_name)/Contents/Resources/
264 #noinst_PROGRAMS = guitest # klash flak
265 #guitest_SOURCES = guitest.cpp #fltk.cpp #fltksup.h fltksupp.h gnash.cpp gtk.cpp
266 # gtksup.h gui.cpp gui.h menu.cpp menu.h sdl.cpp sdlsup.h [21~sdlsupp.h
267 #guitest_LDADD = $(gnash_LDADD)
269 # Rebuild with GCC 4.x Mudflap support
271 @echo "Rebuilding with GCC Mudflap support"
272 $(MAKE) CXXFLAGS="$(CXXFLAGS) -fmudflap" LDFLAGS="$(LDFLAGS) -lmudflap"
275 -rm -f core.* $(CLEANFILES)
278 # install-pluginsLTLIBRARIES: $(plugins_LTLIBRARIES)
279 # test -d "$(DESTDIR)$(plugindir)" || $(mkinstalldirs) "$(DESTDIR)$(plugindir)"
280 # for i in $(plugins_LTLIBRARIES); do \
281 # $(LIBTOOL) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$i "$(DESTDIR)$(plugindir)/$$i" ; \