Update files for libarchive-3.0.4 import.
[dragonfly.git] / usr.bin / cpio / Makefile
1 PROG=   bsdcpio
2 SRCS=   cmdline.c cpio.c
3 SRCS+=  err.c line_reader.c
4 DPADD=  ${LIBARCHIVE} ${LIBBZ2} ${LIBLZMA} ${LIBMD} ${LIBZ}
5 LDADD=  -larchive -lbz2 -llzma -lmd -lz
6
7 CONTRIBDIR=     ${.CURDIR}/../../contrib/libarchive/cpio
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+=        -DBSDCPIO_VERSION_STRING=\"${VERSION}\"
14
15 SYMLINKS=       ${BINDIR}/bsdcpio ${BINDIR}/cpio
16 MLINKS= bsdcpio.1 cpio.1
17
18 .include <bsd.prog.mk>