Makefile.inc revision 1.3.14.1
1# $NetBSD: Makefile.inc,v 1.3.14.1 2014/08/19 23:46:46 tls 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.if ${ACTIVE_CC}=="gcc" && ${HAVE_GCC}=="48" 24CPPFLAGS.readelf.c += -Wno-error=maybe-uninitialized 25.endif 26 27.PATH: ${DIST}/src ${DIST}/doc 28