Makefile (50477) | Makefile (53462) |
---|---|
1# $FreeBSD: head/usr.bin/lex/Makefile 50477 1999-08-28 01:08:13Z peter $ | 1# $FreeBSD: head/usr.bin/lex/Makefile 53462 1999-11-20 15:41:43Z dt $ |
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# Bootstrapping of lex is handled automatically. 9# Also note that flex.skel no longer gets installed. --- 8 unchanged lines hidden (view full) --- 18 skel.c sym.c tblcmp.c yylex.c 19LFLAGS+= -is 20CFLAGS+= -I. -I${.CURDIR} 21MAN1= lex.1 22MLINKS+= lex.1 flex.1 23MLINKS+= lex.1 flex++.1 24MLINKS+= lex.1 lex++.1 25 | 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# Bootstrapping of lex is handled automatically. 9# Also note that flex.skel no longer gets installed. --- 8 unchanged lines hidden (view full) --- 18 skel.c sym.c tblcmp.c yylex.c 19LFLAGS+= -is 20CFLAGS+= -I. -I${.CURDIR} 21MAN1= lex.1 22MLINKS+= lex.1 flex.1 23MLINKS+= lex.1 flex++.1 24MLINKS+= lex.1 lex++.1 25 |
26CLEANFILES= scan.c | 26CLEANFILES= scan.c skel.c |
27 28.if !defined(NOLIB) 29SUBDIR= lib 30.endif 31 | 27 28.if !defined(NOLIB) 29SUBDIR= lib 30.endif 31 |
32skel.c: mkskel.sh flex.skl 33 sh ${.CURDIR}/mkskel.sh ${.CURDIR}/flex.skl > skel.c 34 |
|
32beforeinstall: 33 ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 644 \ 34 ${.CURDIR}/FlexLexer.h ${DESTDIR}/usr/include/g++ 35 36bootstrap: initscan.c 37 @cmp -s ${.CURDIR}/initscan.c scan.c || { \ 38 echo "Bootstrapping flex" ; \ 39 rm -f scan.c ; \ 40 cp -f ${.CURDIR}/initscan.c scan.c ; \ 41 } 42 43test: check 44check: $(PROG) 45 ./$(PROG) $(LFLAGS) -t $(COMPRESSION) $(.CURDIR)/scan.l \ 46 | sed s,\"$(.CURDIR)/scan.l",\"scan.l", \ 47 | diff $(.CURDIR)/initscan.c - 48 @echo "Check successful" 49 50.include <bsd.prog.mk> | 35beforeinstall: 36 ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 644 \ 37 ${.CURDIR}/FlexLexer.h ${DESTDIR}/usr/include/g++ 38 39bootstrap: initscan.c 40 @cmp -s ${.CURDIR}/initscan.c scan.c || { \ 41 echo "Bootstrapping flex" ; \ 42 rm -f scan.c ; \ 43 cp -f ${.CURDIR}/initscan.c scan.c ; \ 44 } 45 46test: check 47check: $(PROG) 48 ./$(PROG) $(LFLAGS) -t $(COMPRESSION) $(.CURDIR)/scan.l \ 49 | sed s,\"$(.CURDIR)/scan.l",\"scan.l", \ 50 | diff $(.CURDIR)/initscan.c - 51 @echo "Check successful" 52 53.include <bsd.prog.mk> |