Makefile revision 1.14
11.14Suebayasi#	$NetBSD: Makefile,v 1.14 2006/04/03 09:08:03 uebayasi 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.7SwizCLEANFILES+=	machine
221.8Swiz
231.8Swizrealdepend realall: machine
241.6Swiz
251.6Swizmachine::
261.6Swiz	-rm -f $@
271.6Swiz	ln -s ${.CURDIR}/../../../../arch/${MACHINE}/include $@
281.6Swiz
291.6Swiz${PROG}: ${OBJS} machine
301.1Sitojun
311.1Sitojun.include <bsd.prog.mk>
32