1# $DragonFly: src/usr.bin/tar/Makefile,v 1.16 2008/07/12 14:57:33 pavalos Exp $ 2 3PROG= bsdtar 4SRCS= bsdtar.c cmdline.c err.c getdate.c line_reader.c matching.c \ 5 pathmatch.c read.c subst.c \ 6 tree.c util.c write.c 7DPADD= ${LIBARCHIVE} ${LIBBZ2} ${LIBLZMA} ${LIBMD} ${LIBZ} 8LDADD= -larchive -lbz2 -llzma -lmd -lz 9 10CONTRIBDIR= ${.CURDIR}/../../contrib/libarchive/tar 11.PATH: ${CONTRIBDIR} ${CONTRIBDIR}/../libarchive_fe 12LIBARCHIVE_VERSION!= cat ${CONTRIBDIR}/../build/version 13VERSION!= echo $$((${LIBARCHIVE_VERSION} / 1000000)).$$((${LIBARCHIVE_VERSION} / 1000 % 1000)).$$((${LIBARCHIVE_VERSION} % 1000)) 14CFLAGS+= -I${.CURDIR}/../../lib/libarchive -I${CONTRIBDIR} -I${CONTRIBDIR}/../libarchive_fe 15CFLAGS+= -DPLATFORM_CONFIG_H=\"config.h\" 16CFLAGS+= -DBSDTAR_VERSION_STRING=\"${VERSION}\" 17 18SYMLINKS= ${BINDIR}/bsdtar ${BINDIR}/tar 19MLINKS= bsdtar.1 tar.1 20 21.include <bsd.prog.mk> 22