blob: 595cd146baffd772a06db88eb6eb847eb06bd4e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# $FreeBSD$
PROG=boot0
SRCS=arm_init.s at91rm9200_lowlevel.c lib.c main.c xmodem.c
NO_MAN=
LDFLAGS=-e 0 -T linker.cfg
CFLAGS=-O2 -mcpu=arm9 -ffreestanding -I${.CURDIR}/../inc
CFLAGS+=-DBOOT0_KB9202
#CFLAGS+=-DBOOT0_TSC
OBJS+= ${SRCS:N*.h:R:S/$/.o/g}
CLEANFILES=${OBJS} ${PROG} ${PROG}.out
all: ${PROG}
${PROG}: ${PROG}.out ${OBJS}
objcopy -S -O binary ${PROG}.out ${PROG}
${PROG}.out: ${OBJS}
ld ${LDFLAGS} -o ${PROG}.out ${OBJS}
clean:
rm -f ${CLEANFILES}
|