Grab version from the contributed code instead of manually updating it
[dragonfly.git] / usr.bin / tar / Makefile
1 # $DragonFly: src/usr.bin/tar/Makefile,v 1.10 2007/05/05 21:16:57 pavalos Exp $
2
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
9
10 CONTRIBDIR=     ${.CURDIR}/../../contrib/libarchive-2.1/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}\"
18
19 SYMLINKS=       ${BINDIR}/bsdtar ${BINDIR}/tar
20 MLINKS= bsdtar.1 tar.1
21
22 .include <bsd.prog.mk>