1# $NetBSD: Makefile,v 1.14 2006/04/03 09:08:03 uebayasi Exp $ 2# 3# NOTE: This program is *not* standalone, but a userlevel program -- this 4# program was run from within boot-only, NetBSD-as-bootloader as a 5# userlevel program, then in-kernel boot code loads another NetBSD 6# image and jumps to it. 7# 8 9PROG= bootelf 10SRCS= alloc.c boot.c byteorder.c loadfile.c loadfile_elf32.c 11NOMAN= # defined 12 13LIBSA= ${.CURDIR}/../../../../lib/libsa 14 15.PATH: ${LIBSA} 16 17CFLAGS+= -ffreestanding 18CPPFLAGS+= -I${.CURDIR}/../../../.. -I${.OBJDIR} 19LDSTATIC= -static 20 21CLEANFILES+= machine 22 23realdepend realall: machine 24 25machine:: 26 -rm -f $@ 27 ln -s ${.CURDIR}/../../../../arch/${MACHINE}/include $@ 28 29${PROG}: ${OBJS} machine 30 31.include <bsd.prog.mk> 32