1PROG= bsdcpio 2SRCS= cmdline.c cpio.c 3SRCS+= err.c line_reader.c passphrase.c 4DPADD= ${LIBARCHIVE} ${LIBBZ2} ${LIBLZMA} ${LIBMD} ${LIBZ} 5LDADD= -larchive -lbz2 -llzma -lmd -lz 6 7CONTRIBDIR= ${.CURDIR}/../../contrib/libarchive/cpio 8.PATH: ${CONTRIBDIR} ${CONTRIBDIR}/../libarchive_fe 9LIBARCHIVE_VERSION!= cat ${CONTRIBDIR}/../build/version 10VERSION!= echo $$((${LIBARCHIVE_VERSION} / 1000000)).$$((${LIBARCHIVE_VERSION} / 1000 % 1000)).$$((${LIBARCHIVE_VERSION} % 1000)) 11CFLAGS+= -I${.CURDIR}/../../lib/libarchive -I${CONTRIBDIR} -I${CONTRIBDIR}/../libarchive_fe 12CFLAGS+= -DPLATFORM_CONFIG_H=\"config.h\" 13CFLAGS+= -DBSDCPIO_VERSION_STRING=\"${VERSION}\" 14 15SYMLINKS= ${BINDIR}/bsdcpio ${BINDIR}/cpio 16MLINKS= bsdcpio.1 cpio.1 17 18.include <bsd.prog.mk> 19