1# $NetBSD: Makefile.inc,v 1.6 2017/01/06 17:26:41 christos Exp $ 2 3WARNS?= 1 4 5.include <bsd.own.mk> 6 7BINDIR?= /usr/bin 8 9IDIST= ${NETBSDSRCDIR}/external/bsd/flex/dist/src 10.if !empty(TOOL_SED:M*/*) && !exists(${TOOL_SED}) 11VERSION = 3.x 12.else 13VERSION != ${TOOL_SED} -ne "s/PACKAGE_VERSION='\(.*\)'/\1/p" \ 14 ${IDIST}/../configure 15.endif 16 17CPPFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR}/../include -I${IDIST} \ 18 -DLOCALEDIR=\"/usr/share/locale\" 19 20.PATH: ${IDIST} 21