1 # $NetBSD: Makefile,v 1.9 2009/10/30 00:30:20 christos Exp $
3 HOSTPROGNAME
= ${_TOOL_PREFIX}lex
4 HOST_SRCDIR
= external
/bsd
/flex
/bin
6 .if
${HOST_OSTYPE
:C
/\
-.
*//} == "Minix"
7 HOST_CPPFLAGS
+=-D_NETBSD_SOURCE
-D_POSIX_SOURCE
-D_COMPAT_MINIX
11 .
include "${.CURDIR}/../Makefile.host"
12 HOST_CPPFLAGS
+= -DM4
=\"${TOOL_M4}\"
18 echo
'#include <initscan.c>' >$@
20 echo
'#include <initparse.c>' >$@
22 echo
'#include <initparse.h>' >$@
26 CLEANFILES
+=scan.c parse.c parse.h