summaryrefslogtreecommitdiff
path: root/tools/lex/Makefile
blob: edea8ffbd1fa004e137060882c9dbbed9f57a77f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#	$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