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