xref: /netbsd/sys/arch/hpcmips/stand/romboot/Makefile (revision bf9ec67e)
1#	$NetBSD: Makefile,v 1.2 2002/01/03 11:28:12 shin Exp $
2
3CC?=		${CROSSDIR}cc
4AS?=		${CROSSDIR}as
5LD?=		${CROSSDIR}ld
6OBJCOPY?=	${CROSSDIR}objcopy
7
8AFLAGS+=	-x assembler-with-cpp
9
10all: romboot.bin
11
12clean:
13	rm -f romboot.bin romboot romboot.o
14
15romboot: romboot.o
16	$(LD) -o $@ -N -T romboot.ldscript -Ttext 0 -e _start $?
17
18romboot.bin: romboot
19	$(OBJCOPY) --remove-section=.reginfo -O binary $? $@
20