put dump stuff in dump .am
[gnash.git] / gui / Makefile.am
blob7448bef82cc5204677a48c3cee4f5a807e16af69
1 ## Process this file with automake to generate Makefile.in
2
3 #   Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
4
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # 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
18
19 # build gtk-gnash, kde-gnash, sdl-gnash, fltk-gnash, aqua-gnash, fb-gnash,
20 # riscos-gnash, haiku-gnash and dump-gnash
23 AUTOMAKE_OPTIONS = -Wno-portability
25 DIST_SUBDIRS = pythonmod fb
27 # Build the current directory first. It's hard to see, but there is a '.' dot here.
28 SUBDIRS = . fb
30 if BUILD_FB_GUI
31 SUBDIRS += fb
32 endif
34 # If python support is enabled, built that too
35 if HAS_PYTHON
36 SUBDIRS += pythonmod
37 endif
40 localedir = $(datadir)/locale
42 # this is where Gnash plugins get installed
43 pluginsdir = $(libdir)/gnash/plugins
45 # noinst_LTLIBRARIES = libgnashgui.la
46 BUILT_SOURCES =
48 EXTRA_DIST = gnash.in \
49         kde/klash3.moc.in \
50         kde/Kde4Gui.moc.in \
51         kde/Kde4Glue.moc.in
53 noinst_HEADERS =
54 noinst_LTLIBRARIES = 
56 # top_builddir and top_srcdir are for revno.h; its location depends on
57 # whether we're building from a snapshot or a checkout.
58 AM_CPPFLAGS = \
59         -I$(top_builddir) \
60         -I$(top_srcdir) \
61         -I$(top_srcdir)/libnet \
62         -I$(top_srcdir)/libcore \
63         -I$(top_srcdir)/libcore/swf \
64         -I$(top_srcdir)/libcore/parser \
65         -I$(top_srcdir)/libcore/vm \
66         -I$(top_srcdir)/libcore/asobj \
67         -I$(top_srcdir)/libltdl \
68         -I$(top_srcdir)/libbase \
69         -I$(top_srcdir)/librender \
70         -I$(top_srcdir)/librender/agg \
71         -I$(top_srcdir)/librender/cairo \
72         -I$(top_srcdir)/librender/opengl \
73         -I$(top_srcdir)/libmedia \
74         -I$(top_srcdir)/libsound \
75         -DLOCALEDIR=\"$(localedir)\" \
76         -DPLUGINSDIR=\"$(pluginsdir)\" \
77         -DLIBAVCODEC_IDENT=\"$(LIBAVCODEC_IDENT)\" \
78         $(GLIB_CFLAGS) \
79         $(LIRC_CFLAGS) \
80         $(BOOST_CFLAGS) \
81         $(PYTHON_LIBS) \
82         $(PTHREAD_CFLAGS) \
83         $(NULL)
85 GTK_CFLAGS = \
86         $(GTK2_CFLAGS) \
87         $(GLEXT_CFLAGS) \
88         $(GLIB_CFLAGS) \
89         $(PANGO_CFLAGS) \
90         $(ATK_CFLAGS) \
91         $(CAIRO_CFLAGS)
93 GTK_LIBS =  \
94         $(GTK2_LIBS) \
95         $(GLEXT_LIBS) \
96         $(CAIRO_LIBS) \
97         $(PANGO_LIBS) \
98         $(ATK_LIBS) \
99         $(GLIB_LIBS) \
100         $(EXPAT_LIBS) \
101         $(X11_LIBS) \
102         $(Z_LIBS)
104 # The following will be filled up later
105 GUI_CPPFLAGS = 
107 ## WARNING: make sure GLIB_LIBS appears first
108 ## See: http://lists.gnu.org/archive/html/gnash-dev/2006-07/msg00076.html
109 AM_LDFLAGS =  \
110         $(GLIB_LIBS) \
111         $(CURL_LIBS) \
112         $(JPEG_LIBS) \
113         $(PNG_LIBS) \
114         $(LIRC_LIBS) \
115         $(MYSQL_LIBS) \
116         $(INTLLIBS) \
117         $(TS_LIBS) \
118         $(BOOST_LIBS) \
119         $(PTHREAD_LIBS) \
120         $(NULL)
123 GNASH_LIBS = \
124         $(top_builddir)/libcore/libgnashcore.la \
125         $(top_builddir)/librender/libgnashrender.la \
126         $(top_builddir)/libsound/libgnashsound.la \
127         $(top_builddir)/libmedia/libgnashmedia.la \
128         $(top_builddir)/libbase/libgnashbase.la
130 # if LIBLTDL2
131 # GNASH_LIBS += $(top_builddir)/libltdl/libltdlc.la
132 # endif
133 # if LIBLTDL1
134 # GNASH_LIBS += $(top_builddir)/libbase/libltdlc.la
135 # endif
137 # Only build loadable modules unless statically linking
138 # if DYNAMIC_GUI # make shared libraries suitable for dlopen().
139 # if  ENABLE_SHARED
140 #      LIB_FLAGS = -module -avoid-version -no-undefined
141 # else
142 #      LIB_FLAGS = -release $(VERSION)
143 # endif # ENABLE_SHARED
144 # else # make shared libraries suitable for linking.
145 LIB_FLAGS = -release $(VERSION)
146 if WIN32
147 LIB_FLAGS += --enable-auto-import
148 endif
150 # endif # DYNAMIC_GUI
153 if USE_FFMPEG_ENGINE
154 AM_LDFLAGS += $(FFMPEG_LIBS) $(LIBVA_LIBS) $(LIBVA_X11_LIBS) 
155 AM_CPPFLAGS += $(FFMPEG_CFLAGS) 
156 endif
158 if USE_GST_ENGINE
159 GST_STUFF = $(GSTREAMER_PBUTILS_LIBS) $(GSTREAMER_PLUGINS_BASE_LIBS) $(GSTREAMER_LIBS)
160 AM_CPPFLAGS += $(GSTREAMER_CFLAGS)
161 AM_LDFLAGS += $(GST_STUFF)
162 endif
164 # if USE_GUI_FLTK
165 #  FLTK_SRCS = fltk.cpp fltksup.h $(FLTK_AGG_SRCS) $(FLTK_CAIRO_SRCS)
166 #  AM_CPPFLAGS += $(FLTK2_CFLAGS) $(X11_CFLAGS)
167 #  AM_LDFLAGS += $(FLTK2_LIBS) $(XFT_LIBS) $(X11_LIBS)
168 # else
169 #  FLTK_SRCS = 
170 # endif
172 AM_CPPFLAGS += -DPKGDATADIR="\"$(pkgdatadir)\""
173 AM_CPPFLAGS += -DRENDERER_CONFIG="\"$(RENDERER_CONFIG)\""
174 AM_CPPFLAGS += -DHWACCEL_CONFIG="\"$(HWACCEL_CONFIG)\""
175 AM_CPPFLAGS += -DMEDIA_CONFIG="\"$(MEDIA_CONFIG)\""
176 AM_CPPFLAGS += -DCONFIG_CONFIG="\"$(shell cat ../.configline)\""
177 AM_CPPFLAGS += -DCXXFLAGS="\"$(CXXFLAGS)\"" 
179 dist_images_DATA = images/gnash_128_96.ico images/GnashG.png
180 #dist_images_DATA = images/gnash_G_v3.ico
181 imagesdir = $(pkgdatadir)
183 bin_SCRIPTS = gnash
184 bin_PROGRAMS = 
186 gnash: gnash.in
187         cp $(srcdir)/gnash.in $@
188         chmod +x $@
190 # Always include the device files in the source tarball
191 EXTRA_DIST += \
192         fb/TouchDevice.cpp \
193         fb/MouseDevice.cpp \
194         fb/EventDevice.cpp
196 GUI_SRCS = gnash.cpp \
197         gui.cpp gui.h \
198         Player.cpp Player.h \
199         NullGui.cpp NullGui.h \
200         ScreenShotter.cpp ScreenShotter.h \
201         $(NULL)
203 if BUILD_AQUA_GUI
204 BUILT_SOURCES += bundle
205 EXTRA_DIST += Gnash.app
206 endif
208 # Build the QTOPIA gui
209 if BUILD_QTOPIA3_GUI
210 include $(srcdir)/kde/qtopia3.am
211 endif
213 # Build the KDE3 gui
214 if BUILD_KDE3_GUI
215 BUILT_SOURCES += klash3.moc 
216 include $(srcdir)/kde/kde3.am
217 endif
219 # Build the KDE4 gui
220 if BUILD_KDE4_GUI
221 BUILT_SOURCES += Kde4Gui.moc
222 BUILT_SOURCES += Kde4Glue.moc
223 include $(srcdir)/kde/kde4.am
224 endif
226 # Build the SDL gui
227 if BUILD_SDL_GUI
228 include $(srcdir)/sdl/sdl.am
229 endif
231 # Build the AmigaOS4 gui
232 if BUILD_AMIGAOS4_GUI
233 include $(srcdir)/aos4/aos4.am
234 endif
236 # Build the Haiku gui
237 if BUILD_HAIKU_GUI
238 include $(srcdir)/haiku/haiku.am
239 endif
241 # Build the FLTK gui
242 if BUILD_FLTK_GUI
243 include $(srcdir)/fltk/fltk.am
244 endif
246 # Build the AQUA gui
247 if BUILD_AQUA_GUI
248 include $(srcdir)/aqua/aqua.am
249 endif
251 # Build the GTK gui
252 if BUILD_GTK_GUI
253 include $(srcdir)/gtk/gtk.am
254 endif
256 # Build the DUMP gui
257 if BUILD_DUMP_GUI
258 include $(srcdir)/dump/dump.am
259 endif
261 # Build the RISCOS gui
262 if BUILD_RISCOS_GUI
263 include $(srcdir)/riscos/riscos.am
264 endif
266 CLEANFILES = klash3.moc Kde4Gui.moc Kde4Glue.moc gnash
268 bundle: Info.plist aqua-gnash
269         @echo " Building: $(bundle_name)" 
270         rm -rf $(bundle_name)/Contents
271         mkdir -p $(bundle_name)/Contents/MacOS
272         mkdir -p $(bundle_name)/Contents/Resources
273         echo "APPL????" > $(bundle_name)/Contents/PkgInfo
274         cp Info.plist $(bundle_name)/Contents/Info.plist
275         cp -f aqua-gnash $(bundle_name)/Contents/MacOS/Gnash
276         cp -f images/GnashG.icns $(bundle_name)/Contents/Resources/
279 #noinst_PROGRAMS = guitest # klash flak
280 #guitest_SOURCES = guitest.cpp #fltk.cpp #fltksup.h fltksupp.h gnash.cpp gtk.cpp 
281 #       gtksup.h gui.cpp gui.h menu.cpp menu.h sdl.cpp sdlsup.h [21~sdlsupp.h
282 #guitest_LDADD = $(gnash_LDADD)
284 # Rebuild with GCC 4.x Mudflap support
285 mudflap:
286         @echo "Rebuilding with GCC Mudflap support"
287         $(MAKE) CXXFLAGS="$(CXXFLAGS) -fmudflap" LDFLAGS="$(LDFLAGS) -lmudflap"
289 clean-hook:
290         -rm -f core.* $(CLEANFILES)
292 # if DYNAMIC_GUI
293 # install-pluginsLTLIBRARIES: $(plugins_LTLIBRARIES)
294 #       test -d "$(DESTDIR)$(plugindir)" || $(mkinstalldirs) "$(DESTDIR)$(plugindir)"
295 #       for i in $(plugins_LTLIBRARIES); do \
296 #         $(LIBTOOL) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$i "$(DESTDIR)$(plugindir)/$$i" ; \
297 #       done
298 # endif