1 # $NetBSD: Makefile.inc,v 1.5 2014/01/17 20:24:20 martin Exp $
4 DIST=${NETBSDSRCDIR}/external/bsd/file/dist
9 USE_FORT?= yes # data-driven bugs?
11 TOOL_MKMAGIC?= ${.OBJDIR}/file
13 MFILESDIR?= /usr/share/misc
15 MAGIC?= ${MFILESDIR}/magic
17 VERSION != ${TOOL_SED} -ne "s/^PACKAGE_VERSION='\([^']*\)'/\1/p" ${DIST}/configure
19 CPPFLAGS+= -DMAGIC='"${MAGIC}"' -DHAVE_CONFIG_H -DQUICK -DBUILTIN_ELF \
20 -DELFCORE -DVERSION='"${VERSION}"'
21 CPPFLAGS+= -I${.CURDIR}/../include -I${DIST}/src
23 .if ${ACTIVE_CC}=="gcc" && ${HAVE_GCC}=="48"
24 CPPFLAGS.readelf.c += -Wno-error=maybe-uninitialized
27 .PATH: ${DIST}/src ${DIST}/doc