Update build structure for libarchive update.
[dragonfly.git] / usr.bin / tar / Makefile
1 # $DragonFly: src/usr.bin/tar/Makefile,v 1.15 2008/06/16 08:20:23 pavalos Exp $
2
3 PROG=   bsdtar
4 SRCS=   bsdtar.c getdate.y matching.c read.c siginfo.c subst.c \
5         tree.c util.c write.c
6 DPADD=  ${LIBARCHIVE} ${LIBBZ2} ${LIBZ}
7 LDADD=  -larchive -lbz2 -lz
8
9 CONTRIBDIR=     ${.CURDIR}/../../contrib/libarchive-2/tar
10 .PATH: ${CONTRIBDIR}
11 VERSION=        2.5.4b
12 CFLAGS+=        -I${.OBJDIR} -I${.CURDIR}/../../lib/libarchive -I${CONTRIBDIR}
13 CFLAGS+=        -DPLATFORM_CONFIG_H=\"config.h\"
14 CFLAGS+=        -DBSDTAR_VERSION_STRING=\"${VERSION}\"
15
16 SYMLINKS=       ${BINDIR}/bsdtar ${BINDIR}/tar
17 MLINKS= bsdtar.1 tar.1
18
19 .include <bsd.prog.mk>