#	$NetBSD: Makefile.booters,v 1.1.14.2 2004/09/18 14:42:36 skrll Exp $

S?=	${.CURDIR}/../../../..

.PHONY:	machine-links

CFLAGS+= -ffreestanding

machine-links:
	-rm -f machine && \
	ln -s $S/arch/${MACHINE}/include machine
	-rm -f ${MACHINE_ARCH} && \
	ln -s $S/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH}

CLEANFILES+=	machine ${MACHINE_ARCH}

beforedepend:	machine-links

# XXX SHOULD NOT NEED TO DEFINE THESE!
LIBCRT0=
LIBC=
LIBCRTBEGIN=
LIBCRTEND=
