NetBSD/external/bsd/flex/Makefile.inc

21 lines
449 B
Makefile

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