NetBSD/external/bsd/file/Makefile.inc
2017-02-22 12:34:49 +00:00

24 lines
575 B
Makefile

# $NetBSD: Makefile.inc,v 1.6 2017/02/22 12:34:49 maya Exp $
WARNS=4
DIST=${NETBSDSRCDIR}/external/bsd/file/dist
.include <bsd.own.mk>
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
CPPFLAGS+= -DMAGIC='"${MAGIC}"' -DHAVE_CONFIG_H -DQUICK -DBUILTIN_ELF \
-DELFCORE -DVERSION='"${VERSION}"'
CPPFLAGS+= -I${.CURDIR}/../include -I${DIST}/src
.PATH: ${DIST}/src ${DIST}/doc