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 Haiku gui
20#
21
22if BUILD_HAIKU_GUI
23bin_PROGRAMS += haiku-gnash
24haiku_gnash_SOURCES = $(GUI_SRCS) \
25     haiku/gui_haiku.cpp \
26     haiku/haiku.cpp \
27     haiku/haikusup.h
28haiku_gnash_CPPFLAGS = -DGUI_HAIKU -DGUI_CONFIG=\"HAIKU\" \
29	$(AM_CPPFLAGS) $(HAIKU_CFLAGS)
30haiku_gnash_LDFLAGS = -export-dynamic $(AM_LDFLAGS)
31haiku_gnash_LDADD = $(GNASH_LIBS)
32# all-local: haiku-gnash$(EXEEXT)
33# 	echo
34
35if BUILD_AGG_RENDERER
36haiku_gnash_CPPFLAGS += $(AGG_CFLAGS)
37# -lbe must be after -lagg
38haiku_gnash_LDADD += $(top_builddir)/librender/libgnashrender.la \
39	$(AGG_LIBS) $(HAIKU_LIBS)
40haiku_gnash_SOURCES += haiku/haiku_agg_glue.cpp haiku/haiku_agg_glue.h
41endif				# BUILD_AGG_RENDERER
42
43endif				# BUILD_HAIKU_GUI
44
45