Home | History | Annotate | Line # | Download | only in atf-sh
      1 # $NetBSD: Makefile,v 1.12 2014/03/02 22:50:13 jmmv Exp $
      2 
      3 .include <bsd.init.mk>
      4 
      5 .PATH:		${SRCDIR}/atf-sh
      6 .PATH:		${TOPDIR}
      7 
      8 BINDIR=		/usr/bin
      9 PROG_CXX=	atf-sh
     10 SRCS=		atf-sh.cpp
     11 MAN=		atf-sh.1 atf-sh-api.3
     12 
     13 LDADD+=		-latf-c++ -latf-c
     14 DPADD+=		${LIBATF_CXX} ${LIBATF_C}
     15 
     16 WARNS?=		2
     17 
     18 .if ${MKSHARE} != "no"
     19 FILESMODE=	444
     20 
     21 FILES+=				libatf-sh.subr
     22 FILESDIR_libatf-sh.subr=	/usr/share/atf
     23 
     24 FILES+=			atf-sh.pc
     25 FILESDIR_atf-sh.pc=	/usr/lib/pkgconfig
     26 
     27 realall: atf-sh.pc
     28 atf-sh.pc: Makefile atf-sh.pc.in atf-version.txt
     29 	${TOOL_SED} -e "s,__ATF_VERSION__,$$(cat atf-version.txt),g" \
     30 	    -e 's,__EXEC_PREFIX__,/usr,g' \
     31 	    <${SRCDIR}/atf-sh/atf-sh.pc.in >atf-sh.pc
     32 CLEANFILES+=	atf-sh.pc
     33 .endif
     34 
     35 .include <bsd.prog.mk>
     36