2009-10-30 03:30:20 +03:00
|
|
|
# $NetBSD: Makefile,v 1.9 2009/10/30 00:30:20 christos Exp $
|
2001-08-14 15:01:55 +04:00
|
|
|
|
2002-12-08 23:19:56 +03:00
|
|
|
HOSTPROGNAME= ${_TOOL_PREFIX}lex
|
2009-10-27 00:32:14 +03:00
|
|
|
HOST_SRCDIR= external/bsd/flex/bin
|
2001-08-14 15:01:55 +04:00
|
|
|
|
|
|
|
.include "${.CURDIR}/../Makefile.host"
|
2009-10-27 00:32:14 +03:00
|
|
|
HOST_CPPFLAGS+= -DM4=\"${TOOL_M4}\"
|
2001-08-14 15:01:55 +04:00
|
|
|
|
2009-10-30 03:30:20 +03:00
|
|
|
.y.c .l.c .y.h:
|
|
|
|
@true
|
|
|
|
|
2001-08-14 15:01:55 +04:00
|
|
|
scan.c:
|
|
|
|
echo '#include <initscan.c>' >$@
|
2009-10-29 20:16:40 +03:00
|
|
|
parse.c:
|
|
|
|
echo '#include <initparse.c>' >$@
|
|
|
|
parse.h:
|
|
|
|
echo '#include <initparse.h>' >$@
|
|
|
|
|
|
|
|
scan.c: parse.h
|
|
|
|
|
|
|
|
CLEANFILES+=scan.c parse.c parse.h
|