Grab version from the contributed code instead of manually updating it
[dragonfly.git] / usr.bin / tar / Makefile
CommitLineData
0900c9fd 1# $DragonFly: src/usr.bin/tar/Makefile,v 1.10 2007/05/05 21:16:57 pavalos Exp $
c4708c74
JS
2
3PROG= bsdtar
720c3558 4SRCS= bsdtar.c getdate.y matching.c read.c tree.c util.c write.c
c4708c74
JS
5WARNS?= 6
6DPADD= ${LIBARCHIVE} ${LIBBZ2} ${LIBZ}
7LDADD= -larchive -lbz2 -lz
8NOSHARED?= yes
9
b5885901 10CONTRIBDIR= ${.CURDIR}/../../contrib/libarchive-2.1/tar
c4708c74 11.PATH: ${CONTRIBDIR}
0900c9fd 12VERSION!= cat ${CONTRIBDIR}/../version
db6b0fac 13CFLAGS+= -I${.OBJDIR} -I${.CURDIR}/../../lib/libarchive -I${CONTRIBDIR} -I-
a47b8f9f 14CFLAGS+= -DPLATFORM_CONFIG_H=\"config.h\"
0900c9fd
PA
15CFLAGS+= -DPACKAGE_STRING=\"libarchive\ ${VERSION}\"
16CFLAGS+= -DPACKAGE_VERSION=\"${VERSION}\"
17CFLAGS+= -DVERSION=\"${VERSION}\"
c4708c74 18
7c323ddb
SW
19SYMLINKS= ${BINDIR}/bsdtar ${BINDIR}/tar
20MLINKS= bsdtar.1 tar.1
21
c4708c74 22.include <bsd.prog.mk>