xref: /freebsd/usr.bin/m4/Makefile (revision aa24f48b361effe51163877d84f1b70d32b77e04)
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${SRCTOP}/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