1## Process this fill with automake to generate Makefile.in 2# 3# Copyright (C) 2005, 2006,2007, 2008, 2009, 2010, 2011, 2012 4# Free Software Foundation, Inc. 5# 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. 10# 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# 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 19 20AUTOMAKE_OPTIONS = dejagnu 21 22LDADD = \ 23 $(top_builddir)/libbase/libgnashbase.la \ 24 $(top_builddir)/librender/libgnashrender.la \ 25 $(CROSS_LDFLAGS) \ 26 $(BOOST_LIBS) \ 27 $(LIBINTL) \ 28 $(AGG_LIBS) \ 29 $(OPENVG_LIBS) \ 30 $(EGL_LIBS) \ 31 $(NULL) 32 33if ANDROID 34LDADD += -lui -llog 35endif # ANDROID 36 37AM_LDFLAGS = $(CROSS_LDFLAGS) 38AM_CXXFLAGS = $(CROSS_CXXFLAGS) 39 40# AM_CPPFLAGS isn't right here since per-program *_CPPFLAGS override global 41# AM_CPPFLAGS 42AM_CPPFLAGS = \ 43 -I$(top_srcdir)/libbase \ 44 -I$(top_srcdir)/libcore \ 45 -I$(top_srcdir)/testsuite \ 46 $(MING_CFLAGS) \ 47 $(BOOST_CFLAGS) \ 48 $(PTHREAD_CFLAGS) \ 49 $(DEJAGNU_CFLAGS) \ 50 $(NULL) 51 52abs_builddir=`(cd $(top_builddir)/testsuite/libbase; pwd)` 53 54CLEANFILES = \ 55 testrun.sum \ 56 testrun.log \ 57 gnash-dbg.log \ 58 site.exp.bak \ 59 NoSeekFileTestCache \ 60 $(NULL) 61 62check_PROGRAMS = \ 63 NoSeekFileTest \ 64 URLTest \ 65 RcTest \ 66 IntTypesTest \ 67 Point2dTest \ 68 snappingrangetest \ 69 Range2dTest \ 70 string_tableTest \ 71 $(NULL) 72 73#if CURL 74## This test needs an http server running to be useful 75#check_PROGRAMS += CurlStreamTest 76#CurlStreamTest_SOURCES = CurlStreamTest.cpp 77#CurlStreamTest_CPPFLAGS = '-DINPUT="$(srcdir)/CurlStreamTest.cpp"' 78#endif 79 80NoSeekFileTest_SOURCES = NoSeekFileTest.cpp 81NoSeekFileTest_CPPFLAGS = $(AM_CPPFLAGS) \ 82 '-DINPUT="$(srcdir)/NoSeekFileTest.cpp"' 83NoSeekFileTest_LDADD = $(LDADD) 84 85URLTest_SOURCES = URLTest.cpp 86URLTest_CPPFLAGS = $(AM_CPPFLAGS) \ 87 '-DBUILDDIR="$(abs_builddir)"' 88URLTest_LDADD = $(LDADD) 89 90RcTest_SOURCES = RcTest.cpp 91RcTest_CPPFLAGS = $(AM_CPPFLAGS) \ 92 -DSRCDIR="$(srcdir)" 93RcTest_LDADD = $(LDADD) 94 95IntTypesTest_SOURCES = IntTypesTest.cpp 96IntTypesTest_CPPFLAGS = $(AM_CPPFLAGS) \ 97 -DSRCDIR="$(srcdir)" 98IntTypesTest_LDADD = $(LDADD) 99 100# Test the Memory class 101#memtest_SOURCES = memtest.cpp 102 103Point2dTest_SOURCES = Point2dTest.cpp 104Point2dTest_LDADD = $(LDADD) 105 106Range2dTest_SOURCES = Range2dTest.cpp 107Range2dTest_LDADD = $(LDADD) 108 109snappingrangetest_SOURCES = snappingrangetest.cpp 110snappingrangetest_LDADD= $(LDADD) 111 112string_tableTest_SOURCES = string_tableTest.cpp 113string_tableTest_CPPFLAGS = $(AM_CPPFLAGS) \ 114 -DSRCDIR="$(srcdir)" 115string_tableTest_LDFLAGS = $(BOOST_LIBS) 116string_tableTest_LDADD = $(LDADD) 117 118TEST_DRIVERS = ../simple.exp 119TEST_CASES = \ 120 $(check_PROGRAMS) \ 121 $(NULL) 122 123check-DEJAGNU: site-update $(TEST_CASES) 124 @runtest=$(RUNTEST); \ 125 if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \ 126 $$runtest $(RUNTESTFLAGS) $(TEST_DRIVERS); \ 127 else \ 128 echo "WARNING: could not find \`runtest'" 1>&2; \ 129 for i in "$(TEST_CASES)"; do \ 130 $(SHELL) $$i; \ 131 done; \ 132 fi 133 134site-update: site.exp 135 @rm -fr site.exp.bak 136 @cp site.exp site.exp.bak 137 @sed -e '/testcases/d' site.exp.bak > site.exp 138 @echo "# This is a list of the pre-compiled testcases" >> site.exp 139 @echo "set testcases \"$(TEST_CASES)\"" >> site.exp 140