FreeCalypso > hg > freecalypso-sw
comparison target-utils/c139explore/Makefile @ 946:845c2e420069
target-utils/c139explore utility started
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 02 Nov 2015 18:09:37 +0000 |
parents | |
children | df1dccc0ef9c |
comparison
equal
deleted
inserted
replaced
945:86ff6d0b0a97 | 946:845c2e420069 |
---|---|
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= c139explore | |
8 OBJS= crt0.o cmdtab.o main.o mygetchar.o | |
9 LIBS= ../libcommon/libcommon.a ../libprintf/libprintf.a | |
10 LDS= ../env/compalram.lds | |
11 | |
12 TC_LIBS=`${CC} -print-file-name=libc.a` \ | |
13 `${CC} -print-file-name=libgcc.a` | |
14 | |
15 all: ${PROG}.bin | |
16 | |
17 crt0.S: ../env/crt0.S | |
18 ln -s $< . | |
19 | |
20 ${PROG}.elf: ${OBJS} ${LIBS} ${LDS} | |
21 ${LD} -N -T ${LDS} -o $@ ${OBJS} \ | |
22 --start-group ${LIBS} --end-group \ | |
23 --start-group ${TC_LIBS} --end-group | |
24 | |
25 ${PROG}.bin: ${PROG}.elf | |
26 ${OBJCOPY} -O binary $< $@ | |
27 | |
28 clean: | |
29 rm -f *.o *errs *core *.elf *.bin *.srec crt0.S | |
30 | |
31 FRC: |