mkfs: move directory entry manipulation
[minix.git] / external / bsd / flex / bin / Makefile
blobb29645c2c5206a9b32dd91804c640845c539e2e5
1 # from: @(#)Makefile 5.4 (Berkeley) 6/24/90
2 # $NetBSD: Makefile,v 1.9 2011/03/08 19:25:32 plunky Exp $
4 # By default, flex will be configured to generate 8-bit scanners only if the
5 # -8 flag is given. If you want it to always generate 8-bit scanners, add
6 # "-DDEFAULT_CSIZE=256" to CPPFLAGS. Note that doing so will double the size
7 # of all uncompressed scanners.
8 #
9 # If on your system you have trouble building flex due to 8-bit character
10 # problems, remove the -8 from FLEX_FLAGS and the "#define FLEX_8_BIT_CHARS"
11 # from the beginning of flexdef.h.
13 # To bootstrap lex, cp initscan.c to scan.c and run make.
15 PROG= lex
16 CPPFLAGS+=-I. -I${.CURDIR}
17 SRCS= \
18 buf.c \
19 ccl.c \
20 dfa.c \
21 ecs.c \
22 filter.c \
23 gen.c \
24 main.c \
25 misc.c \
26 nfa.c \
27 options.c \
28 parse.y \
29 regex.c \
30 scan.l \
31 scanflags.c \
32 scanopt.c \
33 skel.c \
34 sym.c \
35 tables.c \
36 tables_shared.c \
37 tblcmp.c \
38 yylex.c
40 YHEADER=1
41 CLEANFILES+=skel.c
42 INCS =FlexLexer.h
43 INCSDIR=/usr/include/g++
44 LDADD+=-lm
45 .ifndef HOSTPROG
46 DPADD+=${LIBM}
47 .endif
49 MAN = flex.1
51 LINKS= ${BINDIR}/lex ${BINDIR}/flex \
52 ${BINDIR}/lex ${BINDIR}/flex++
53 MLINKS= flex.1 lex.1
55 skel.c: flex.skl mkskel.sh flexint.h tables_shared.h
56 ${TOOL_SED} -e 's/m4_/m4postproc_/g' -e 's/m4preproc_/m4_/g' \
57 ${IDIST}/flex.skl | ${TOOL_M4} -I${IDIST} -P \
58 -DFLEX_MAJOR_VERSION=`echo ${VERSION} | cut -f 1 -d .` \
59 -DFLEX_MINOR_VERSION=`echo ${VERSION} | cut -f 2 -d .` \
60 -DFLEX_SUBMINOR_VERSION=`echo ${VERSION} | cut -f 3 -d .` | \
61 ${TOOL_SED} -e 's/m4postproc_/m4_/g' | \
62 ${HOST_SH} ${IDIST}/mkskel.sh > ${.TARGET}
64 .ifndef HOSTPROG
65 scan.c: scan.l
66 ${_MKTARGET_LEX}
67 ${LEX} -t -p ${.ALLSRC} >${.TARGET}
68 .endif
70 scan.o yylex.o: parse.h
72 .include <bsd.prog.mk>