It seems we need to explictly link to boost here, to avoid undefined reference to...
[gnash.git] / testsuite / libcore.all / Makefile.am
blob13f2217a7092cac2c5eb589ed2a3dafcddb1f007
1 ## Process this fill with automake to generate Makefile.in
2
3 #   Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 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 AM_CPPFLAGS = \
22         -I$(top_srcdir)/testsuite  \
23         -I$(top_srcdir)/librender  \
24         -I$(top_srcdir)/libsound  \
25         -I$(top_srcdir)/libmedia  \
26         -I$(top_srcdir)/libbase  \
27         -I$(top_srcdir)/libcore  \
28         -I$(top_srcdir)/libcore/asobj \
29         -I$(top_srcdir)/libcore/swf \
30         -I$(top_srcdir)/libcore/parser  \
31         -I$(top_srcdir)/libcore/vm  \
32         $(FFMPEG_CFLAGS) \
33         $(BOOST_CFLAGS) \
34         $(NULL)
36 check_PROGRAMS = \
37         StreamTest \
38         BitsReaderTest \
39         PointTest \
40         MatrixTest \
41         EdgeTest \
42         PropertyListTest \
43         PropFlagsTest \
44         DisplayListTest \
45         ClassSizes \
46         SafeStackTest \
47         CxFormTest \
48         $(NULL)
50 if ENABLE_AVM2
51 check_PROGRAMS += CodeStreamTest
52 endif
54 CLEANFILES = \
55         testrun.sum \
56         testrun.log \
57         gnash-dbg.log \
58         site.exp.bak \
59         gnash-dbg.log \
60         $(NULL)
62 AM_LDFLAGS = \
63         $(top_builddir)/libcore/libgnashcore.la \
64         $(top_builddir)/libbase/libgnashbase.la \
65         $(top_builddir)/libmedia/libgnashmedia.la \
66         $(top_builddir)/libsound/libgnashsound.la \
67         $(BOOST_LIBS) 
69 BitsReaderTest_SOURCES = BitsReaderTest.cpp
70 BitsReaderTest_LDADD = $(AM_LDFLAGS)
72 StreamTest_SOURCES = StreamTest.cpp
73 StreamTest_LDADD = $(AM_LDFLAGS)
75 MatrixTest_SOURCES = MatrixTest.cpp
76 MatrixTest_LDADD = $(AM_LDFLAGS)
78 PointTest_SOURCES = PointTest.cpp
79 PointTest_LDADD = $(AM_LDFLAGS)
81 EdgeTest_SOURCES = EdgeTest.cpp
82 EdgeTest_LDADD = $(AM_LDFLAGS)
84 PropertyListTest_SOURCES = PropertyListTest.cpp
85 PropertyListTest_LDADD = $(AM_LDFLAGS)
87 PropFlagsTest_SOURCES = PropFlagsTest.cpp
88 PropFlagsTest_LDADD = $(AM_LDFLAGS)
90 DisplayListTest_SOURCES = DisplayListTest.cpp
91 DisplayListTest_LDADD = $(AM_LDFLAGS)
93 # if CYGNAL
94 check_PROGRAMS += AsValueTest
95 AsValueTest_SOURCES = AsValueTest.cpp
96 AsValueTest_LDADD = $(AM_LDFLAGS)
97 # endif
99 ClassSizes_SOURCES = ClassSizes.cpp
100 ClassSizes_LDADD = $(AM_LDFLAGS)
102 SafeStackTest_SOURCES = SafeStackTest.cpp
103 SafeStackTest_LDADD = $(AM_LDFLAGS)
105 CxFormTest_SOURCES = CxFormTest.cpp
106 CxFormTest_LDADD = $(AM_LDFLAGS)
108 CodeStreamTest_SOURCES = CodeStreamTest.cpp
109 CodeStreamTest_LDADD = $(AM_LDFLAGS)
110 CodeStreamTest_DEPENDENCIES = $(AM_LDFLAGS)
112 TEST_DRIVERS = ../simple.exp
113 TEST_CASES = $(check_PROGRAMS)
115 check-DEJAGNU: site-update $(TEST_CASES)
116         @runtest=$(RUNTEST); \
117         if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
118             $$runtest $(RUNTESTFLAGS) $(TEST_DRIVERS); true; \
119         else \
120           echo "WARNING: could not find \`runtest'" 1>&2; \
121           for i in "$(TEST_CASES)"; do \
122             $(SHELL) $$i; \
123           done; \
124         fi
126 site-update: site.exp
127         @rm -fr site.exp.bak
128         @cp site.exp site.exp.bak
129         @sed -e '/testcases/d' site.exp.bak > site.exp
130         @echo "# This is a list of the pre-compiled testcases" >> site.exp
131         @echo "set testcases \"$(TEST_CASES)\"" >> site.exp