diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2004-05-12 21:17:04 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2004-05-12 21:17:04 +0000 |
commit | e501b0d1201b21283998cdc00a7f56d6a2d8568a (patch) | |
tree | 15a5afbc170d593b92d224db5ed93af581107ce5 /usr.bin/m4/Makefile | |
parent | 5d0f121d2d06d5c7589586b66d76520be871b59e (diff) |
replace hand-made expr() parser with a lex/yacc affair that is shorter,
easier to understand and extend, and better conformant to Single Unix 3
(especially doing all arithmetic as int32_t).
Comments and approval millert@, otto@, fries@
Diffstat (limited to 'usr.bin/m4/Makefile')
-rw-r--r-- | usr.bin/m4/Makefile | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/usr.bin/m4/Makefile b/usr.bin/m4/Makefile index ef065c05a42..fbaf9183805 100644 --- a/usr.bin/m4/Makefile +++ b/usr.bin/m4/Makefile @@ -1,14 +1,24 @@ -# $OpenBSD: Makefile,v 1.10 2002/04/26 13:13:41 espie Exp $ +# $OpenBSD: Makefile,v 1.11 2004/05/12 21:17:03 espie Exp $ # -DEXTENDED # if you want the paste & spaste macros. PROG= m4 -CFLAGS+=-DEXTENDED +CFLAGS+=-DEXTENDED -I. CDIAGFLAGS=-W -Wall -Wstrict-prototypes -pedantic \ -Wno-unused -Wno-char-subscripts -Wno-sign-compare -SRCS= eval.c expr.c look.c main.c misc.c gnum4.c trace.c +LDADD= -ly -ll +DPADD= ${LIBY} ${LIBL} + +SRCS= eval.c expr.c look.c main.c misc.c gnum4.c trace.c tokenizer.l parser.y MAN= m4.1 +parser.c parser.h: parser.y + ${YACC} -d ${.ALLSRC} && mv y.tab.c parser.c && mv y.tab.h parser.h + +tokenizer.o: parser.h + +CLEANFILES+=parser.c parser.h tokenizer.o + .include <bsd.prog.mk> |