1# 2# Automated Testing Framework (atf) 3# 4# Copyright (c) 2007 The NetBSD Foundation, Inc. 5# All rights reserved. 6# 7# Redistribution and use in source and binary forms, with or without 8# modification, are permitted provided that the following conditions 9# are met: 10# 1. Redistributions of source code must retain the above copyright 11# notice, this list of conditions and the following disclaimer. 12# 2. Redistributions in binary form must reproduce the above copyright 13# notice, this list of conditions and the following disclaimer in the 14# documentation and/or other materials provided with the distribution. 15# 16# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND 17# CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, 18# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20# IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY 21# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 23# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 26# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 27# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28# 29 30ATF_CXX_LIBS = libatf-c++.la libatf-c.la 31 32lib_LTLIBRARIES += libatf-c++.la 33libatf_c___la_LIBADD = libatf-c.la 34libatf_c___la_SOURCES = atf-c++/build.cpp \ 35 atf-c++/build.hpp \ 36 atf-c++/check.cpp \ 37 atf-c++/check.hpp \ 38 atf-c++/config.cpp \ 39 atf-c++/config.hpp \ 40 atf-c++/macros.hpp \ 41 atf-c++/tests.cpp \ 42 atf-c++/tests.hpp \ 43 atf-c++/utils.hpp 44libatf_c___la_LDFLAGS = -version-info 0:0:0 45 46include_HEADERS += atf-c++.hpp 47atf_c___HEADERS = atf-c++/build.hpp \ 48 atf-c++/check.hpp \ 49 atf-c++/config.hpp \ 50 atf-c++/macros.hpp \ 51 atf-c++/tests.hpp \ 52 atf-c++/utils.hpp 53atf_c__dir = $(includedir)/atf-c++ 54 55dist_man_MANS += atf-c++/atf-c++-api.3 56 57atf_aclocal_DATA += atf-c++/atf-c++.m4 58EXTRA_DIST += atf-c++/atf-c++.m4 59 60atf_c__dirpkgconfigdir = $(atf_pkgconfigdir) 61atf_c__dirpkgconfig_DATA = atf-c++/atf-c++.pc 62CLEANFILES += atf-c++/atf-c++.pc 63EXTRA_DIST += atf-c++/atf-c++.pc.in 64atf-c++/atf-c++.pc: $(srcdir)/atf-c++/atf-c++.pc.in Makefile 65 test -d atf-c++ || mkdir -p atf-c++ 66 sed -e 's#__ATF_VERSION__#$(PACKAGE_VERSION)#g' \ 67 -e 's#__CXX__#$(CXX)#g' \ 68 -e 's#__INCLUDEDIR__#$(includedir)#g' \ 69 -e 's#__LIBDIR__#$(libdir)#g' \ 70 <$(srcdir)/atf-c++/atf-c++.pc.in >atf-c++/atf-c++.pc.tmp 71 mv atf-c++/atf-c++.pc.tmp atf-c++/atf-c++.pc 72 73tests_atf_c___DATA = atf-c++/Atffile \ 74 atf-c++/Kyuafile \ 75 atf-c++/macros_hpp_test.cpp \ 76 atf-c++/unused_test.cpp 77tests_atf_c__dir = $(pkgtestsdir)/atf-c++ 78EXTRA_DIST += $(tests_atf_c___DATA) 79 80tests_atf_c___PROGRAMS = atf-c++/atf_c++_test 81atf_c___atf_c___test_SOURCES = atf-c++/atf_c++_test.cpp 82atf_c___atf_c___test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS) 83tests_atf_c___PROGRAMS += atf-c++/build_test 84atf_c___build_test_SOURCES = atf-c++/build_test.cpp atf-c/h_build.h 85atf_c___build_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS) 86tests_atf_c___PROGRAMS += atf-c++/check_test 87atf_c___check_test_SOURCES = atf-c++/check_test.cpp 88atf_c___check_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS) 89tests_atf_c___PROGRAMS += atf-c++/config_test 90atf_c___config_test_SOURCES = atf-c++/config_test.cpp 91atf_c___config_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS) 92tests_atf_c___PROGRAMS += atf-c++/macros_test 93atf_c___macros_test_SOURCES = atf-c++/macros_test.cpp 94atf_c___macros_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS) 95tests_atf_c___SCRIPTS = atf-c++/pkg_config_test 96CLEANFILES += atf-c++/pkg_config_test 97EXTRA_DIST += atf-c++/pkg_config_test.sh 98atf-c++/pkg_config_test: $(srcdir)/atf-c++/pkg_config_test.sh 99 test -d atf-c++ || mkdir -p atf-c++ 100 @src="$(srcdir)/atf-c++/pkg_config_test.sh"; \ 101 dst="atf-c++/pkg_config_test"; $(BUILD_SH_TP) 102 103tests_atf_c___PROGRAMS += atf-c++/tests_test 104atf_c___tests_test_SOURCES = atf-c++/tests_test.cpp 105atf_c___tests_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS) 106tests_atf_c___PROGRAMS += atf-c++/utils_test 107atf_c___utils_test_SOURCES = atf-c++/utils_test.cpp 108atf_c___utils_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS) 109include atf-c++/detail/Makefile.am.inc 110 111# vim: syntax=make:noexpandtab:shiftwidth=8:softtabstop=8 112