FreeCalypso > hg > freecalypso-sw
comparison target-utils/helloapp/Makefile @ 11:40f607bb0a2c
target-utils refactored
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Wed, 01 May 2013 07:39:35 +0000 |
parents | loadagent/Makefile@5eaafa83be60 |
children | f0501c4a8790 |
comparison
equal
deleted
inserted
replaced
10:e2e80a09338e | 11:40f607bb0a2c |
---|---|
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= helloapp | |
8 OBJS= crt0.o main.o mygetchar.o | |
9 LIBS= ../libprintf/libprintf.a ../libcommon/libcommon.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} ${LIBS}\ | |
22 --start-group ${TC_LIBS} --end-group | |
23 | |
24 ${PROG}.srec: ${PROG}.elf | |
25 ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@ | |
26 | |
27 clean: | |
28 rm -f *.o *errs *core *.elf *.bin *.srec crt0.S | |
29 | |
30 FRC: |