2008-05-26 17:15:35 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2008-06-16 07:24:05 +00:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2008-05-26 17:15:35 +00:00
|
|
|
PROG= bsdcpio
|
2009-04-17 04:04:57 +00:00
|
|
|
BSDCPIO_VERSION_STRING=2.7.0
|
2008-05-26 17:15:35 +00:00
|
|
|
SRCS= cpio.c cmdline.c err.c matching.c pathmatch.c
|
|
|
|
WARNS?= 6
|
|
|
|
DPADD= ${LIBARCHIVE} ${LIBZ} ${LIBBZ2}
|
|
|
|
CFLAGS+= -DBSDCPIO_VERSION_STRING=\"${BSDCPIO_VERSION_STRING}\"
|
2008-05-26 17:17:43 +00:00
|
|
|
CFLAGS+= -DPLATFORM_CONFIG_H=\"config_freebsd.h\"
|
2009-04-17 04:04:57 +00:00
|
|
|
LDADD+= -larchive -lz -lbz2 -lmd -lcrypto
|
2008-05-26 17:17:43 +00:00
|
|
|
|
2008-06-16 05:48:15 +00:00
|
|
|
.if ${MK_GNU_CPIO} != "yes"
|
2008-05-26 17:15:35 +00:00
|
|
|
SYMLINKS=bsdcpio ${BINDIR}/cpio
|
|
|
|
MLINKS= bsdcpio.1 cpio.1
|
2008-05-26 17:17:43 +00:00
|
|
|
.endif
|
2008-05-26 17:15:35 +00:00
|
|
|
|
|
|
|
.PHONY: check test
|
|
|
|
|
|
|
|
check test: $(PROG) bsdcpio.1.gz
|
|
|
|
cd ${.CURDIR}/test && make clean test
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|