update copyright date
[gnash.git] / testsuite / samples / Makefile.am
blob4780a5358e9cf65b9a3464f7f996e4f1f9f4e45b
1 ## Process this fill with automake to generate Makefile.in
2
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 
22 CLEANFILES =  \
23       gnash-dbg.log \
24       site.exp.bak \
25       testrun.* \
26       GotoAndPlayTestRunner
28 AM_CPPFLAGS = \
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 \
38         $(OPENGL_CFLAGS) \
39         $(BOOST_CFLAGS) \
40         $(FFMPEG_CFLAGS) \
41         $(NULL)
43 AM_LDFLAGS = \
44         $(OPENGL_LIBS) \
45         $(NULL)
47 GNASH_LIBS = \
48         $(top_builddir)/testsuite/libtestsuite.la \
49         $(top_builddir)/libcore/libgnashcore.la \
50         $(top_builddir)/libbase/libgnashbase.la \
51         $(top_builddir)/librender/libgnashrender.la \
52         $(NULL)
54 if LIBLTDL2
55 GNASH_LIBS += $(top_builddir)/libltdl/libltdlc.la
56 endif
57 if LIBLTDL1
58 GNASH_LIBS += $(top_builddir)/libbase/libltdlc.la
59 endif
61 check_PROGRAMS = \
62         clip_as_button2-TestRunner \
63         subshapes-TestRunner \
64         gotoFrameOnKeyEvent-TestRunner \
65         $(NULL)
67 check_SCRIPTS = \
68         GotoAndPlayTestRunner \
69         $(NULL)
71 clip_as_button2_TestRunner_SOURCES = \
72         clip_as_button2-TestRunner.cpp \
73         $(NULL)
74 clip_as_button2_TestRunner_LDADD = \
75         $(GNASH_LIBS) \
76         $(NULL)
77 clip_as_button2_TestRunner_CXXFLAGS = \
78         -DSRCDIR=\"$(srcdir)\" \
79         $(NULL)
81 subshapes_TestRunner_SOURCES = \
82         subshapes-TestRunner.cpp \
83         $(NULL)
84 subshapes_TestRunner_LDADD = \
85         $(GNASH_LIBS) \
86         $(NULL)
87 subshapes_TestRunner_CXXFLAGS = \
88         -DSRCDIR=\"$(srcdir)\" \
89         $(NULL)
91 gotoFrameOnKeyEvent_TestRunner_SOURCES = \
92         gotoFrameOnKeyEvent-TestRunner.cpp \
93         $(NULL)
94 gotoFrameOnKeyEvent_TestRunner_LDADD = \
95         $(GNASH_LIBS) \
96         $(NULL)
97 gotoFrameOnKeyEvent_TestRunner_CXXFLAGS = \
98         -DSRCDIR=\"$(srcdir)\" \
99         $(NULL)
101 GotoAndPlayTestRunner: $(srcdir)/../generic-testrunner.sh $(srcdir)/GotoAndPlayTest.swf
102         sh $(srcdir)/../generic-testrunner.sh $(top_builddir) $(srcdir)/GotoAndPlayTest.swf > $@
103         chmod 755 $@
105 clean-local: 
107 EXTRA_DIST = \
108         clip_as_button2.swf \
109         GotoAndPlayTest.swf \
110         gotoFrameOnKeyEvent.swf \
111         subshapes.swf \
112         README \
113         $(NULL)
115 TEST_DRIVERS = ../simple.exp
116 TEST_CASES = \
117         $(check_PROGRAMS) \
118         $(check_SCRIPTS)
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; \
124         else \
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; \
128           done; \
129         fi
131 site-update: site.exp
132         @rm -fr site.exp.bak
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