1 # $NetBSD: Makefile,v 1.9 2009/10/30 00:30:20 christos Exp $ 2 3 HOSTPROGNAME= ${_TOOL_PREFIX}lex 4 HOST_SRCDIR= external/bsd/flex/bin 5 6 .include "${.CURDIR}/../Makefile.host" 7 HOST_CPPFLAGS+= -DM4=\"${TOOL_M4}\" 8 9 .y.c .l.c .y.h: 10 @true 11 12 scan.c: 13 echo '#include <initscan.c>' >$@ 14 parse.c: 15 echo '#include <initparse.c>' >$@ 16 parse.h: 17 echo '#include <initparse.h>' >$@ 18 19 scan.c: parse.h 20 21 CLEANFILES+=scan.c parse.c parse.h 22