# $NetBSD: Makefile.inc,v 1.9 2024/11/02 22:02:39 christos Exp $ WARNS=4 DIST=${NETBSDSRCDIR}/external/bsd/file/dist .include BINDIR?= /usr/bin USE_FORT?= yes # data-driven bugs? TOOL_MKMAGIC?= ${.OBJDIR}/file MFILESDIR?= /usr/share/misc MFILES?= magic.mgc MAGIC?= ${MFILESDIR}/magic VERSION != ${TOOL_SED} -ne "s/^PACKAGE_VERSION='\([^']*\)'/\1/p" ${DIST}/configure .include "${NETBSDSRCDIR}/external/bsd/zstd/Makefile.zstd" CPPFLAGS+= -DMAGIC='"${MAGIC}"' -DHAVE_CONFIG_H -DQUICK -DBUILTIN_ELF \ -DELFCORE -DVERSION='"${VERSION}"' CPPFLAGS+= -I${.CURDIR}/../include -I${DIST}/src CPPFLAGS+= ${ZSTDCPPFLAGS} .PATH: ${DIST}/src ${DIST}/doc DPLIBS+= lzma ${NETBSDSRCDIR}/external/public-domain/xz/lib DPLIBS+= ${ZSTDDPLIBS} DPLIBS+= bz2 ${NETBSDSRCDIR}/lib/libbz2 DPLIBS+= z ${NETBSDSRCDIR}/lib/libz