1# $DragonFly: src/usr.bin/cpio/Makefile,v 1.2 2008/07/26 16:25:31 pavalos Exp $ 2 3PROG= bsdcpio 4SRCS= cmdline.c cpio.c err.c line_reader.c matching.c pathmatch.c 5DPADD= ${LIBARCHIVE} ${LIBBZ2} ${LIBLZMA} ${LIBMD} ${LIBZ} 6LDADD= -larchive -lbz2 -llzma -lmd -lz 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