NetBSD/external/bsd/file/Makefile.inc

28 lines
683 B
PHP
Raw Normal View History

# $NetBSD: Makefile.inc,v 1.5 2014/01/17 20:24:20 martin Exp $
2009-05-08 21:28:01 +04:00
2009-05-08 21:43:54 +04:00
WARNS=4
2013-12-02 00:15:42 +04:00
DIST=${NETBSDSRCDIR}/external/bsd/file/dist
.include <bsd.own.mk>
2009-05-08 21:28:01 +04:00
2009-05-09 03:36:42 +04:00
BINDIR?= /usr/bin
2009-05-08 21:28:01 +04:00
USE_FORT?= yes # data-driven bugs?
TOOL_MKMAGIC?= ${.OBJDIR}/file
MFILESDIR?= /usr/share/misc
MFILES?= magic.mgc
MAGIC?= ${MFILESDIR}/magic
2013-12-02 00:15:42 +04:00
VERSION != ${TOOL_SED} -ne "s/^PACKAGE_VERSION='\([^']*\)'/\1/p" ${DIST}/configure
2009-05-08 21:28:01 +04:00
CPPFLAGS+= -DMAGIC='"${MAGIC}"' -DHAVE_CONFIG_H -DQUICK -DBUILTIN_ELF \
2013-12-02 00:15:42 +04:00
-DELFCORE -DVERSION='"${VERSION}"'
2009-05-08 21:28:01 +04:00
CPPFLAGS+= -I${.CURDIR}/../include -I${DIST}/src
.if ${ACTIVE_CC}=="gcc" && ${HAVE_GCC}=="48"
CPPFLAGS.readelf.c += -Wno-error=maybe-uninitialized
.endif
2009-05-08 21:28:01 +04:00
.PATH: ${DIST}/src ${DIST}/doc