| @@ -1,17 +1,18 @@ | | | @@ -1,17 +1,18 @@ |
1 | # $NetBSD: Makefile,v 1.4 2009/10/27 18:35:09 christos Exp $ | | 1 | # $NetBSD: Makefile,v 1.5 2009/11/06 15:14:37 joerg Exp $ |
2 | | | 2 | |
3 | HOSTPROGNAME= ${_TOOL_PREFIX}m4 | | 3 | HOSTPROGNAME= ${_TOOL_PREFIX}m4 |
4 | HOST_SRCDIR= usr.bin/m4 | | 4 | HOST_SRCDIR= usr.bin/m4 |
| | | 5 | HOST_CPPFLAGS+= -I. |
5 | | | 6 | |
6 | .include "${.CURDIR}/../Makefile.host" | | 7 | .include "${.CURDIR}/../Makefile.host" |
7 | | | 8 | |
8 | # Don't build any of those; we don't have lex and yacc available yet | | 9 | # Don't build any of those; we don't have lex and yacc available yet |
9 | .y.c .y.h .l.c: | | 10 | .y.c .y.h .l.c: |
10 | @true | | 11 | @true |
11 | | | 12 | |
12 | parser.c: ${.CURDIR}/bootstrap/parser.c | | 13 | parser.c: ${.CURDIR}/bootstrap/parser.c |
13 | @ln -sf ${.ALLSRC:M*.c} $@ | | 14 | @ln -sf ${.ALLSRC:M*.c} $@ |
14 | parser.h: ${.CURDIR}/bootstrap/parser.h | | 15 | parser.h: ${.CURDIR}/bootstrap/parser.h |
15 | @ln -sf ${.ALLSRC:M*.h} $@ | | 16 | @ln -sf ${.ALLSRC:M*.h} $@ |
16 | tokenizer.c: ${.CURDIR}/bootstrap/tokenizer.c | | 17 | tokenizer.c: ${.CURDIR}/bootstrap/tokenizer.c |
17 | @ln -sf ${.ALLSRC:M*.c} $@ | | 18 | @ln -sf ${.ALLSRC:M*.c} $@ |