Makefile revision 263989
1231200Smm#- 2231200Smm# Copyright (c) 2011 Google, Inc. 3231200Smm# All rights reserved. 4231200Smm# 5231200Smm# Redistribution and use in source and binary forms, with or without 6231200Smm# modification, are permitted provided that the following conditions 7231200Smm# are met: 8231200Smm# 1. Redistributions of source code must retain the above copyright 9231200Smm# notice, this list of conditions and the following disclaimer. 10231200Smm# 2. Redistributions in binary form must reproduce the above copyright 11231200Smm# notice, this list of conditions and the following disclaimer in the 12231200Smm# documentation and/or other materials provided with the distribution. 13231200Smm# 14231200Smm# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15231200Smm# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16231200Smm# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17231200Smm# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18231200Smm# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19231200Smm# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20231200Smm# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21231200Smm# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22231200Smm# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23231200Smm# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24231200Smm# SUCH DAMAGE. 25231200Smm# 26231200Smm# $FreeBSD: head/lib/atf/libatf-c++/Makefile 263989 2014-04-01 13:47:08Z jmmv $ 27231200Smm 28231200Smm.include <bsd.init.mk> 29231200Smm 30231200SmmLIB= atf-c++ 31231200SmmSHLIB_MAJOR= 2 32231200Smm 33231200Smm# libatf-c++ depends on the C version of the ATF library to build. 34231200SmmDPADD= ${LIBATFC} 35231200SmmLDADD= -latf-c 36231200Smm 37231200SmmLDFLAGS+= -L${.OBJDIR}/../libatf-c 38231200Smm 39231200SmmATF= ${.CURDIR:H:H:H}/contrib/atf 40231200Smm.PATH: ${ATF} 41231200Smm.PATH: ${ATF}/atf-c++ 42231200Smm.PATH: ${ATF}/atf-c++/detail 43231200Smm 44231200SmmCFLAGS+= -I${ATF} 45231200SmmCFLAGS+= -I${.CURDIR}/../libatf-c 46231200SmmCFLAGS+= -I. 47231200Smm 48231200SmmCFLAGS+= -DHAVE_CONFIG_H 49231200Smm 50231200SmmSRCS= application.cpp \ 51231200Smm build.cpp \ 52231200Smm check.cpp \ 53231200Smm config.cpp \ 54231200Smm env.cpp \ 55231200Smm exceptions.cpp \ 56231200Smm fs.cpp \ 57231200Smm process.cpp \ 58231200Smm tests.cpp \ 59231200Smm text.cpp \ 60231200Smm utils.cpp 61231200Smm 62231200SmmINCS= build.hpp \ 63231200Smm check.hpp \ 64231200Smm config.hpp \ 65231200Smm macros.hpp \ 66231200Smm tests.hpp \ 67231200Smm utils.hpp 68231200SmmINCSDIR= ${INCLUDEDIR}/atf-c++ 69231200Smm 70231200SmmINCS+= atf-c++.hpp 71231200SmmINCSDIR_atf-c++.hpp= ${INCLUDEDIR} 72231200Smm 73231200SmmMAN= atf-c++-api.3 74231200Smm 75231200Smmall: atf-c++.pc 76231200Smmatf-c++.pc: atf-c++.pc.in atf-version 77231200Smm sed -e 's,__CXX__,${CXX},g' \ 78231200Smm -e 's,__INCLUDEDIR__,${INCLUDEDIR},g' \ 79231200Smm -e 's,__LIBDIR__,${LIBDIR},g' \ 80231200Smm -e "s,__ATF_VERSION__,$$(cat atf-version),g" \ 81231200Smm <${ATF}/atf-c++/atf-c++.pc.in >atf-c++.pc 82231200Smm 83231200Smmbeforeinstall: 84231200Smm ${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ 85231200Smm atf-c++.pc ${DESTDIR}${LIBDATADIR}/pkgconfig 86231200Smm ${INSTALL} -C -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \ 87231200Smm ${ATF}/atf-c++/atf-c++.m4 ${DESTDIR}${SHAREDIR}/aclocal 88231200Smm 89231200Smm.if ${MK_TESTS} != "no" 90231200SmmSUBDIR= tests 91231200Smm.endif 92231200Smm 93231200Smm.include "../common.mk" 94231200Smm.include <bsd.lib.mk> 95231200Smm