1993-08-01 09:37:30 +04:00
|
|
|
# from: @(#)Makefile 5.4 (Berkeley) 6/24/90
|
2006-10-08 21:52:28 +04:00
|
|
|
# $NetBSD: Makefile,v 1.28 2006/10/08 17:52:29 peter Exp $
|
1993-03-21 12:45:37 +03:00
|
|
|
#
|
|
|
|
# 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
|
1997-10-23 09:13:18 +04:00
|
|
|
# "-DDEFAULT_CSIZE=256" to CPPFLAGS. Note that doing so will double the size
|
1993-03-21 12:45:37 +03:00
|
|
|
# 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
|
1997-10-23 09:13:18 +04:00
|
|
|
CPPFLAGS+=-I. -I${.CURDIR}
|
1998-04-09 04:32:31 +04:00
|
|
|
SRCS= ccl.c dfa.c ecs.c gen.c main.c misc.c nfa.c parse.y sym.c tblcmp.c \
|
2001-08-14 14:18:26 +04:00
|
|
|
yylex.c scan.c skel.c
|
1998-04-09 04:32:31 +04:00
|
|
|
YHEADER=1
|
|
|
|
CLEANFILES+=scan.c skel.c
|
1997-03-25 00:57:01 +03:00
|
|
|
INCS =FlexLexer.h
|
|
|
|
INCSDIR=/usr/include/g++
|
|
|
|
|
1995-05-05 09:35:08 +04:00
|
|
|
MAN = flex.1
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1993-12-02 22:17:24 +03:00
|
|
|
LINKS= ${BINDIR}/lex ${BINDIR}/flex \
|
|
|
|
${BINDIR}/lex ${BINDIR}/flex++
|
1995-05-05 09:35:08 +04:00
|
|
|
MLINKS= flex.1 lex.1
|
1993-12-02 22:17:24 +03:00
|
|
|
|
2001-11-12 22:32:08 +03:00
|
|
|
skel.c: mkskel.sh flex.skl
|
2003-10-21 14:01:19 +04:00
|
|
|
${_MKTARGET_CREATE}
|
2003-10-19 08:25:00 +04:00
|
|
|
${HOST_SH} ${.ALLSRC} >${.TARGET}
|
1993-03-21 12:45:37 +03:00
|
|
|
|
2001-08-14 14:18:26 +04:00
|
|
|
.ifndef HOSTPROG
|
1995-05-05 09:35:08 +04:00
|
|
|
scan.c: scan.l
|
2003-10-21 14:01:19 +04:00
|
|
|
${_MKTARGET_LEX}
|
2001-11-12 22:32:08 +03:00
|
|
|
${LEX} -t -p ${.ALLSRC} >${.TARGET}
|
2001-08-14 14:18:26 +04:00
|
|
|
.endif
|
1995-05-05 09:35:08 +04:00
|
|
|
|
1997-10-23 09:13:18 +04:00
|
|
|
scan.o yylex.o: parse.h
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|