Makefile.booters revision 1.5
1#	$NetBSD: Makefile.booters,v 1.5 2009/01/12 07:56:31 tsutsui Exp $
2
3S?=	${.CURDIR}/../../../..
4
5CFLAGS+= -ffreestanding
6CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
7CFLAGS+= -Wno-pointer-sign
8CFLAGS+= -Werror
9
10.if !make(obj) && !make(clean) && !make(cleandir)
11.NOPATH: machine ${MACHINE_ARCH}
12.BEGIN: machine ${MACHINE_ARCH}
13
14machine::
15	-rm -f machine && \
16	ln -s $S/arch/${MACHINE}/include machine
17
18m68k::
19	-rm -f ${MACHINE_ARCH} && \
20	ln -s $S/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH}
21.endif
22
23CLEANFILES+=	machine ${MACHINE_ARCH}
24
25
26# XXX SHOULD NOT NEED TO DEFINE THESE!
27LIBCRT0=
28LIBC=
29LIBCRTBEGIN=
30LIBCRTEND=
31