|
|
1.1 root 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:
14: PROG= lex
15: CFLAGS+=-I. -I${.CURDIR}
16: LFLAGS= -is8
17: SRCS= ccl.c dfa.c ecs.c gen.c main.c misc.c nfa.c parse.c sym.c tblcmp.c \
18: yylex.c
19: OBJS+= scan.o
20: SUBDIR= lib
21: CLEANFILES+=parse.c parse.h scan.c y.tab.h
22:
23: parse.h parse.c:
24: ${YACC} -d ${.IMPSRC}
25: mv y.tab.c parse.c
26: mv y.tab.h parse.h
27:
28: beforeinstall:
29: install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/lex.skel \
30: ${DESTDIR}/usr/share/misc
31:
32: scan.o: parse.c
33:
34: .include <bsd.prog.mk>
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.