comparison target-utils/loadagent/Makefile @ 19:c0e063494194

loadagent built with memory dump commands
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sat, 04 May 2013 00:25:30 +0000
parents
children 1c50add5e202
comparison
equal deleted inserted replaced
18:fa3e9a5665bd 19:c0e063494194
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 PROG= loadagent
8 OBJS= crt0.o cmdtab.o main.o mygetchar.o
9 LIBS= ../libcommon/libcommon.a ../libload/libload.a ../libprintf/libprintf.a
10 LDS= ../env/iram.lds
11
12 TC_LIBS=`${CC} -print-file-name=libc.a` \
13 `${CC} -print-file-name=libgcc.a`
14
15 all: ${PROG}.srec
16
17 crt0.S: ../env/crt0.S
18 ln -s $< .
19
20 ${PROG}.elf: ${OBJS} ${LIBS} ${LDS}
21 ${LD} -N --defsym stack_bottom=0x83FFFC -T ${LDS} -o $@ ${OBJS} \
22 --start-group ${LIBS} --end-group \
23 --start-group ${TC_LIBS} --end-group
24
25 ${PROG}.srec: ${PROG}.elf
26 ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@
27
28 clean:
29 rm -f *.o *errs *core *.elf *.bin *.srec crt0.S
30
31 FRC: