1 # $NetBSD: Makefile,v 1.15 2013/08/21 07:04:38 matt 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 9 PROG= bootelf 10 SRCS= alloc.c boot.c byteorder.c loadfile.c loadfile_elf32.c 11 NOMAN= # defined 12 13 LIBSA= ${.CURDIR}/../../../../lib/libsa 14 15 .PATH: ${LIBSA} 16 17 CFLAGS+= -ffreestanding 18 CPPFLAGS+= -I${.CURDIR}/../../../.. -I${.OBJDIR} 19 LDSTATIC= -static 20 21 ${PROG}: ${OBJS} 22 23 .include <bsd.prog.mk> 24 .include <bsd.klinks.mk> 25