xref: /freebsd/usr.bin/m4/Makefile (revision a831d7d1c538b93ffec095657d9a6e6e778db195)
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/libohash
11LIBADD=	y l m ohash
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