blob: fbaf9183805aa90736bb87b23a50a5a160cca5aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# $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 -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>
|