1 ## Process this file 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.
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
20 AUTOMAKE_OPTIONS = dejagnu
23 $(top_builddir)/libbase/libgnashbase.la \
24 $(top_builddir)/libamf/libgnashamf.la \
25 $(top_builddir)/libmedia/libgnashmedia.la \
26 $(top_builddir)/libsound/libgnashsound.la \
34 AM_CPPFLAGS = -DSRCDIR=\"$(srcdir)\"
37 -I$(top_srcdir)/libamf \
38 -I$(top_srcdir)/libnet \
39 -I$(top_srcdir)/libbase \
40 -I$(top_srcdir)/libcore \
41 -I$(top_srcdir)/testsuite \
56 test_el_SOURCES = test_el.cpp
57 test_el_LDADD = $(AM_LDFLAGS)
59 test_flv_SOURCES = test_flv.cpp
60 test_flv_LDADD = $(AM_LDFLAGS)
62 test_sol_SOURCES = test_sol.cpp
63 test_sol_LDADD = $(AM_LDFLAGS)
64 test_sol_DEPENDENCIES = $(solfiles)
66 test_amf_SOURCES = test_amf.cpp
67 test_amf_LDADD = $(AM_LDFLAGS)
69 test_amfmsg_SOURCES = test_amfmsg.cpp
70 test_amfmsg_LDADD = $(AM_LDFLAGS)
72 test_lc_SOURCES = test_lc.cpp
73 test_lc_LDADD = $(AM_LDFLAGS)
75 test_buffer_SOURCES = test_buffer.cpp
76 test_buffer_LDADD = $(AM_LDFLAGS)
78 # test_number_SOURCES = test_number.cpp
79 # test_number_LDADD = $(AM_LDFLAGS)
81 # test_string_SOURCES = test_string.cpp
82 # test_string_LDADD = $(AM_LDFLAGS)
84 # test_object_SOURCES = test_object.cpp
85 # test_object_LDADD = $(AM_LDFLAGS)
87 # test_variable_SOURCES = test_variable.cpp
88 # test_variable_LDADD = $(AM_LDFLAGS)
90 # These are captured AMF object in binary form.
116 EXTRA_DIST = $(AMFS) $(SOLS)
118 # solfiles := $(patsubst %.xml,%.sol,$(SOLS))
119 #CLEANFILES = $(solfiles)
120 # solfiles: $(solfiles)
122 # this script converts between SOL Shared Objects and XML files. Very useful for testing.
123 dist_noinst_SCRIPTS = s2x.py
125 # Rebuild with GCC 4.x Mudflap support
127 @echo "Rebuilding with GCC Mudflap support"
128 $(MAKE) CXXFLAGS="$(CXXFLAGS) -fmudflap" LDFLAGS="$(LDFLAGS) -lmudflap"
131 -rm -f core.* site.exp.bak testrun.sum testrun.log
133 TEST_DRIVERS = ../simple.exp
138 # $(PYTHON) $(srcdir)/s2x.py -x $< $@
141 $(PYTHON) $(srcdir)/s2x.py -s $(srcdir)/xmlfiles/$< $@
143 check-DEJAGNU: site-update $(TEST_CASES)
144 runtest=$(RUNTEST); \
145 if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
146 GNASHRC="$(top_builddir)/testsuite/gnashrc" \
147 $$runtest $(RUNTESTFLAGS) $(TEST_DRIVERS); true; \
149 echo "WARNING: could not find \`runtest'" 1>&2; \
150 for i in "$(check_PROGRAMS)"; do \
151 GNASHRC="$(top_builddir)/testsuite/gnashrc" \
156 site-update: site.exp
158 @cp site.exp site.exp.bak
159 @sed -e '/testcases/d' site.exp.bak > site.exp
160 @echo "# This is a list of the pre-compiled testcases" >> site.exp
161 @echo "set testcases \"$(check_PROGRAMS)\"" >> site.exp