comparison target-utils/c139-lldbg/Makefile @ 955:d7830aee0d35

c139-lldbg hack concocted
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Wed, 04 Nov 2015 20:34:12 +0000
parents
children 5cff3579814c
comparison
equal deleted inserted replaced
954:d25d73815817 955:d7830aee0d35
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= lldbg
8 OBJS= entry.o cmdtab.o entryinfo.o main.o mygetchar.o
9 LIBS= ../libcommon/libcommon.a ../libprintf/libprintf.a
10 LDS= lldbg.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 ${PROG}.elf: ${OBJS} ${LIBS} ${LDS}
18 ${LD} -N -T ${LDS} -o $@ ${OBJS} \
19 --start-group ${LIBS} --end-group \
20 --start-group ${TC_LIBS} --end-group
21
22 ${PROG}.bin: ${PROG}.elf
23 ${OBJCOPY} -O binary $< $@
24
25 clean:
26 rm -f *.o *errs *core *.elf *.bin *.srec crt0.S
27
28 FRC: