2008-05-01 19:35:50 +04:00
|
|
|
# $NetBSD: Makefile,v 1.3 2008/05/01 15:35:50 jmmv Exp $
|
2007-11-12 17:57:34 +03:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
SRCDIR= ${NETBSDSRCDIR}/dist/atf
|
2008-05-01 19:35:50 +04:00
|
|
|
.PATH: ${SRCDIR}/data ${SRCDIR}/atf-sh
|
2007-11-12 17:57:34 +03:00
|
|
|
|
|
|
|
.if ${MKSHARE} != "no"
|
2008-02-04 23:30:45 +03:00
|
|
|
# Files in ${SRCDIR}/data.
|
2008-05-01 19:35:50 +04:00
|
|
|
FILES= atf-c.pc \
|
|
|
|
atf-c++.pc
|
|
|
|
FILESDIR_atf-c.pc= /usr/lib/pkgconfig
|
|
|
|
FILESDIR_atf-c++.pc= /usr/lib/pkgconfig
|
2008-02-04 23:30:45 +03:00
|
|
|
|
|
|
|
# Files in ${SRCDIR}/subrs.
|
2007-11-12 17:57:34 +03:00
|
|
|
FILESDIR= /usr/share/atf
|
|
|
|
FILESMODE= 444
|
2008-02-04 23:30:45 +03:00
|
|
|
FILES+= atf.footer.subr \
|
2007-11-12 17:57:34 +03:00
|
|
|
atf.header.subr \
|
|
|
|
atf.init.subr
|
|
|
|
.endif
|
|
|
|
|
2008-05-01 19:35:50 +04:00
|
|
|
realall: atf-c.pc
|
|
|
|
atf-c.pc: atf-c.pc.in
|
|
|
|
sed -e 's,__ATF_VERSION__,0.5,g' \
|
|
|
|
-e 's,__CC__,gcc,g' \
|
2008-02-04 23:30:45 +03:00
|
|
|
-e 's,__INCLUDEDIR__,/usr/include,g' \
|
|
|
|
-e 's,__LIBDIR__,/usr/lib,g' \
|
2008-05-01 19:35:50 +04:00
|
|
|
<${SRCDIR}/data/atf-c.pc.in >atf-c.pc
|
|
|
|
CLEANFILES+= atf-c.pc
|
|
|
|
|
|
|
|
realall: atf-c++.pc
|
|
|
|
atf-c++.pc: atf-c++.pc.in
|
|
|
|
sed -e 's,__ATF_VERSION__,0.5,g' \
|
|
|
|
-e 's,__CXX__,g++,g' \
|
|
|
|
-e 's,__INCLUDEDIR__,/usr/include,g' \
|
|
|
|
-e 's,__LIBDIR__,/usr/lib,g' \
|
|
|
|
<${SRCDIR}/data/atf-c++.pc.in >atf-c++.pc
|
|
|
|
CLEANFILES+= atf-c++.pc
|
2007-11-12 17:57:34 +03:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|