Added savehist=1000 as a security feature to know what root has been up to,
[unix-history] / usr.bin / lex / Makefile
CommitLineData
15637ed4
RG
1# @(#)Makefile 5.4 (Berkeley) 6/24/90
2#
3# By default, flex will be configured to generate 8-bit scanners only if the
4# -8 flag is given. If you want it to always generate 8-bit scanners, add
5# "-DDEFAULT_CSIZE=256" to CFLAGS. Note that doing so will double the size
6# of all uncompressed scanners.
7#
8# If on your system you have trouble building flex due to 8-bit character
9# problems, remove the -8 from FLEX_FLAGS and the "#define FLEX_8_BIT_CHARS"
10# from the beginning of flexdef.h.
11#
12# To bootstrap lex, cp initscan.c to scan.c and run make.
13
7d684d5e
NW
14PROG= lex
15SRCS= ccl.c dfa.c ecs.c gen.c main.c misc.c nfa.c parse.c sym.c \
16 tblcmp.c yylex.c
17OBJS+= scan.o
18LFLAGS= -is8
19SUBDIR= lib
20CFLAGS+= -I. -I${.CURDIR}
21CLEANFILES+= parse.c parse.h scan.c y.tab.h
15637ed4
RG
22
23parse.h parse.c:
24 ${YACC} -d ${.IMPSRC}
25 mv y.tab.c parse.c
26 mv y.tab.h parse.h
27
28beforeinstall:
29 install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/lex.skel \
30 ${DESTDIR}/usr/share/misc
31
32scan.o: parse.c
33
34.include <bsd.prog.mk>