Commit | Line | Data |
---|---|---|
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 |
14 | PROG= lex |
15 | SRCS= ccl.c dfa.c ecs.c gen.c main.c misc.c nfa.c parse.c sym.c \ | |
16 | tblcmp.c yylex.c | |
17 | OBJS+= scan.o | |
18 | LFLAGS= -is8 | |
19 | SUBDIR= lib | |
20 | CFLAGS+= -I. -I${.CURDIR} | |
21 | CLEANFILES+= parse.c parse.h scan.c y.tab.h | |
15637ed4 RG |
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> |