1# $NetBSD: Makefile.inc,v 1.7 2019/12/17 18:59:39 christos Exp $ 2 3WARNS=4 4DIST=${NETBSDSRCDIR}/external/bsd/file/dist 5 6.include <bsd.own.mk> 7 8BINDIR?= /usr/bin 9USE_FORT?= yes # data-driven bugs? 10 11TOOL_MKMAGIC?= ${.OBJDIR}/file 12 13MFILESDIR?= /usr/share/misc 14MFILES?= magic.mgc 15MAGIC?= ${MFILESDIR}/magic 16 17VERSION != ${TOOL_SED} -ne "s/^PACKAGE_VERSION='\([^']*\)'/\1/p" ${DIST}/configure 18 19CPPFLAGS+= -DMAGIC='"${MAGIC}"' -DHAVE_CONFIG_H -DQUICK -DBUILTIN_ELF \ 20 -DELFCORE -DVERSION='"${VERSION}"' 21CPPFLAGS+= -I${.CURDIR}/../include -I${DIST}/src 22 23.PATH: ${DIST}/src ${DIST}/doc 24 25DPLIBS+= lzma ${NETBSDSRCDIR}/external/public-domain/xz/lib 26DPLIBS+= bz2 ${NETBSDSRCDIR}/lib/libbz2 27DPLIBS+= z ${NETBSDSRCDIR}/lib/libz 28 29