2008-02-04 23:30:45 +03:00
|
|
|
# $NetBSD: Makefile,v 1.2 2008/02/04 20:30:45 jmmv Exp $
|
2007-11-12 17:57:34 +03:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
SRCDIR= ${NETBSDSRCDIR}/dist/atf
|
2008-02-04 23:30:45 +03:00
|
|
|
.PATH: ${SRCDIR}/data ${SRCDIR}/subrs
|
2007-11-12 17:57:34 +03:00
|
|
|
|
|
|
|
.if ${MKSHARE} != "no"
|
2008-02-04 23:30:45 +03:00
|
|
|
# Files in ${SRCDIR}/data.
|
|
|
|
FILES= atf.pc
|
|
|
|
FILESDIR_atf.pc= /usr/lib/pkgconfig
|
|
|
|
|
|
|
|
# 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-02-04 23:30:45 +03:00
|
|
|
realall: atf.pc
|
|
|
|
atf.pc: atf.pc.in
|
|
|
|
sed -e 's,__CXX__,${CXX},g' \
|
|
|
|
-e 's,__INCLUDEDIR__,/usr/include,g' \
|
|
|
|
-e 's,__LIBDIR__,/usr/lib,g' \
|
|
|
|
<${SRCDIR}/data/atf.pc.in >atf.pc
|
|
|
|
CLEANFILES+= atf.pc
|
2007-11-12 17:57:34 +03:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|