Update to libarchive-2.8.4.
[dragonfly.git] / usr.bin / cpio / Makefile
CommitLineData
2114949a 1# $DragonFly: src/usr.bin/cpio/Makefile,v 1.2 2008/07/26 16:25:31 pavalos Exp $
fe848e23
PA
2
3PROG= bsdcpio
cacb2790
PA
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
fe848e23 7
bd260456 8CONTRIBDIR= ${.CURDIR}/../../contrib/libarchive/cpio
cacb2790 9.PATH: ${CONTRIBDIR} ${CONTRIBDIR}/../libarchive_fe
50ef37d2
PA
10LIBARCHIVE_VERSION!= cat ${CONTRIBDIR}/../build/version
11VERSION!= echo $$((${LIBARCHIVE_VERSION} / 1000000)).$$((${LIBARCHIVE_VERSION} / 1000 % 1000)).$$((${LIBARCHIVE_VERSION} % 1000))
cacb2790 12CFLAGS+= -I${.CURDIR}/../../lib/libarchive -I${CONTRIBDIR} -I${CONTRIBDIR}/../libarchive_fe
fe848e23 13CFLAGS+= -DPLATFORM_CONFIG_H=\"config.h\"
50ef37d2 14CFLAGS+= -DBSDCPIO_VERSION_STRING=\"${VERSION}\"
fe848e23 15
fe848e23
PA
16SYMLINKS= ${BINDIR}/bsdcpio ${BINDIR}/cpio
17MLINKS= bsdcpio.1 cpio.1
fe848e23
PA
18
19.include <bsd.prog.mk>