Update files for libarchive-3.0.4 import.
[dragonfly.git] / usr.bin / cpio / Makefile
CommitLineData
fe848e23 1PROG= bsdcpio
99f62aec
PA
2SRCS= cmdline.c cpio.c
3SRCS+= err.c line_reader.c
cacb2790
PA
4DPADD= ${LIBARCHIVE} ${LIBBZ2} ${LIBLZMA} ${LIBMD} ${LIBZ}
5LDADD= -larchive -lbz2 -llzma -lmd -lz
fe848e23 6
bd260456 7CONTRIBDIR= ${.CURDIR}/../../contrib/libarchive/cpio
cacb2790 8.PATH: ${CONTRIBDIR} ${CONTRIBDIR}/../libarchive_fe
50ef37d2
PA
9LIBARCHIVE_VERSION!= cat ${CONTRIBDIR}/../build/version
10VERSION!= echo $$((${LIBARCHIVE_VERSION} / 1000000)).$$((${LIBARCHIVE_VERSION} / 1000 % 1000)).$$((${LIBARCHIVE_VERSION} % 1000))
cacb2790 11CFLAGS+= -I${.CURDIR}/../../lib/libarchive -I${CONTRIBDIR} -I${CONTRIBDIR}/../libarchive_fe
fe848e23 12CFLAGS+= -DPLATFORM_CONFIG_H=\"config.h\"
50ef37d2 13CFLAGS+= -DBSDCPIO_VERSION_STRING=\"${VERSION}\"
fe848e23 14
fe848e23
PA
15SYMLINKS= ${BINDIR}/bsdcpio ${BINDIR}/cpio
16MLINKS= bsdcpio.1 cpio.1
fe848e23
PA
17
18.include <bsd.prog.mk>