FreeCalypso > hg > freecalypso-sw
comparison target-utils/helloapp/Makefile @ 14:f0501c4a8790
helloapp (proto-loadagent) compiles with r8/r16/r32 implemented
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Fri, 03 May 2013 06:52:36 +0000 |
parents | 40f607bb0a2c |
children | e7ba9fcb3637 |
comparison
equal
deleted
inserted
replaced
13:f4fc449a64ea | 14:f0501c4a8790 |
---|---|
3 CPPFLAGS=-I../include | 3 CPPFLAGS=-I../include |
4 LD= arm-elf-ld | 4 LD= arm-elf-ld |
5 OBJCOPY=arm-elf-objcopy | 5 OBJCOPY=arm-elf-objcopy |
6 | 6 |
7 PROG= helloapp | 7 PROG= helloapp |
8 OBJS= crt0.o main.o mygetchar.o | 8 OBJS= crt0.o cmdtab.o main.o mygetchar.o |
9 LIBS= ../libprintf/libprintf.a ../libcommon/libcommon.a | 9 LIBS= ../libcommon/libcommon.a ../libprintf/libprintf.a |
10 LDS= ../env/iram.lds | 10 LDS= ../env/iram.lds |
11 | 11 |
12 TC_LIBS=`${CC} -print-file-name=libc.a` \ | 12 TC_LIBS=`${CC} -print-file-name=libc.a` \ |
13 `${CC} -print-file-name=libgcc.a` | 13 `${CC} -print-file-name=libgcc.a` |
14 | 14 |
16 | 16 |
17 crt0.S: ../env/crt0.S | 17 crt0.S: ../env/crt0.S |
18 ln -s $< . | 18 ln -s $< . |
19 | 19 |
20 ${PROG}.elf: ${OBJS} ${LIBS} ${LDS} | 20 ${PROG}.elf: ${OBJS} ${LIBS} ${LDS} |
21 ${LD} -N --defsym stack_bottom=0x83FFFC -T ${LDS} -o $@ ${OBJS} ${LIBS}\ | 21 ${LD} -N --defsym stack_bottom=0x83FFFC -T ${LDS} -o $@ ${OBJS} \ |
22 --start-group ${LIBS} --end-group \ | |
22 --start-group ${TC_LIBS} --end-group | 23 --start-group ${TC_LIBS} --end-group |
23 | 24 |
24 ${PROG}.srec: ${PROG}.elf | 25 ${PROG}.srec: ${PROG}.elf |
25 ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@ | 26 ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@ |
26 | 27 |