Sync usage with man page.
[netbsd-mini2440.git] / external / bsd / atf / usr.bin / atf-run / Makefile
blob3cb0ba1342badedcdba00eacc46e7ddfc05c3f08
1 # $NetBSD: Makefile,v 1.2 2009/03/11 15:57:08 njoly Exp $
3 .include <bsd.own.mk>
5 SRCDIR= ${NETBSDSRCDIR}/external/bsd/atf/dist
6 .PATH: ${SRCDIR}/tools
7 .PATH: ${SRCDIR}/data ${SRCDIR}/atf-sh
9 BINDIR= /usr/bin
10 PROG_CXX= atf-run
11 SRCS= atf-run.cpp
12 MAN= atf-run.1
14 CPPFLAGS+= -DHAVE_CONFIG_H
15 CPPFLAGS+= -I${.CURDIR}/../../lib/libatf-c
16 LDADD+= -latf-c++ -latf-c
18 COPTS.atf-run.cpp+= -Wno-stack-protector
20 WARNS?= 2
22 .if ${MKSHARE} != "no"
23 FILESDIR= /usr/share/atf
24 FILES= atf-run.hooks
25 .endif
27 # Files in ${SRCDIR}/data.
28 FILES+= atf-c.pc \
29 atf-c++.pc
30 FILESDIR_atf-c.pc= /usr/lib/pkgconfig
31 FILESDIR_atf-c++.pc= /usr/lib/pkgconfig
33 realall: atf-c.pc
34 atf-c.pc: atf-c.pc.in
35 ${TOOL_SED} -e 's,__ATF_VERSION__,0.7,g' \
36 -e 's,__CC__,gcc,g' \
37 -e 's,__INCLUDEDIR__,/usr/include,g' \
38 -e 's,__LIBDIR__,/usr/lib,g' \
39 <${SRCDIR}/data/atf-c.pc.in >atf-c.pc
40 CLEANFILES+= atf-c.pc
42 realall: atf-c++.pc
43 atf-c++.pc: atf-c++.pc.in
44 ${TOOL_SED} -e 's,__ATF_VERSION__,0.7,g' \
45 -e 's,__CXX__,g++,g' \
46 -e 's,__INCLUDEDIR__,/usr/include,g' \
47 -e 's,__LIBDIR__,/usr/lib,g' \
48 <${SRCDIR}/data/atf-c++.pc.in >atf-c++.pc
49 CLEANFILES+= atf-c++.pc
51 .include <bsd.prog.mk>