1 ## Process this fill with automake to generate Makefile.in
3 # Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011 Free Software Foundation, Inc.
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 AUTOMAKE_OPTIONS = dejagnu
29 -I$(top_srcdir)/libbase \
30 -I$(top_srcdir)/libmedia \
31 -I$(top_srcdir)/libsound \
32 -I$(top_srcdir)/librender \
33 -I$(top_srcdir)/libcore \
34 -I$(top_srcdir)/libcore/swf \
35 -I$(top_srcdir)/libcore/parser \
36 -I$(top_srcdir)/libcore/vm \
37 -I$(top_srcdir)/testsuite \
48 $(top_builddir)/testsuite/libtestsuite.la \
49 $(top_builddir)/libcore/libgnashcore.la \
50 $(top_builddir)/libbase/libgnashbase.la \
51 $(top_builddir)/librender/libgnashrender.la \
55 GNASH_LIBS += $(top_builddir)/libltdl/libltdlc.la
58 GNASH_LIBS += $(top_builddir)/libbase/libltdlc.la
62 clip_as_button2-TestRunner \
63 subshapes-TestRunner \
64 gotoFrameOnKeyEvent-TestRunner \
68 GotoAndPlayTestRunner \
71 clip_as_button2_TestRunner_SOURCES = \
72 clip_as_button2-TestRunner.cpp \
74 clip_as_button2_TestRunner_LDADD = \
77 clip_as_button2_TestRunner_CXXFLAGS = \
78 -DSRCDIR=\"$(srcdir)\" \
81 subshapes_TestRunner_SOURCES = \
82 subshapes-TestRunner.cpp \
84 subshapes_TestRunner_LDADD = \
87 subshapes_TestRunner_CXXFLAGS = \
88 -DSRCDIR=\"$(srcdir)\" \
91 gotoFrameOnKeyEvent_TestRunner_SOURCES = \
92 gotoFrameOnKeyEvent-TestRunner.cpp \
94 gotoFrameOnKeyEvent_TestRunner_LDADD = \
97 gotoFrameOnKeyEvent_TestRunner_CXXFLAGS = \
98 -DSRCDIR=\"$(srcdir)\" \
101 GotoAndPlayTestRunner: $(srcdir)/../generic-testrunner.sh $(srcdir)/GotoAndPlayTest.swf
102 sh $(srcdir)/../generic-testrunner.sh $(top_builddir) $(srcdir)/GotoAndPlayTest.swf > $@
108 clip_as_button2.swf \
109 GotoAndPlayTest.swf \
110 gotoFrameOnKeyEvent.swf \
115 TEST_DRIVERS = ../simple.exp
120 check-DEJAGNU: site-update $(check_PROGRAMS)
121 @runtest=$(RUNTEST); \
122 if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
123 GNASH_GC_TRIGGER_THRESHOLD=0 GNASHRC=../gnashrc $$runtest $(RUNTESTFLAGS) $(TEST_DRIVERS); true; \
125 echo "WARNING: could not find \`runtest'" 1>&2; \
126 for i in "$(TEST_CASES)"; do \
127 GNASH_GC_TRIGGER_THRESHOLD=0 GNASHRC=../gnashrc $(SHELL) $$i; \
131 site-update: site.exp
133 @cp site.exp site.exp.bak
134 @sed -e '/testcases/d' site.exp.bak > site.exp
135 @echo "# This is a list of the pre-compiled testcases" >> site.exp
136 @echo "set testcases \"$(TEST_CASES)\"" >> site.exp