1
## Process this fill with automake to generate Makefile.in
3
# Copyright (C) 2009 Free Software Foundation, Inc.
5
# This program is free software; you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation; either version 3 of the License, or
8
# (at your option) any later version.
10
# This program is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
# GNU General Public License for more details.
15
# You should have received a copy of the GNU General Public License
16
# along with this program; if not, write to the Free Software
17
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19
AUTOMAKE_OPTIONS = dejagnu
21
EXTRA_DIST = DejaGnu.hx
23
TEST_DRIVERS = classes.exp
25
# These get there values from the Makefile fragments. Each fragment
28
HAXE_FLAGS = -cp $(srcdir)
31
#include $(srcdir)/fl/accessibility/accessibility.am
32
# include $(srcdir)/fl/containers/containers.am
33
# include $(srcdir)/fl/controls/controls.am
34
# include $(srcdir)/fl/core/core.am
35
# include $(srcdir)/fl/managers/managers.am
36
# include $(srcdir)/fl/motion/motion.am
37
# include $(srcdir)/fl/transitions/transitions.am
38
# include $(srcdir)/fl/video/video.am
40
# These classes are in the flash namespace
41
include $(srcdir)/accessibility/accessibility.am
43
# These classes are for AIR only, not flash
44
# include $(srcdir)/data/data.am
45
# include $(srcdir)/desktop/desktop.am
47
include $(srcdir)/display/display.am
48
include $(srcdir)/errors/errors.am
49
include $(srcdir)/events/events.am
50
include $(srcdir)/external/external.am
51
# # include $(srcdir)/filesystem/filesystem.am
52
# # include $(srcdir)/filters/filters.am
53
include $(srcdir)/geom/geom.am
54
# # HAXE doesn't appear to support the HTML classes
55
# # include $(srcdir)/html/html.am
56
include $(srcdir)/media/media.am
57
include $(srcdir)/net/net.am
58
include $(srcdir)/printing/printing.am
59
# # include $(srcdir)/sampler/sampler.am
60
# # HAXE doesn't appear to support the Security classes
61
# # include $(srcdir)/security/security.am
62
include $(srcdir)/system/system.am
63
include $(srcdir)/text/text.am
64
include $(srcdir)/ui/ui.am
65
include $(srcdir)/utils/utils.am
66
include $(srcdir)/xml/xml.am
68
#/usr/bin/haxe -swf-version 9 -cp /home/rob/projects/gnu/gnash-bzr/avm2/testsuite/as3/classes.all -cp /home/rob/projects/gnu/gnash-bzr/avm2/testsuite/as3/classes.all/media -swf Sound_as3.swf -main Sound_as3.hx
71
# build multiple output formats from the same test case. exit with failure if
72
# the test case doesn't compile for v9, it's a test cases bug. Not all classes
73
# support all versions, so in those cases justy ignore the errors as it's less
74
# messy than testing for each test case to see if it supports that version.
76
-@newname=`echo $(@F) | sed -e 's:_as:_asv9:'`; \
77
$(HAXE) -swf-version 9 $(HAXE_FLAGS) -swf $${newname} -main $(@F:%.swf=%.hx)
78
-@newname=`echo $(@F) | sed -e 's:_as:_asv8:'`; \
79
$(HAXE) -swf-version 8 $(HAXE_FLAGS) -swf $${newname} -main $(@F:%.swf=%.hx)
80
-@newname=`echo $(@F) | sed -e 's:_as:_asv7:'`; \
81
$(HAXE) -swf-version 7 $(HAXE_FLAGS) -swf $${newname} -main $(@F:%.swf=%.hx)
82
-@newname=`echo $(@F) | sed -e 's:_as:_asv6:'`; \
83
$(HAXE) -swf-version 6 $(HAXE_FLAGS) -swf $${newname} -main $(@F:%.swf=%.hx)
95
check-DEJAGNU: site.exp $(check_SCRIPTS)
96
@runtest=$(RUNTEST); \
97
if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
98
GNASH_GC_TRIGGER_THRESHOLD=0 GNASHRC=../../gnashrc $$runtest $(RUNTESTFLAGS) $(TEST_DRIVERS); true; \
100
echo "WARNING: could not find \`runtest'" 1>&2; \
101
for i in "$(TEST_CASES)"; do \
102
GNASH_GC_TRIGGER_THRESHOLD=0 GNASHRC=../../gnashrc $(SHELL) $$i; \