comparison target-utils/flash-boot-test/Makefile @ 197:dbb54db721d1

target-utils/flash-boot-test written
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 30 Apr 2017 17:40:26 +0000
parents
children cc6594a7fc7a
comparison
equal deleted inserted replaced
196:47d56330609d 197:dbb54db721d1
1 CC= arm-elf-gcc
2 CFLAGS= -Os -fno-builtin
3 CPPFLAGS=-I../include
4 LD= arm-elf-ld
5 OBJCOPY=arm-elf-objcopy
6
7 OBJS= vectors.o crt0.o cmdtab.o main.o mygetchar.o uartbase.o
8 LIBS= ../libcommon/libcommon.a ../libprintf/libprintf.a ../libbase/libbase.a \
9 ../libc/libc.a
10 LIBGCC= `${CC} -print-file-name=libgcc.a`
11 LDS= ld.script
12
13 all: fbt-mode0.bin fbt-mode1.bin
14
15 crt0.S: ../env/crt0.S
16 ln -s $< .
17
18 fbt-mode0.elf: ${OBJS} magic0.o ${LIBS} ${LDS}
19 ${LD} -N -T ${LDS} -o $@ ${OBJS} magic0.o ${LIBS} ${LIBGCC}
20
21 fbt-mode0.bin: fbt-mode0.elf
22 ${OBJCOPY} -O binary $< $@
23
24 fbt-mode1.elf: ${OBJS} magic1.o ${LIBS} ${LDS}
25 ${LD} -N -T ${LDS} -o $@ ${OBJS} magic1.o ${LIBS} ${LIBGCC}
26
27 fbt-mode1.bin: fbt-mode1.elf
28 ${OBJCOPY} -O binary $< $@
29
30 clean:
31 rm -f *.o *errs *core *.elf *.bin *.srec crt0.S
32
33 FRC: