Import NetBSD tools and build.sh
This commit finalizes support for cross compilation. The tools directory are all links to the actual tools and are built on the host system to build Minix. build.sh is the work horse that takes care of all environment settings. It's slightly adjusted for Minix. The /usr/src/Makefile has additional targets needed for cross compilation.
This commit is contained in:
18
tools/m4/Makefile
Normal file
18
tools/m4/Makefile
Normal file
@@ -0,0 +1,18 @@
|
||||
# $NetBSD: Makefile,v 1.5 2009/11/06 15:14:37 joerg Exp $
|
||||
|
||||
HOSTPROGNAME= ${_TOOL_PREFIX}m4
|
||||
HOST_SRCDIR= usr.bin/m4
|
||||
HOST_CPPFLAGS+= -I.
|
||||
|
||||
.include "${.CURDIR}/../Makefile.host"
|
||||
|
||||
# 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} $@
|
||||
Reference in New Issue
Block a user