don't add (LIBLTDL) to LDFLAGS, libltdl is part of libgnashbase.
[gnash.git] / gui / fb / Makefile.am
blob18a18322a385e8edcdf1ebc39199ece86cf80370
1 ## Process this file with automake to generate Makefile.in
2
3 #   Copyright (C) 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
17
20 # Build the FB gui
23 AUTOMAKE_OPTIONS = -Wno-portability
25 # top_builddir and top_srcdir are for revno.h; its location depends on
26 # whether we're building from a snapshot or a checkout.
27 AM_CPPFLAGS = \
28         -I$(top_builddir) \
29         -I$(top_srcdir) \
30         -I$(top_srcdir)/gui \
31         -I$(top_srcdir)/libnet \
32         -I$(top_srcdir)/libcore \
33         -I$(top_srcdir)/libcore/swf \
34         -I$(top_srcdir)/libcore/parser \
35         -I$(top_srcdir)/libcore/vm \
36         -I$(top_srcdir)/libcore/asobj \
37         -I$(top_srcdir)/libltdl \
38         -I$(top_srcdir)/libbase \
39         -I$(top_srcdir)/librender \
40         -I$(top_srcdir)/librender/agg \
41         -I$(top_srcdir)/librender/cairo \
42         -I$(top_srcdir)/librender/opengl \
43         -I$(top_srcdir)/libmedia \
44         -I$(top_srcdir)/libsound \
45         -DLOCALEDIR=\"$(localedir)\" \
46         -DPLUGINSDIR=\"$(pluginsdir)\" \
47         -DLIBAVCODEC_IDENT=\"$(LIBAVCODEC_IDENT)\" \
48         $(GLIB_CFLAGS) \
49         $(LIRC_CFLAGS) \
50         $(BOOST_CFLAGS) \
51         $(PYTHON_LIBS) \
52         $(PTHREAD_CFLAGS) \
53         $(NULL)
55 AM_CPPFLAGS += -DPKGDATADIR="\"$(pkgdatadir)\""
56 AM_CPPFLAGS += -DRENDERER_CONFIG="\"$(RENDERER_CONFIG)\""
57 AM_CPPFLAGS += -DHWACCEL_CONFIG="\"$(HWACCEL_CONFIG)\""
58 AM_CPPFLAGS += -DMEDIA_CONFIG="\"$(MEDIA_CONFIG)\""
59 AM_CPPFLAGS += -DCONFIG_CONFIG="\"$(shell cat ../../.configline)\""
60 AM_CPPFLAGS += -DCXXFLAGS="\"$(CXXFLAGS)\"" 
62 ## WARNING: make sure GLIB_LIBS appears first
63 ## See: http://lists.gnu.org/archive/html/gnash-dev/2006-07/msg00076.html
64 AM_LDFLAGS =  \
65         $(GLIB_LIBS) \
66         $(CURL_LIBS) \
67         $(JPEG_LIBS) \
68         $(PNG_LIBS) \
69         $(LIRC_LIBS) \
70         $(MYSQL_LIBS) \
71         $(INTLLIBS) \
72         $(TS_LIBS)
73         $(BOOST_LIBS) \
74         $(PTHREAD_LIBS) \
75         $(NULL)
77 if USE_FFMPEG_ENGINE
78 AM_LDFLAGS += $(FFMPEG_LIBS) $(LIBVA_LIBS) $(LIBVA_X11_LIBS) 
79 AM_CPPFLAGS += $(FFMPEG_CFLAGS) 
80 endif
82 if USE_GST_ENGINE
83 GST_STUFF = $(GSTREAMER_PBUTILS_LIBS) $(GSTREAMER_PLUGINS_BASE_LIBS) $(GSTREAMER_LIBS)
84 AM_CPPFLAGS += $(GSTREAMER_CFLAGS)
85 AM_LDFLAGS += $(GST_STUFF)
86 endif
88 GNASH_LIBS = \
89         $(top_builddir)/libcore/libgnashcore.la \
90         $(top_builddir)/librender/libgnashrender.la \
91         $(top_builddir)/libsound/libgnashsound.la \
92         $(top_builddir)/libmedia/libgnashmedia.la \
93         $(top_builddir)/libbase/libgnashbase.la
96 # These are used to handle input events from a keyboard, mouse, or
97 # touchscreen. These are only used by the Framebuffer GUI, as without
98 # X11, it has no event handling. We do it this way so the optionally
99 # built source files still get included in the source tarball.
100 DEVICES =
101 if ENABLE_INPUT_DEVICES
102 DEVICES += InputDevice.cpp InputDevice.h
104 # Touchscreen
105 if ENABLE_TSLIB
106 DEVICES += TouchDevice.cpp
107 endif
108 # PS/2 Mouse
109 if ENABLE_MOUSE
110 DEVICES += MouseDevice.cpp
111 endif
112 # Linux input events
113 if ENABLE_INPUT_EVENTS
114 DEVICES += EventDevice.cpp
115 endif
116 endif
118 if BUILD_FB_GUI
119 bin_PROGRAMS = fb-gnash
121 # TODO: stop using these 
122 GUI_SRCS = ../gnash.cpp \
123         ../gui.cpp ../gui.h \
124         ../Player.cpp ../Player.h \
125         ../NullGui.cpp ../NullGui.h \
126         ../ScreenShotter.cpp ../ScreenShotter.h \
127         $(NULL)
129 fb_gnash_SOURCES = $(GUI_SRCS) $(DEVICES) gui_fb.cpp fb.cpp fbsup.h
130 fb_gnash_CPPFLAGS = -DGUI_FB -DGUI_CONFIG=\"FB\" -DFAKEFB=\"$(FAKEFB)\" \
131         $(AM_CPPFLAGS) 
132 fb_gnash_LDFLAGS = -export-dynamic $(AM_LDFLAGS)
133 #fb_gnash_DEPENDENCIES = .configline
134 fb_gnash_LDADD = \
135         $(top_builddir)/librender/libgnashrender.la \
136         $(GNASH_LIBS) 
138 if BUILD_AGG_RENDERER
139 fb_gnash_CPPFLAGS += $(AGG_CFLAGS)
140 fb_gnash_LDADD += $(AGG_LIBS)
141 endif                           # BUILD_AGG_RENDERER
143 endif                           # BUILD_FB_GUI