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