freebsd-skq/usr.bin/m4/Makefile

35 lines
770 B
Makefile
Raw Permalink Normal View History

# $OpenBSD: Makefile,v 1.13 2014/05/12 19:11:19 espie Exp $
# $FreeBSD$
1994-05-27 12:33:43 +00:00
# -DEXTENDED
1994-05-27 12:33:43 +00:00
# if you want the paste & spaste macros.
.include <src.opts.mk>
1994-05-27 12:33:43 +00:00
PROG= m4
CFLAGS+=-DEXTENDED -I${.CURDIR} -I${SRCTOP}/lib/libopenbsd
LIBADD= m openbsd
NO_WMISSING_VARIABLE_DECLARATIONS=
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
WARNS?= 3
tokenizer.o: parser.h
CLEANFILES+= parser.c parser.h tokenizer.o tokenizer.c
1994-05-27 12:33:43 +00:00
HAS_TESTS=
2017-08-02 08:38:36 +00:00
SUBDIR.${MK_TESTS}+= tests
1994-05-27 12:33:43 +00:00
.include <bsd.prog.mk>