Use .Va for errno.
[dragonfly/vkernel-mp.git] / usr.bin / tar / Makefile
blob0c46c5e1d10fc580e94d87c11a7fb5dcfd155739
1 # $DragonFly: src/usr.bin/tar/Makefile,v 1.11 2007/05/09 19:39:24 pavalos Exp $
3 PROG= bsdtar
4 SRCS= bsdtar.c getdate.y matching.c read.c tree.c util.c write.c
5 WARNS?= 6
6 DPADD= ${LIBARCHIVE} ${LIBBZ2} ${LIBZ}
7 LDADD= -larchive -lbz2 -lz
8 NOSHARED?= yes
10 CONTRIBDIR= ${.CURDIR}/../../contrib/libarchive-2/tar
11 .PATH: ${CONTRIBDIR}
12 VERSION!= cat ${CONTRIBDIR}/../version
13 CFLAGS+= -I${.OBJDIR} -I${.CURDIR}/../../lib/libarchive -I${CONTRIBDIR} -I-
14 CFLAGS+= -DPLATFORM_CONFIG_H=\"config.h\"
15 CFLAGS+= -DPACKAGE_STRING=\"libarchive\ ${VERSION}\"
16 CFLAGS+= -DPACKAGE_VERSION=\"${VERSION}\"
17 CFLAGS+= -DVERSION=\"${VERSION}\"
19 SYMLINKS= ${BINDIR}/bsdtar ${BINDIR}/tar
20 MLINKS= bsdtar.1 tar.1
22 .include <bsd.prog.mk>