
This brings our tree to NetBSD 7.0, as found on -current on the 10-10-2015. This updates: - LLVM to 3.6.1 - GCC to GCC 5.1 - Replace minix/commands/zdump with usr.bin/zdump - external/bsd/libelf has moved to /external/bsd/elftoolchain/ - Import ctwm - Drop sprintf from libminc Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
28 lines
683 B
Makefile
28 lines
683 B
Makefile
# $NetBSD: Makefile.inc,v 1.5 2014/01/17 20:24:20 martin 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
|
|
|
|
.if ${ACTIVE_CC}=="gcc" && ${HAVE_GCC}=="48"
|
|
CPPFLAGS.readelf.c += -Wno-error=maybe-uninitialized
|
|
.endif
|
|
|
|
.PATH: ${DIST}/src ${DIST}/doc
|