Update with current status
[gnash.git] / gui / qt / kde3.am
blob45cc1087c7c08d17c38d13feb90bab21b1d98356
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
19 # Build the KDE gui
20
21 if BUILD_KDE3_GUI
23 klash3.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
32 bin_PROGRAMS += kde3-gnash
34 kde3_gnash_CPPFLAGS = -DGUI_KDE3 -DGUI_CONFIG=\"KDE3\" \
35          $(AM_CPPFLAGS) $(KDE3_CFLAGS) $(QT3_CFLAGS)
36 kde3_gnash_SOURCES = $(GUI_SRCS) \
37     qt/gui_kde.cpp \
38         qt/kde.cpp \
39         qt/kdesup.h \
40         qt/kde_glue.h
42 kde3_gnash_LDFLAGS = -export-dynamic 
43 #kde_gnash_DEPENDENCIES = .configline
44 kde3_gnash_LDADD = \
45         $(AM_LDFLAGS) \
46         $(GNASH_LIBS) \
47     $(KDE3_LIBS) \
48     $(QT3_LIBS)
50 if BUILD_OGL_RENDERER
51 kde3_gnash_CPPFLAGS += $(OPENGL_CFLAGS)
52 kde3_gnash_LDADD += $(OPENGL_LIBS)
53 kde3_gnash_SOURCES += qt/kde_glue_opengl.cpp qt/kde_glue_opengl.h 
54 endif
56 if BUILD_AGG_RENDERER
57 kde3_gnash_CPPFLAGS += $(AGG_CFLAGS)
58 kde3_gnash_LDADD += $(AGG_LIBS)
59 kde3_gnash_SOURCES += qt/kde_glue_agg.cpp qt/kde_glue_agg.h 
60 endif
61 endif