[BACK]Return to Makefile.inc CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / external / bsd / file

File: [cvs.NetBSD.org] / src / external / bsd / file / Makefile.inc (download)

Revision 1.7, Tue Dec 17 18:59:39 2019 UTC (7 months, 2 weeks ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, HEAD
Changes since 1.6: +6 -1 lines

Fix sun2 (static linking)

#	$NetBSD: Makefile.inc,v 1.7 2019/12/17 18:59:39 christos 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

DPLIBS+=     lzma    ${NETBSDSRCDIR}/external/public-domain/xz/lib
DPLIBS+=     bz2     ${NETBSDSRCDIR}/lib/libbz2
DPLIBS+=     z       ${NETBSDSRCDIR}/lib/libz