1993-08-01 09:37:30 +04:00
|
|
|
# from: @(#)Makefile 5.4 (Berkeley) 6/24/90
|
1993-12-02 22:17:24 +03:00
|
|
|
# Makefile,v 1.3 1993/08/01 05:41:56 mycroft 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
|
|
|
|
# "-DDEFAULT_CSIZE=256" to CFLAGS. 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
|
|
|
|
CFLAGS+=-I. -I${.CURDIR}
|
1993-12-02 22:17:24 +03:00
|
|
|
LFLAGS= -is8 -p
|
1993-03-21 12:45:37 +03:00
|
|
|
SRCS= ccl.c dfa.c ecs.c gen.c main.c misc.c nfa.c parse.c sym.c tblcmp.c \
|
|
|
|
yylex.c
|
1993-12-02 22:17:24 +03:00
|
|
|
OBJS+= scan.o skel.o
|
1993-03-21 12:45:37 +03:00
|
|
|
SUBDIR= lib
|
1993-12-02 22:17:24 +03:00
|
|
|
CLEANFILES+=parse.c parse.h scan.c skel.c y.tab.c y.tab.h
|
|
|
|
LDADD= -ll
|
|
|
|
DPADD= ${LIBL}
|
|
|
|
|
|
|
|
MAN1 = flex.0 flexdoc.0
|
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++
|
|
|
|
MLINKS= flex.1 lex.1 flexdoc.1 lexdoc.1
|
|
|
|
|
|
|
|
parse.h parse.c: parse.y
|
1993-03-21 12:45:37 +03:00
|
|
|
${YACC} -d ${.IMPSRC}
|
|
|
|
mv y.tab.c parse.c
|
|
|
|
mv y.tab.h parse.h
|
|
|
|
|
1993-12-02 22:17:24 +03:00
|
|
|
skel.c: flex.skl mkskel.sh
|
|
|
|
${.CURDIR}/mkskel.sh ${.CURDIR}/flex.skl > skel.c
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
scan.o: parse.c
|
|
|
|
|
1993-12-02 22:17:24 +03:00
|
|
|
afterinstall:
|
|
|
|
install -c -o ${BINOWN} -g ${BINOWN} -m 444 ${.CURDIR}/FlexLexer.h \
|
|
|
|
${DESTDIR}/usr/include/g++
|
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
.include <bsd.prog.mk>
|