]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/atf/atf-c++/Makefile.am.inc
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / atf / atf-c++ / Makefile.am.inc
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
30 ATF_CXX_LIBS = libatf-c++.la libatf-c.la
31
32 lib_LTLIBRARIES += libatf-c++.la
33 libatf_c___la_LIBADD = libatf-c.la
34 libatf_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
44 libatf_c___la_LDFLAGS = -version-info 0:0:0
45
46 include_HEADERS += atf-c++.hpp
47 atf_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
53 atf_c__dir = $(includedir)/atf-c++
54
55 dist_man_MANS += atf-c++/atf-c++-api.3
56
57 atf_aclocal_DATA += atf-c++/atf-c++.m4
58 EXTRA_DIST += atf-c++/atf-c++.m4
59
60 atf_c__dirpkgconfigdir = $(atf_pkgconfigdir)
61 atf_c__dirpkgconfig_DATA = atf-c++/atf-c++.pc
62 CLEANFILES += atf-c++/atf-c++.pc
63 EXTRA_DIST += atf-c++/atf-c++.pc.in
64 atf-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
73 tests_atf_c___DATA = atf-c++/Atffile \
74                      atf-c++/Kyuafile \
75                      atf-c++/macros_hpp_test.cpp \
76                      atf-c++/unused_test.cpp
77 tests_atf_c__dir = $(pkgtestsdir)/atf-c++
78 EXTRA_DIST += $(tests_atf_c___DATA)
79
80 tests_atf_c___PROGRAMS = atf-c++/atf_c++_test
81 atf_c___atf_c___test_SOURCES = atf-c++/atf_c++_test.cpp
82 atf_c___atf_c___test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS)
83 tests_atf_c___PROGRAMS += atf-c++/build_test
84 atf_c___build_test_SOURCES = atf-c++/build_test.cpp atf-c/h_build.h
85 atf_c___build_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS)
86 tests_atf_c___PROGRAMS += atf-c++/check_test
87 atf_c___check_test_SOURCES = atf-c++/check_test.cpp
88 atf_c___check_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS)
89 tests_atf_c___PROGRAMS += atf-c++/config_test
90 atf_c___config_test_SOURCES = atf-c++/config_test.cpp
91 atf_c___config_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS)
92 tests_atf_c___PROGRAMS += atf-c++/macros_test
93 atf_c___macros_test_SOURCES = atf-c++/macros_test.cpp
94 atf_c___macros_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS)
95 tests_atf_c___SCRIPTS = atf-c++/pkg_config_test
96 CLEANFILES += atf-c++/pkg_config_test
97 EXTRA_DIST += atf-c++/pkg_config_test.sh
98 atf-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
103 tests_atf_c___PROGRAMS += atf-c++/tests_test
104 atf_c___tests_test_SOURCES = atf-c++/tests_test.cpp
105 atf_c___tests_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS)
106 tests_atf_c___PROGRAMS += atf-c++/utils_test
107 atf_c___utils_test_SOURCES = atf-c++/utils_test.cpp
108 atf_c___utils_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS)
109 include atf-c++/detail/Makefile.am.inc
110
111 # vim: syntax=make:noexpandtab:shiftwidth=8:softtabstop=8