1# $FreeBSD$ 2 3.include <bsd.own.mk> 4 5PROG= bsdcpio 6BSDCPIO_VERSION_STRING=2.7.0 7SRCS= cpio.c cmdline.c err.c matching.c pathmatch.c 8DPADD= ${LIBARCHIVE} ${LIBZ} ${LIBBZ2} 9CFLAGS+= -DBSDCPIO_VERSION_STRING=\"${BSDCPIO_VERSION_STRING}\" 10CFLAGS+= -DPLATFORM_CONFIG_H=\"config_freebsd.h\" 11.ifdef RELEASE_CRUNCH 12# FreeBSD's installer uses cpio in crunched binaries that are 13# statically linked, cannot use -lcrypto, and are size sensitive. 14CFLAGS+= -DSMALLER 15.endif 16LDADD+= -larchive -lz -lbz2 -lmd 17.if ${MK_OPENSSL} != "no" 18LDADD+= -lcrypto 19.endif 20 21.if ${MK_GNU_CPIO} != "yes" 22SYMLINKS=bsdcpio ${BINDIR}/cpio 23MLINKS= bsdcpio.1 cpio.1 24.endif 25 26.PHONY: check test 27 28check test: $(PROG) bsdcpio.1.gz 29 cd ${.CURDIR}/test && make clean test 30 31.include <bsd.prog.mk> 32