11.15Smatt#	$NetBSD: Makefile,v 1.15 2013/08/21 07:04:38 matt Exp $
21.13Suebayasi#
31.13Suebayasi# NOTE: This program is *not* standalone, but a userlevel program -- this
41.13Suebayasi#       program was run from within boot-only, NetBSD-as-bootloader as a
51.13Suebayasi#       userlevel program, then in-kernel boot code loads another NetBSD
61.13Suebayasi#	image and jumps to it.
71.13Suebayasi#
81.1Sitojun
91.9SjdolecekPROG=	bootelf
101.11SheSRCS=	alloc.c boot.c byteorder.c loadfile.c loadfile_elf32.c
111.9SjdolecekNOMAN=	# defined
121.9Sjdolecek
131.9SjdolecekLIBSA=	${.CURDIR}/../../../../lib/libsa
141.1Sitojun
151.2Stsubai.PATH: ${LIBSA}
161.2Stsubai
171.14SuebayasiCFLAGS+=	-ffreestanding
181.12SuebayasiCPPFLAGS+=	-I${.CURDIR}/../../../.. -I${.OBJDIR}
191.12SuebayasiLDSTATIC=	-static
201.7Swiz
211.15Smatt${PROG}: ${OBJS}
221.1Sitojun
231.1Sitojun.include <bsd.prog.mk>
241.15Smatt.include <bsd.klinks.mk>
25