kernel: Replace the remaining __amd64__ with __x86_64__ for consistency.
[dragonfly.git] / usr.bin / tar / Makefile
blob89a812df95edb84d74310236fafd9f0fd17a7390
1 PROG= bsdtar
2 SRCS= bsdtar.c cmdline.c read.c subst.c util.c write.c
3 SRCS+= err.c line_reader.c
4 DPADD= ${LIBARCHIVE} ${LIBBZ2} ${LIBLZMA} ${LIBMD} ${LIBZ}
5 LDADD= -larchive -lbz2 -llzma -lmd -lz
7 CONTRIBDIR= ${.CURDIR}/../../contrib/libarchive/tar
8 .PATH: ${CONTRIBDIR} ${CONTRIBDIR}/../libarchive_fe
9 LIBARCHIVE_VERSION!= cat ${CONTRIBDIR}/../build/version
10 VERSION!= echo $$((${LIBARCHIVE_VERSION} / 1000000)).$$((${LIBARCHIVE_VERSION} / 1000 % 1000)).$$((${LIBARCHIVE_VERSION} % 1000))
11 CFLAGS+= -I${.CURDIR}/../../lib/libarchive -I${CONTRIBDIR} -I${CONTRIBDIR}/../libarchive_fe
12 CFLAGS+= -DPLATFORM_CONFIG_H=\"config.h\"
13 CFLAGS+= -DBSDTAR_VERSION_STRING=\"${VERSION}\"
15 SYMLINKS= ${BINDIR}/bsdtar ${BINDIR}/tar
16 MLINKS= bsdtar.1 tar.1
18 .include <bsd.prog.mk>