2012-10-22 01:18:41 +00:00
|
|
|
#-
|
|
|
|
# Copyright (c) 2011 Google, Inc.
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted provided that the following conditions
|
|
|
|
# are met:
|
|
|
|
# 1. Redistributions of source code must retain the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer.
|
|
|
|
# 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer in the
|
|
|
|
# documentation and/or other materials provided with the distribution.
|
|
|
|
#
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
# SUCH DAMAGE.
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2012-10-22 01:18:41 +00:00
|
|
|
.include <bsd.init.mk>
|
|
|
|
|
2015-03-17 15:16:36 +00:00
|
|
|
LIB_CXX= atf-c++
|
2014-05-25 12:01:13 +00:00
|
|
|
PRIVATELIB= true
|
2014-11-01 11:17:54 +00:00
|
|
|
SHLIB_MAJOR= 2
|
2012-10-22 01:18:41 +00:00
|
|
|
|
|
|
|
# libatf-c++ depends on the C version of the ATF library to build.
|
2014-11-25 11:07:26 +00:00
|
|
|
LIBADD+= atf_c
|
2012-11-07 00:23:51 +00:00
|
|
|
|
2016-08-29 22:47:53 +00:00
|
|
|
LDFLAGS+= -L${.OBJDIR:H}/libatf-c
|
2012-10-22 01:18:41 +00:00
|
|
|
|
2016-08-29 22:47:53 +00:00
|
|
|
ATF= ${SRCTOP}/contrib/atf
|
2012-10-22 01:18:41 +00:00
|
|
|
.PATH: ${ATF}
|
|
|
|
.PATH: ${ATF}/atf-c++
|
|
|
|
.PATH: ${ATF}/atf-c++/detail
|
|
|
|
|
|
|
|
CFLAGS+= -I${ATF}
|
2016-08-29 22:47:53 +00:00
|
|
|
CFLAGS+= -I${.CURDIR:H}/libatf-c
|
2012-10-22 01:18:41 +00:00
|
|
|
CFLAGS+= -I.
|
|
|
|
|
|
|
|
CFLAGS+= -DHAVE_CONFIG_H
|
|
|
|
|
2019-09-17 06:07:08 +00:00
|
|
|
# Silence warnings about usage of deprecated std::auto_ptr
|
|
|
|
CXXWARNFLAGS+= -Wno-deprecated-declarations
|
|
|
|
|
2012-10-22 01:18:41 +00:00
|
|
|
SRCS= application.cpp \
|
|
|
|
build.cpp \
|
|
|
|
check.cpp \
|
|
|
|
env.cpp \
|
|
|
|
exceptions.cpp \
|
|
|
|
fs.cpp \
|
|
|
|
process.cpp \
|
|
|
|
tests.cpp \
|
|
|
|
text.cpp \
|
2013-11-17 23:51:19 +00:00
|
|
|
utils.cpp
|
2012-10-22 01:18:41 +00:00
|
|
|
|
|
|
|
INCS= build.hpp \
|
|
|
|
check.hpp \
|
|
|
|
macros.hpp \
|
|
|
|
tests.hpp \
|
|
|
|
utils.hpp
|
|
|
|
INCSDIR= ${INCLUDEDIR}/atf-c++
|
|
|
|
|
|
|
|
INCS+= atf-c++.hpp
|
|
|
|
INCSDIR_atf-c++.hpp= ${INCLUDEDIR}
|
|
|
|
|
2014-11-01 11:17:54 +00:00
|
|
|
MAN= atf-c++.3
|
|
|
|
MLINKS+= atf-c++.3 atf-c-api++.3 # Backwards compatibility.
|
2012-10-22 01:18:41 +00:00
|
|
|
|
2017-08-02 08:50:42 +00:00
|
|
|
HAS_TESTS=
|
2017-08-02 08:35:51 +00:00
|
|
|
SUBDIR.${MK_TESTS}+= tests
|
2013-11-08 14:33:41 +00:00
|
|
|
|
2014-01-12 21:56:26 +00:00
|
|
|
.include "../common.mk"
|
2012-10-22 01:18:41 +00:00
|
|
|
.include <bsd.lib.mk>
|