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++/noncopyable.hpp \
42                        atf-c++/tests.cpp \
43                        atf-c++/tests.hpp \
44                        atf-c++/utils.cpp \
45                        atf-c++/utils.hpp
46libatf_c___la_LDFLAGS = -version-info 0:0:0
47
48include_HEADERS += atf-c++.hpp
49atf_c___HEADERS = atf-c++/build.hpp \
50                  atf-c++/check.hpp \
51                  atf-c++/config.hpp \
52                  atf-c++/macros.hpp \
53                  atf-c++/noncopyable.hpp \
54                  atf-c++/tests.hpp \
55                  atf-c++/utils.hpp
56atf_c__dir = $(includedir)/atf-c++
57
58dist_man_MANS += atf-c++/atf-c++-api.3
59
60atf_aclocal_DATA += atf-c++/atf-c++.m4
61EXTRA_DIST += atf-c++/atf-c++.m4
62
63atf_c__dirpkgconfigdir = $(atf_pkgconfigdir)
64atf_c__dirpkgconfig_DATA = atf-c++/atf-c++.pc
65CLEANFILES += atf-c++/atf-c++.pc
66EXTRA_DIST += atf-c++/atf-c++.pc.in
67atf-c++/atf-c++.pc: $(srcdir)/atf-c++/atf-c++.pc.in Makefile
68	test -d atf-c++ || mkdir -p atf-c++
69	sed -e 's#__ATF_VERSION__#$(PACKAGE_VERSION)#g' \
70	    -e 's#__CXX__#$(CXX)#g' \
71	    -e 's#__INCLUDEDIR__#$(includedir)#g' \
72	    -e 's#__LIBDIR__#$(libdir)#g' \
73	    <$(srcdir)/atf-c++/atf-c++.pc.in >atf-c++/atf-c++.pc.tmp
74	mv atf-c++/atf-c++.pc.tmp atf-c++/atf-c++.pc
75
76tests_atf_c___DATA = atf-c++/Atffile \
77                     atf-c++/Kyuafile \
78                     atf-c++/macros_hpp_test.cpp \
79                     atf-c++/unused_test.cpp
80tests_atf_c__dir = $(pkgtestsdir)/atf-c++
81EXTRA_DIST += $(tests_atf_c___DATA)
82
83tests_atf_c___PROGRAMS = atf-c++/atf_c++_test
84atf_c___atf_c___test_SOURCES = atf-c++/atf_c++_test.cpp
85atf_c___atf_c___test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS)
86tests_atf_c___PROGRAMS += atf-c++/build_test
87atf_c___build_test_SOURCES = atf-c++/build_test.cpp atf-c/h_build.h
88atf_c___build_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS)
89tests_atf_c___PROGRAMS += atf-c++/check_test
90atf_c___check_test_SOURCES = atf-c++/check_test.cpp
91atf_c___check_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS)
92tests_atf_c___PROGRAMS += atf-c++/config_test
93atf_c___config_test_SOURCES = atf-c++/config_test.cpp
94atf_c___config_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS)
95tests_atf_c___PROGRAMS += atf-c++/macros_test
96atf_c___macros_test_SOURCES = atf-c++/macros_test.cpp
97atf_c___macros_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS)
98tests_atf_c___SCRIPTS = atf-c++/pkg_config_test
99CLEANFILES += atf-c++/pkg_config_test
100EXTRA_DIST += atf-c++/pkg_config_test.sh
101atf-c++/pkg_config_test: $(srcdir)/atf-c++/pkg_config_test.sh
102	test -d atf-c++ || mkdir -p atf-c++
103	@src="$(srcdir)/atf-c++/pkg_config_test.sh"; \
104	dst="atf-c++/pkg_config_test"; $(BUILD_SH_TP)
105
106tests_atf_c___PROGRAMS += atf-c++/tests_test
107atf_c___tests_test_SOURCES = atf-c++/tests_test.cpp
108atf_c___tests_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS)
109tests_atf_c___PROGRAMS += atf-c++/utils_test
110atf_c___utils_test_SOURCES = atf-c++/utils_test.cpp
111atf_c___utils_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS)
112include atf-c++/detail/Makefile.am.inc
113
114# vim: syntax=make:noexpandtab:shiftwidth=8:softtabstop=8
115