2009-11-06 18:14:37 +03:00
|
|
|
# $NetBSD: Makefile,v 1.5 2009/11/06 15:14:37 joerg Exp $
|
2001-11-14 18:32:05 +03:00
|
|
|
|
2002-12-08 23:19:56 +03:00
|
|
|
HOSTPROGNAME= ${_TOOL_PREFIX}m4
|
2001-11-14 18:32:05 +03:00
|
|
|
HOST_SRCDIR= usr.bin/m4
|
2009-11-06 18:14:37 +03:00
|
|
|
HOST_CPPFLAGS+= -I.
|
2001-11-14 18:32:05 +03:00
|
|
|
|
|
|
|
.include "${.CURDIR}/../Makefile.host"
|
2009-10-27 21:35:09 +03:00
|
|
|
|
|
|
|
# Don't build any of those; we don't have lex and yacc available yet
|
|
|
|
.y.c .y.h .l.c:
|
|
|
|
@true
|
|
|
|
|
|
|
|
parser.c: ${.CURDIR}/bootstrap/parser.c
|
|
|
|
@ln -sf ${.ALLSRC:M*.c} $@
|
|
|
|
parser.h: ${.CURDIR}/bootstrap/parser.h
|
|
|
|
@ln -sf ${.ALLSRC:M*.h} $@
|
|
|
|
tokenizer.c: ${.CURDIR}/bootstrap/tokenizer.c
|
|
|
|
@ln -sf ${.ALLSRC:M*.c} $@
|