6 BSDCPIO_VERSION_STRING=2.7.0
7 SRCS= cpio.c cmdline.c err.c matching.c pathmatch.c
9 DPADD= ${LIBARCHIVE} ${LIBZ} ${LIBBZ2}
10 CFLAGS+= -DBSDCPIO_VERSION_STRING=\"${BSDCPIO_VERSION_STRING}\"
11 CFLAGS+= -DPLATFORM_CONFIG_H=\"config_freebsd.h\"
13 # FreeBSD's installer uses cpio in crunched binaries that are
14 # statically linked, cannot use -lcrypto, and are size sensitive.
17 LDADD+= -larchive -lz -lbz2 -lmd
18 .if ${MK_OPENSSL} != "no"
22 SYMLINKS=bsdcpio ${BINDIR}/cpio
23 MLINKS= bsdcpio.1 cpio.1
27 check test: $(PROG) bsdcpio.1.gz
28 cd ${.CURDIR}/test && make clean test
30 .include <bsd.prog.mk>