Merge from vendor branch LESS:
[dragonfly.git] / usr.bin / tar / Makefile
1 # $DragonFly: src/usr.bin/tar/Makefile,v 1.13 2007/09/24 02:43:45 pavalos Exp $
2
3 PROG=   bsdtar
4 SRCS=   bsdtar.c getdate.y matching.c read.c tree.c util.c write.c
5 DPADD=  ${LIBARCHIVE} ${LIBBZ2} ${LIBZ}
6 LDADD=  -larchive -lbz2 -lz
7 NOSHARED?=      yes
8
9 CONTRIBDIR=     ${.CURDIR}/../../contrib/libarchive-2/tar
10 .PATH: ${CONTRIBDIR}
11 VERSION!=       cat ${CONTRIBDIR}/../version
12 CFLAGS+=        -I${.OBJDIR} -I${.CURDIR}/../../lib/libarchive -I${CONTRIBDIR} -I-
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>