Skip to content

Commit

Permalink
Import new m4 from OpenBSD.
Browse files Browse the repository at this point in the history
  • Loading branch information
christos committed Oct 26, 2009
1 parent 4610357 commit 780cf21
Show file tree
Hide file tree
Showing 10 changed files with 1,653 additions and 1,313 deletions.
20 changes: 17 additions & 3 deletions usr.bin/m4/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
# @(#)Makefile 8.1 (Berkeley) 6/6/93
# $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
SRCS= eval.c expr.c look.c main.c misc.c
CFLAGS+=-DEXTENDED -I.
CDIAGFLAGS=-W -Wall -Wstrict-prototypes -pedantic \
-Wno-unused -Wno-char-subscripts -Wno-sign-compare

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>
Loading

0 comments on commit 780cf21

Please sign in to comment.