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: stable/10/libexec/atf/atf-sh/Makefile 321755 2017-07-31 03:59:07Z ngie $
27241823Smarcel
28241823Smarcel.include <bsd.init.mk>
29241823Smarcel
30307722SngieATF=		${SRCTOP}/contrib/atf
31241823Smarcel.PATH:		${ATF}/atf-sh
32241823Smarcel
33241823SmarcelPROG_CXX=	atf-sh
34241823SmarcelSRCS=		atf-sh.cpp
35275988SngieMAN=		atf-sh.1 atf-sh.3
36321141Sngie# Backwards compatibility.
37321141SngieMLINKS+=	atf-sh.3 atf-sh-api.3
38241823Smarcel
39321141SngieMLINKS+=	\
40321141Sngie		atf-sh.3 atf_add_test_case.3 \
41321141Sngie		atf-sh.3 atf_check.3 \
42321141Sngie		atf-sh.3 atf_check_equal.3 \
43321141Sngie		atf-sh.3 atf_config_get.3 \
44321141Sngie		atf-sh.3 atf_config_has.3 \
45321141Sngie		atf-sh.3 atf_expect_death.3 \
46321141Sngie		atf-sh.3 atf_expect_exit.3 \
47321141Sngie		atf-sh.3 atf_expect_fail.3 \
48321141Sngie		atf-sh.3 atf_expect_pass.3 \
49321141Sngie		atf-sh.3 atf_expect_signal.3 \
50321141Sngie		atf-sh.3 atf_expect_timeout.3 \
51321141Sngie		atf-sh.3 atf_fail.3 \
52321141Sngie		atf-sh.3 atf_get.3 \
53321141Sngie		atf-sh.3 atf_get_srcdir.3 \
54321755Sngie		atf-sh.3 atf_init_test_cases.3 \
55321141Sngie		atf-sh.3 atf_pass.3 \
56321141Sngie		atf-sh.3 atf_require_prog.3 \
57321141Sngie		atf-sh.3 atf_set.3 \
58321141Sngie		atf-sh.3 atf_skip.3 \
59321141Sngie		atf-sh.3 atf_test_case.3
60321141Sngie
61241823SmarcelCFLAGS+=	-DHAVE_CONFIG_H
62275988SngieCFLAGS+=	-DATF_LIBEXECDIR='"${LIBEXECDIR}"'
63275988SngieCFLAGS+=	-DATF_PKGDATADIR='"${SHAREDIR}/atf"'
64275988SngieCFLAGS+=	-DATF_SHELL='"/bin/sh"'
65241823SmarcelCFLAGS+=	-I${ATF}
66241823Smarcel
67241823SmarcelDPADD+=		${LIBATF_C} ${LIBATF_CXX}
68241823SmarcelLDADD+=		-latf-c++ -latf-c
69266650SjmmvUSEPRIVATELIB=	atf-c++ atf-c
70241823Smarcel
71241823SmarcelFILESGROUPS=	SUBR
72241823Smarcel
73241823SmarcelSUBRDIR=	${SHAREDIR}/atf
74241823SmarcelSUBR=		libatf-sh.subr
75241823Smarcel
76257853Sjmmv.if ${MK_TESTS} != "no"
77257853SjmmvSUBDIR+=	tests
78257853Sjmmv.endif
79257853Sjmmv
80260576Sjmmv.include "../../../lib/atf/common.mk"
81241823Smarcel.include <bsd.prog.mk>
82