2 # Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010,
3 # 2011 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
20 ## Process this file with automake to generate Makefile.in
22 AUTOMAKE_OPTIONS = dejagnu
27 $(top_builddir)/libbase/libgnashbase.la \
28 $(top_builddir)/libamf/libgnashamf.la \
29 $(top_builddir)/libnet/libgnashnet.la \
30 $(top_builddir)/libmedia/libgnashmedia.la \
31 $(top_builddir)/libsound/libgnashsound.la \
36 localedir = $(datadir)/locale
39 -I$(top_srcdir)/testsuite \
40 -I$(top_srcdir)/libnet \
41 -I$(top_srcdir)/libamf \
42 -I$(top_srcdir)/libbase \
43 -I$(top_srcdir)/libltdl \
44 -I$(top_srcdir)/cygnal \
45 -I$(top_srcdir)/libcore \
46 -DLOCALEDIR=\"$(localedir)\" \
59 # this is a utility program used to generate binary AMF files for testing protocols.
60 check_PROGRAMS = generate_amfbins $(test_progs)
62 generate_amfbins_SOURCES = generate_amfbins.cpp
63 generate_amfbins_LDADD = $(AM_LDFLAGS)
64 generate_amfbins_DEPENDENCIES = site-update
66 test_http_SOURCES = test_http.cpp
67 test_http_LDADD = $(AM_LDFLAGS)
68 test_http_DEPENDENCIES = site-update
70 test_cache_SOURCES = test_cache.cpp
71 test_cache_LDADD = $(AM_LDFLAGS)
72 test_cache_DEPENDENCIES = site-update
74 test_diskstream_SOURCES = test_diskstream.cpp
75 test_diskstream_LDADD = $(AM_LDFLAGS)
76 test_diskstream_DEPENDENCIES = site-update
78 test_rtmp_SOURCES = test_rtmp.cpp
79 test_rtmp_LDADD = $(AM_LDFLAGS)
80 test_rtmp_DEPENDENCIES = site-update
82 test_cque_SOURCES = test_cque.cpp
83 test_cque_LDADD = $(AM_LDFLAGS)
84 test_cque_DEPENDENCIES = site-update
86 # test_handler_SOURCES = test_handler.cpp
87 # test_handler_LDADD = $(AM_LDFLAGS)
88 # test_handler_DEPENDENCIES = site-update
90 # Rebuild with GCC 4.x Mudflap support
92 @echo "Rebuilding with GCC Mudflap support"
93 $(MAKE) CXXFLAGS="$(CXXFLAGS) $(MUDFLAP_OPT)" LIBS="$(LIBS) $(MUDFLAP_LIB)"
95 TEST_DRIVERS = ../simple.exp
104 check-DEJAGNU: site-update
105 @runtest=$(RUNTEST); \
106 if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
107 $$runtest $(RUNTESTFLAGS) $(TEST_DRIVERS); true; \
109 echo "WARNING: could not find \`runtest'" 1>&2; \
110 for i in " $(test_progs)"; do \
115 site-update: site.exp
117 @cp site.exp site.exp.bak
118 @sed -e '/testcases/d' site.exp.bak > site.exp
119 @echo "# This is a list of the pre-compiled testcases" >> site.exp
120 @echo "set testcases \"$(check_PROGRAMS)\"" >> site.exp