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