NetBSD/tools/lex/Makefile

25 lines
456 B
Makefile

# $NetBSD: Makefile,v 1.12 2018/08/23 06:21:37 christos Exp $
HOSTPROGNAME= ${_TOOL_PREFIX}lex
HOST_SRCDIR= external/bsd/flex/bin
.include "${.CURDIR}/../Makefile.host"
HOST_CPPFLAGS+= -DM4=\"${TOOL_M4}\"
.y.c .l.c .y.h:
@true
__BUILD: .USE
(echo '#include "nbtool_config.h"'; \
echo "#include <init${.TARGET}>") > ${.TARGET}
scan.c: __BUILD
parse.c: __BUILD
parse.h: __BUILD
scan.c: parse.h
parse.h: Makefile
CLEANFILES+=scan.c parse.c parse.h