c8a0e2f4c6
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.
21 lines
414 B
Makefile
21 lines
414 B
Makefile
# $NetBSD: Makefile,v 1.9 2009/10/30 00:30:20 christos Exp $
|
|
|
|
HOSTPROGNAME= ${_TOOL_PREFIX}lex
|
|
HOST_SRCDIR= external/bsd/flex/bin
|
|
|
|
.include "${.CURDIR}/../Makefile.host"
|
|
HOST_CPPFLAGS+= -DM4=\"${TOOL_M4}\"
|
|
|
|
.y.c .l.c .y.h:
|
|
@true
|
|
|
|
scan.c:
|
|
echo '#include <initscan.c>' >$@
|
|
parse.c:
|
|
echo '#include <initparse.c>' >$@
|
|
parse.h:
|
|
echo '#include <initparse.h>' >$@
|
|
|
|
scan.c: parse.h
|
|
|
|
CLEANFILES+=scan.c parse.c parse.h
|