1241823Smarcel#-
2241823Smarcel# Copyright (c) 2011 Google, Inc.
3241823Smarcel# All rights reserved.
4241823Smarcel#
5241823Smarcel# Redistribution and use in source and binary forms, with or without
6241823Smarcel# modification, are permitted provided that the following conditions
7241823Smarcel# are met:
8241823Smarcel# 1. Redistributions of source code must retain the above copyright
9241823Smarcel#    notice, this list of conditions and the following disclaimer.
10241823Smarcel# 2. Redistributions in binary form must reproduce the above copyright
11241823Smarcel#    notice, this list of conditions and the following disclaimer in the
12241823Smarcel#    documentation and/or other materials provided with the distribution.
13241823Smarcel#
14241823Smarcel# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15241823Smarcel# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16241823Smarcel# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17241823Smarcel# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18241823Smarcel# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19241823Smarcel# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20241823Smarcel# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21241823Smarcel# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22241823Smarcel# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23241823Smarcel# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24241823Smarcel# SUCH DAMAGE.
25241823Smarcel#
26241823Smarcel# $FreeBSD: releng/11.0/lib/atf/libatf-c++/Makefile 280179 2015-03-17 15:16:36Z bdrewery $
27241823Smarcel
28265420Simp.include <src.opts.mk>
29241823Smarcel.include <bsd.init.mk>
30241823Smarcel
31280179SbdreweryLIB_CXX=	atf-c++
32266650SjmmvPRIVATELIB=	true
33273929SjmmvSHLIB_MAJOR=	2
34241823Smarcel
35241823Smarcel# libatf-c++ depends on the C version of the ATF library to build.
36275024SbaptLIBADD+=	atf_c
37241823Smarcel
38242684SmarcelLDFLAGS+=	-L${.OBJDIR}/../libatf-c
39242684Smarcel
40257853SjmmvATF=		${.CURDIR:H:H:H}/contrib/atf
41241823Smarcel.PATH:		${ATF}
42241823Smarcel.PATH:		${ATF}/atf-c++
43241823Smarcel.PATH:		${ATF}/atf-c++/detail
44241823Smarcel
45241823SmarcelCFLAGS+=	-I${ATF}
46241823SmarcelCFLAGS+=	-I${.CURDIR}/../libatf-c
47241823SmarcelCFLAGS+=	-I.
48241823Smarcel
49241823SmarcelCFLAGS+=	-DHAVE_CONFIG_H
50241823Smarcel
51241823SmarcelSRCS=		application.cpp \
52241823Smarcel		build.cpp \
53241823Smarcel		check.cpp \
54241823Smarcel		env.cpp \
55241823Smarcel		exceptions.cpp \
56241823Smarcel		fs.cpp \
57241823Smarcel		process.cpp \
58241823Smarcel		tests.cpp \
59241823Smarcel		text.cpp \
60258289Sjmmv		utils.cpp
61241823Smarcel
62241823SmarcelINCS=		build.hpp \
63241823Smarcel		check.hpp \
64241823Smarcel		macros.hpp \
65241823Smarcel		tests.hpp \
66241823Smarcel		utils.hpp
67241823SmarcelINCSDIR=	${INCLUDEDIR}/atf-c++
68241823Smarcel
69241823SmarcelINCS+=		atf-c++.hpp
70241823SmarcelINCSDIR_atf-c++.hpp= ${INCLUDEDIR}
71241823Smarcel
72273929SjmmvMAN=		atf-c++.3
73273929SjmmvMLINKS+=	atf-c++.3 atf-c-api++.3  # Backwards compatibility.
74241823Smarcel
75257853Sjmmv.if ${MK_TESTS} != "no"
76257853SjmmvSUBDIR=		tests
77257853Sjmmv.endif
78257853Sjmmv
79260576Sjmmv.include "../common.mk"
80241823Smarcel.include <bsd.lib.mk>
81