Update files for libarchive-3.0.4 import.
[dragonfly.git] / usr.bin / tar / Makefile
CommitLineData
c4708c74 1PROG= bsdtar
99f62aec
PA
2SRCS= bsdtar.c cmdline.c read.c subst.c util.c write.c
3SRCS+= err.c line_reader.c
cacb2790
PA
4DPADD= ${LIBARCHIVE} ${LIBBZ2} ${LIBLZMA} ${LIBMD} ${LIBZ}
5LDADD= -larchive -lbz2 -llzma -lmd -lz
c4708c74 6
bd260456 7CONTRIBDIR= ${.CURDIR}/../../contrib/libarchive/tar
cacb2790 8.PATH: ${CONTRIBDIR} ${CONTRIBDIR}/../libarchive_fe
50ef37d2 9LIBARCHIVE_VERSION!= cat ${CONTRIBDIR}/../build/version
fe848e23 10VERSION!= echo $$((${LIBARCHIVE_VERSION} / 1000000)).$$((${LIBARCHIVE_VERSION} / 1000 % 1000)).$$((${LIBARCHIVE_VERSION} % 1000))
cacb2790 11CFLAGS+= -I${.CURDIR}/../../lib/libarchive -I${CONTRIBDIR} -I${CONTRIBDIR}/../libarchive_fe
a47b8f9f 12CFLAGS+= -DPLATFORM_CONFIG_H=\"config.h\"
00dda0cb 13CFLAGS+= -DBSDTAR_VERSION_STRING=\"${VERSION}\"
c4708c74 14
7c323ddb
SW
15SYMLINKS= ${BINDIR}/bsdtar ${BINDIR}/tar
16MLINKS= bsdtar.1 tar.1
17
c4708c74 18.include <bsd.prog.mk>