1240116Smarcel#
2240116Smarcel# Automated Testing Framework (atf)
3240116Smarcel#
4240116Smarcel# Copyright (c) 2007 The NetBSD Foundation, Inc.
5240116Smarcel# All rights reserved.
6240116Smarcel#
7240116Smarcel# Redistribution and use in source and binary forms, with or without
8240116Smarcel# modification, are permitted provided that the following conditions
9240116Smarcel# are met:
10240116Smarcel# 1. Redistributions of source code must retain the above copyright
11240116Smarcel#    notice, this list of conditions and the following disclaimer.
12240116Smarcel# 2. Redistributions in binary form must reproduce the above copyright
13240116Smarcel#    notice, this list of conditions and the following disclaimer in the
14240116Smarcel#    documentation and/or other materials provided with the distribution.
15240116Smarcel#
16240116Smarcel# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
17240116Smarcel# CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
18240116Smarcel# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19240116Smarcel# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20240116Smarcel# IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
21240116Smarcel# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22240116Smarcel# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
23240116Smarcel# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24240116Smarcel# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25240116Smarcel# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26240116Smarcel# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
27240116Smarcel# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28240116Smarcel#
29240116Smarcel
30240116SmarcelATF_CXX_LIBS = libatf-c++.la libatf-c.la
31240116Smarcel
32240116Smarcellib_LTLIBRARIES += libatf-c++.la
33240116Smarcellibatf_c___la_LIBADD = libatf-c.la
34240116Smarcellibatf_c___la_SOURCES = atf-c++/build.cpp \
35240116Smarcel                        atf-c++/build.hpp \
36240116Smarcel                        atf-c++/check.cpp \
37240116Smarcel                        atf-c++/check.hpp \
38240116Smarcel                        atf-c++/config.cpp \
39240116Smarcel                        atf-c++/config.hpp \
40240116Smarcel                        atf-c++/macros.hpp \
41240116Smarcel                        atf-c++/tests.cpp \
42240116Smarcel                        atf-c++/tests.hpp \
43240116Smarcel                        atf-c++/utils.hpp
44240116Smarcellibatf_c___la_LDFLAGS = -version-info 0:0:0
45240116Smarcel
46240116Smarcelinclude_HEADERS += atf-c++.hpp
47240116Smarcelatf_c___HEADERS = atf-c++/build.hpp \
48240116Smarcel                  atf-c++/check.hpp \
49240116Smarcel                  atf-c++/config.hpp \
50240116Smarcel                  atf-c++/macros.hpp \
51240116Smarcel                  atf-c++/tests.hpp \
52240116Smarcel                  atf-c++/utils.hpp
53240116Smarcelatf_c__dir = $(includedir)/atf-c++
54240116Smarcel
55240116Smarceldist_man_MANS += atf-c++/atf-c++-api.3
56240116Smarcel
57240116Smarcelatf_aclocal_DATA += atf-c++/atf-c++.m4
58240116SmarcelEXTRA_DIST += atf-c++/atf-c++.m4
59240116Smarcel
60240116Smarcelatf_c__dirpkgconfigdir = $(atf_pkgconfigdir)
61240116Smarcelatf_c__dirpkgconfig_DATA = atf-c++/atf-c++.pc
62240116SmarcelCLEANFILES += atf-c++/atf-c++.pc
63240116SmarcelEXTRA_DIST += atf-c++/atf-c++.pc.in
64240116Smarcelatf-c++/atf-c++.pc: $(srcdir)/atf-c++/atf-c++.pc.in Makefile
65240116Smarcel	test -d atf-c++ || mkdir -p atf-c++
66240116Smarcel	sed -e 's#__ATF_VERSION__#$(PACKAGE_VERSION)#g' \
67240116Smarcel	    -e 's#__CXX__#$(CXX)#g' \
68240116Smarcel	    -e 's#__INCLUDEDIR__#$(includedir)#g' \
69240116Smarcel	    -e 's#__LIBDIR__#$(libdir)#g' \
70240116Smarcel	    <$(srcdir)/atf-c++/atf-c++.pc.in >atf-c++/atf-c++.pc.tmp
71240116Smarcel	mv atf-c++/atf-c++.pc.tmp atf-c++/atf-c++.pc
72240116Smarcel
73240116Smarceltests_atf_c___DATA = atf-c++/Atffile \
74240116Smarcel                     atf-c++/Kyuafile \
75240116Smarcel                     atf-c++/macros_hpp_test.cpp \
76240116Smarcel                     atf-c++/unused_test.cpp
77240116Smarceltests_atf_c__dir = $(pkgtestsdir)/atf-c++
78240116SmarcelEXTRA_DIST += $(tests_atf_c___DATA)
79240116Smarcel
80240116Smarceltests_atf_c___PROGRAMS = atf-c++/atf_c++_test
81240116Smarcelatf_c___atf_c___test_SOURCES = atf-c++/atf_c++_test.cpp
82240116Smarcelatf_c___atf_c___test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS)
83240116Smarceltests_atf_c___PROGRAMS += atf-c++/build_test
84240116Smarcelatf_c___build_test_SOURCES = atf-c++/build_test.cpp atf-c/h_build.h
85240116Smarcelatf_c___build_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS)
86240116Smarceltests_atf_c___PROGRAMS += atf-c++/check_test
87240116Smarcelatf_c___check_test_SOURCES = atf-c++/check_test.cpp
88240116Smarcelatf_c___check_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS)
89240116Smarceltests_atf_c___PROGRAMS += atf-c++/config_test
90240116Smarcelatf_c___config_test_SOURCES = atf-c++/config_test.cpp
91240116Smarcelatf_c___config_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS)
92240116Smarceltests_atf_c___PROGRAMS += atf-c++/macros_test
93240116Smarcelatf_c___macros_test_SOURCES = atf-c++/macros_test.cpp
94240116Smarcelatf_c___macros_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS)
95240116Smarceltests_atf_c___SCRIPTS = atf-c++/pkg_config_test
96240116SmarcelCLEANFILES += atf-c++/pkg_config_test
97240116SmarcelEXTRA_DIST += atf-c++/pkg_config_test.sh
98240116Smarcelatf-c++/pkg_config_test: $(srcdir)/atf-c++/pkg_config_test.sh
99240116Smarcel	test -d atf-c++ || mkdir -p atf-c++
100240116Smarcel	@src="$(srcdir)/atf-c++/pkg_config_test.sh"; \
101240116Smarcel	dst="atf-c++/pkg_config_test"; $(BUILD_SH_TP)
102240116Smarcel
103240116Smarceltests_atf_c___PROGRAMS += atf-c++/tests_test
104240116Smarcelatf_c___tests_test_SOURCES = atf-c++/tests_test.cpp
105240116Smarcelatf_c___tests_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS)
106240116Smarceltests_atf_c___PROGRAMS += atf-c++/utils_test
107240116Smarcelatf_c___utils_test_SOURCES = atf-c++/utils_test.cpp
108240116Smarcelatf_c___utils_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS)
109240116Smarcelinclude atf-c++/detail/Makefile.am.inc
110240116Smarcel
111240116Smarcel# vim: syntax=make:noexpandtab:shiftwidth=8:softtabstop=8
112