Makefile revision 321303
119370Spst# $FreeBSD: stable/11/usr.bin/cpio/Makefile 321303 2017-07-20 20:15:38Z mm $ 219370Spst 3130809Smarcel.include <src.opts.mk> 4130809Smarcel 5130809Smarcel_LIBARCHIVEDIR= ${SRCTOP}/contrib/libarchive 6130809Smarcel_LIBARCHIVECONFDIR= ${SRCTOP}/lib/libarchive 798948Sobrien 819370SpstPROG= bsdcpio 998948SobrienBSDCPIO_VERSION_STRING= 3.3.2 1098948Sobrien 1198948Sobrien.PATH: ${_LIBARCHIVEDIR}/cpio 1298948SobrienSRCS= cpio.c cmdline.c 1319370Spst 1498948Sobrien.PATH: ${_LIBARCHIVEDIR}/libarchive_fe 1598948SobrienSRCS+= err.c line_reader.c passphrase.c 1698948Sobrien 1798948SobrienCFLAGS+= -DBSDCPIO_VERSION_STRING=\"${BSDCPIO_VERSION_STRING}\" 1819370SpstCFLAGS+= -DPLATFORM_CONFIG_H=\"${_LIBARCHIVECONFDIR}/config_freebsd.h\" 1998948SobrienCFLAGS+= -I${_LIBARCHIVEDIR}/cpio -I${_LIBARCHIVEDIR}/libarchive_fe 2098948Sobrien 2198948Sobrien.ifdef RELEASE_CRUNCH 2298948Sobrien# FreeBSD's installer uses cpio in crunched binaries that are 2319370Spst# statically linked, cannot use -lcrypto, and are size sensitive. 2419370SpstCFLAGS+= -DSMALLER 2519370Spst.endif 2619370SpstLIBADD= archive 2719370Spst 2819370Spst.if ${MK_ICONV} != "no" 2919370SpstCFLAGS+= -DHAVE_ICONV=1 -DHAVE_ICONV_H=1 -DICONV_CONST=const 3019370Spst.endif 3119370Spst 3298948SobrienSYMLINKS=bsdcpio ${BINDIR}/cpio 3398948SobrienMLINKS= bsdcpio.1 cpio.1 34130809Smarcel 3519370Spst.if ${MK_TESTS} != "no" 3619370SpstSUBDIR+= tests 3719370Spst.endif 3819370Spst 3919370Spst.include <bsd.prog.mk> 4019370Spst