xref: /freebsd/usr.bin/m4/Makefile (revision 669f9224ec5398fbc825dd031415126af032cf42)
1#	$OpenBSD: Makefile,v 1.13 2014/05/12 19:11:19 espie Exp $
2# $FreeBSD$
3
4# -DEXTENDED
5# 	if you want the paste & spaste macros.
6
7.include <src.opts.mk>
8
9PROG=	m4
10CFLAGS+=-DEXTENDED -I${.CURDIR} -I${.CURDIR}/../../lib/libopenbsd
11LIBADD=	y l m openbsd
12
13NO_WMISSING_VARIABLE_DECLARATIONS=
14
15SRCS=	eval.c expr.c look.c main.c misc.c gnum4.c trace.c parser.y tokenizer.l
16
17WARNS=	3
18
19tokenizer.o: parser.h
20
21CLEANFILES+=	parser.c parser.h tokenizer.o
22
23.if ${MK_TESTS} != "no"
24SUBDIR+= tests
25.endif
26
27.include <bsd.prog.mk>
28