1#
2#   Copyright (C) 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
3#
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.
8#
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
16#
17
18#
19# Build the KDE gui
20#
21if BUILD_KDE3_GUI
22
23klash3.moc: $(srcdir)/qt/kdesup.h
24	@if test x"$(MOC3)" != x; then \
25	  echo "Generating MOC 3 file..."; \
26	  $(MOC3) $(srcdir)/qt/kdesup.h -o klash3.moc; \
27	else  \
28	  echo "WARNING: Install QT 3.x moc tool! Linking to default MOC file"; \
29	  ln -sf $(srcdir)/qt/klash3.moc.in klash3.moc; \
30	fi
31
32bin_PROGRAMS += kde3-gnash
33
34kde3_gnash_CPPFLAGS = -DGUI_KDE3 -DGUI_CONFIG=\"KDE3\" \
35	 $(AM_CPPFLAGS) $(KDE3_CFLAGS) $(QT3_CFLAGS)
36kde3_gnash_SOURCES = $(GUI_SRCS) \
37    qt/gui_kde.cpp \
38	qt/kde.cpp \
39	qt/kdesup.h \
40	qt/kde_glue.h
41
42kde3_gnash_LDFLAGS = -export-dynamic
43#kde_gnash_DEPENDENCIES = .configline
44kde3_gnash_LDADD = \
45	$(AM_LDFLAGS) \
46	$(GNASH_LIBS) \
47    $(KDE3_LIBS) \
48    $(QT3_LIBS)
49
50if BUILD_OGL_RENDERER
51kde3_gnash_CPPFLAGS += $(OPENGL_CFLAGS)
52kde3_gnash_LDADD += $(OPENGL_LIBS)
53kde3_gnash_SOURCES += qt/kde_glue_opengl.cpp qt/kde_glue_opengl.h
54endif
55
56if BUILD_AGG_RENDERER
57kde3_gnash_CPPFLAGS += $(AGG_CFLAGS)
58kde3_gnash_LDADD += $(AGG_LIBS)
59kde3_gnash_SOURCES += qt/kde_glue_agg.cpp qt/kde_glue_agg.h
60endif
61endif
62