0ca2111817
Change-Id: I3ff12b42e2815c8f3d72bb577a58552f3a0dc662
25 lines
484 B
Makefile
25 lines
484 B
Makefile
# $NetBSD: Makefile,v 1.9 2009/10/30 00:30:20 christos Exp $
|
|
|
|
HOSTPROGNAME= ${_TOOL_PREFIX}lex
|
|
HOST_SRCDIR= external/bsd/flex/bin
|
|
|
|
.if ${HOST_OSTYPE:C/\-.*//} == "Minix"
|
|
HOST_LDFLAGS+= -static
|
|
.endif
|
|
|
|
.include "${.CURDIR}/../Makefile.host"
|
|
HOST_CPPFLAGS+= -DM4=\"${TOOL_M4}\"
|
|
|
|
.y.c .l.c .y.h:
|
|
@true
|
|
|
|
scan.c:
|
|
echo '#include <initscan.c>' >$@
|
|
parse.c:
|
|
echo '#include <initparse.c>' >$@
|
|
parse.h:
|
|
echo '#include <initparse.h>' >$@
|
|
|
|
scan.c: parse.h
|
|
|
|
CLEANFILES+=scan.c parse.c parse.h
|