1 # $DragonFly: src/usr.bin/tar/Makefile,v 1.16 2008/07/12 14:57:33 pavalos Exp $
4 SRCS
= bsdtar.c getdate.y matching.c read.c siginfo.c
subst.c \
6 DPADD
= ${LIBARCHIVE} ${LIBBZ2} ${LIBZ}
7 LDADD
= -larchive
-lbz2
-lz
9 CONTRIBDIR
= ${.CURDIR
}/..
/..
/contrib
/libarchive-2
/tar
11 LIBARCHIVE_VERSION
!= cat
${CONTRIBDIR}/..
/version
12 VERSION
!= echo
$$((${LIBARCHIVE_VERSION} / 1000000)).
$$((${LIBARCHIVE_VERSION} / 1000 % 1000)).
$$((${LIBARCHIVE_VERSION} % 1000))
13 CFLAGS
+= -I
${.OBJDIR
} -I
${.CURDIR
}/..
/..
/lib
/libarchive
-I
${CONTRIBDIR}
14 CFLAGS
+= -DPLATFORM_CONFIG_H
=\"config.h
\"
15 CFLAGS
+= -DBSDTAR_VERSION_STRING
=\"${VERSION}\"
17 SYMLINKS
= ${BINDIR}/bsdtar
${BINDIR}/tar
18 MLINKS
= bsdtar
.1 tar.1
20 .
include <bsd.prog.mk
>