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$
27241823Smarcel
28241823Smarcel_CFLAGS:=	${CFLAGS}
29241823Smarcel_CPPFLAGS:=	${CPPFLAGS}
30241823Smarcel_CXXFLAGS:=	${CXXFLAGS}
31241823Smarcel
32241823SmarcelCFLAGS+=	-DHAVE_CONFIG_H
33241823SmarcelCFLAGS+=	-DATF_ARCH='"${MACHINE}"'
34241823SmarcelCFLAGS+=	-DATF_BUILD_CC='"${CC}"'
35241823SmarcelCFLAGS+=	-DATF_BUILD_CFLAGS='"${_CFLAGS}"'
36241823SmarcelCFLAGS+=	-DATF_BUILD_CPP='"${CPP}"'
37241823SmarcelCFLAGS+=	-DATF_BUILD_CPPFLAGS='"${_CPPFLAGS}"'
38241823SmarcelCFLAGS+=	-DATF_BUILD_CXX='"${CXX}"'
39241823SmarcelCFLAGS+=	-DATF_BUILD_CXXFLAGS='"${_CXXFLAGS}"'
40241823SmarcelCFLAGS+=	-DATF_CONFDIR='"${CONFDIR}/atf"'
41262849SjmmvCFLAGS+=	-DATF_C_TESTS_BASE='"${TESTSBASE}/lib/atf/libatf-c"'
42241823SmarcelCFLAGS+=	-DATF_INCLUDEDIR='"${INCLUDEDIR}"'
43241823SmarcelCFLAGS+=	-DATF_LIBDIR='"${LIBDIR}"'
44241823SmarcelCFLAGS+=	-DATF_LIBEXECDIR='"${LIBEXECDIR}"'
45241823SmarcelCFLAGS+=	-DATF_MACHINE='"${MACHINE_ARCH}"'
46241823SmarcelCFLAGS+=	-DATF_M4='"/usr/bin/m4"'
47241823SmarcelCFLAGS+=	-DATF_PKGDATADIR='"${SHAREDIR}/atf"'
48241823SmarcelCFLAGS+=	-DATF_SHELL='"/bin/sh"'
49241823SmarcelCFLAGS+=	-DATF_WORKDIR='"/tmp"'
50241823Smarcel
51241823SmarcelWARNS?=		3
52241823Smarcel
53241823Smarcel# vim: syntax=make
54