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