comparison target-utils/pirexplore/Makefile @ 0:e7502631a0f9

initial import from freecalypso-sw rev 1033:5ab737ac3ad7
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 11 Jun 2016 00:13:35 +0000
parents
children 750765d6caeb
comparison
equal deleted inserted replaced
-1:000000000000 0:e7502631a0f9
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= pirexplore
8 OBJS= crt0.o cmdtab.o ffsparam.o flashid.o lcd.o main.o mygetchar.o rtc.o
9 LIBS= ../libtiffs/libtiffs.a ../libcommon/libcommon.a \
10 ../libprintf/libprintf.a ../libbase/libbase.a
11 LDS= ../env/iram.lds
12
13 TC_LIBS=`${CC} -print-file-name=libc.a` \
14 `${CC} -print-file-name=libgcc.a`
15
16 all: ${PROG}.srec
17
18 crt0.S: ../env/crt0.S
19 ln -s $< .
20
21 ${PROG}.elf: ${OBJS} ${LIBS} ${LDS}
22 ${LD} -N --defsym Base_addr=0x800750 --defsym stack_bottom=0x87FFFC \
23 -T ${LDS} -o $@ ${OBJS} ${LIBS} \
24 --start-group ${TC_LIBS} --end-group
25
26 ${PROG}.srec: ${PROG}.elf
27 ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@
28
29 clean:
30 rm -f *.o *errs *core *.elf *.bin *.srec crt0.S
31
32 FRC: