2014-07-27 22:54:13 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.13 2014/05/12 19:11:19 espie Exp $
|
2002-04-19 17:26:21 +00:00
|
|
|
# $FreeBSD$
|
1994-05-27 12:33:43 +00:00
|
|
|
|
2002-04-19 17:26:21 +00:00
|
|
|
# -DEXTENDED
|
1994-05-27 12:33:43 +00:00
|
|
|
# if you want the paste & spaste macros.
|
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2014-03-16 08:04:06 +00:00
|
|
|
|
1994-05-27 12:33:43 +00:00
|
|
|
PROG= m4
|
2017-03-12 18:58:44 +00:00
|
|
|
CFLAGS+=-DEXTENDED -I${.CURDIR} -I${SRCTOP}/lib/libopenbsd
|
2019-09-09 15:20:19 +00:00
|
|
|
LIBADD= m openbsd
|
2013-04-19 19:45:00 +00:00
|
|
|
|
|
|
|
NO_WMISSING_VARIABLE_DECLARATIONS=
|
2002-04-19 17:26:21 +00:00
|
|
|
|
2020-08-25 13:29:57 +00:00
|
|
|
SRCS= eval.c expr.c look.c main.c misc.c gnum4.c trace.c parser.y
|
|
|
|
.if target(bootstrap_m4_tokenizer)
|
|
|
|
# When crossbuilding on non-FreeBSD we need to first build m4 with pre-generated
|
|
|
|
# tokenizer files and the build the real m4 once we have lex+yacc.
|
|
|
|
SRCS+= tokenizer.c
|
|
|
|
.else
|
|
|
|
SRCS+= tokenizer.l
|
|
|
|
.endif
|
|
|
|
|
|
|
|
GENFILES= tokenizer.c parser.c parser.h
|
2020-09-11 13:28:37 +00:00
|
|
|
WARNS?= 3
|
2014-08-07 09:38:27 +00:00
|
|
|
|
2011-11-28 13:32:39 +00:00
|
|
|
tokenizer.o: parser.h
|
|
|
|
|
2020-08-25 13:29:57 +00:00
|
|
|
CLEANFILES+= parser.c parser.h tokenizer.o tokenizer.c
|
1994-05-27 12:33:43 +00:00
|
|
|
|
2017-08-02 08:50:42 +00:00
|
|
|
HAS_TESTS=
|
2017-08-02 08:38:36 +00:00
|
|
|
SUBDIR.${MK_TESTS}+= tests
|
2014-03-16 08:04:06 +00:00
|
|
|
|
1994-05-27 12:33:43 +00:00
|
|
|
.include <bsd.prog.mk>
|