NetBSD/usr.bin/lex/Makefile
lukem 130ab7336b Rework how MAKEVERBOSE operates:
*	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.
2003-10-21 10:01:19 +00:00

44 lines
1.1 KiB
Makefile

# from: @(#)Makefile 5.4 (Berkeley) 6/24/90
# $NetBSD: Makefile,v 1.27 2003/10/21 10:01:22 lukem Exp $
#
# By default, flex will be configured to generate 8-bit scanners only if the
# -8 flag is given. If you want it to always generate 8-bit scanners, add
# "-DDEFAULT_CSIZE=256" to CPPFLAGS. Note that doing so will double the size
# of all uncompressed scanners.
#
# If on your system you have trouble building flex due to 8-bit character
# problems, remove the -8 from FLEX_FLAGS and the "#define FLEX_8_BIT_CHARS"
# from the beginning of flexdef.h.
#
# To bootstrap lex, cp initscan.c to scan.c and run make.
PROG= lex
CPPFLAGS+=-I. -I${.CURDIR}
SRCS= ccl.c dfa.c ecs.c gen.c main.c misc.c nfa.c parse.y sym.c tblcmp.c \
yylex.c scan.c skel.c
YHEADER=1
CLEANFILES+=scan.c skel.c
WFORMAT= 1
INCS =FlexLexer.h
INCSDIR=/usr/include/g++
MAN = flex.1
LINKS= ${BINDIR}/lex ${BINDIR}/flex \
${BINDIR}/lex ${BINDIR}/flex++
MLINKS= flex.1 lex.1
skel.c: mkskel.sh flex.skl
${_MKTARGET_CREATE}
${HOST_SH} ${.ALLSRC} >${.TARGET}
.ifndef HOSTPROG
scan.c: scan.l
${_MKTARGET_LEX}
${LEX} -t -p ${.ALLSRC} >${.TARGET}
.endif
scan.o yylex.o: parse.h
.include <bsd.prog.mk>