1CONTRIBDIR= ${.CURDIR}/../../contrib/flex 2.PATH: ${CONTRIBDIR} 3.PATH: ${CONTRIBDIR}/doc 4 5PROG= flex 6 7VMAJ= 2 8VMIN= 5 9VPT= 37 10 11LINKS+= ${BINDIR}/flex ${BINDIR}/lex 12LINKS+= ${BINDIR}/flex ${BINDIR}/lex++ 13LINKS+= ${BINDIR}/flex ${BINDIR}/flex++ 14 15MLINKS+= flex.1 lex.1 16MLINKS+= flex.1 lex++.1 17MLINKS+= flex.1 flex++.1 18 19INCS= FlexLexer.h 20 21SUBDIR= lib 22 23CFLAGS+= -I${CONTRIBDIR} -I${.OBJDIR} -I${.CURDIR} 24CFLAGS+= -DHAVE_CONFIG_H 25 26WARNS?= 1 27 28# verbatim from vendor makefile 29flex_SOURCES = \ 30 ccl.c \ 31 dfa.c \ 32 ecs.c \ 33 scanflags.c \ 34 gen.c \ 35 main.c \ 36 misc.c \ 37 nfa.c \ 38 parse.y \ 39 scan.l \ 40 skel.c \ 41 sym.c \ 42 tblcmp.c \ 43 yylex.c \ 44 options.c \ 45 scanopt.c \ 46 buf.c \ 47 tables.c \ 48 tables_shared.c \ 49 filter.c \ 50 regex.c 51 52SRCS= ${flex_SOURCES} 53 54skel.c: flex.skl mkskel.sh flexint.h tables_shared.h 55 sed -e 's/m4_/m4postproc_/g' \ 56 -e 's/m4preproc_/m4_/g' \ 57 ${CONTRIBDIR}/flex.skl \ 58 | m4 -P -I ${CONTRIBDIR} \ 59 -D FLEX_MAJOR_VERSION=${VMAJ} \ 60 -D FLEX_MINOR_VERSION=${VMIN} \ 61 -D FLEX_SUBMINOR_VERSION=${VPT} \ 62 | sed 's/m4postproc_/m4_/g' \ 63 | sh ${CONTRIBDIR}/mkskel.sh > skel.c 64 65DPADD= ${LIBM} 66LDADD= -lm 67 68CLEANFILES= skel.c 69 70.include <bsd.prog.mk> 71