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
|
2008-12-06 07:30:40 +00:00
|
|
|
BSDCPIO_VERSION_STRING=1.1.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\"
|
2008-05-26 17:15:35 +00:00
|
|
|
LDADD+= -larchive -lz -lbz2
|
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>
|