FreeCalypso > hg > freecalypso-tools
comparison target-utils/c139-lldbg/Makefile @ 100:d7ef80dce192
target-utils: c139-lldbg converted to our own libc
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 01 Nov 2016 00:09:34 +0000 |
parents | e7502631a0f9 |
children | bfddfecc52b2 |
comparison
equal
deleted
inserted
replaced
99:9214118ae941 | 100:d7ef80dce192 |
---|---|
4 LD= arm-elf-ld | 4 LD= arm-elf-ld |
5 OBJCOPY=arm-elf-objcopy | 5 OBJCOPY=arm-elf-objcopy |
6 | 6 |
7 PROG= lldbg | 7 PROG= lldbg |
8 OBJS= entry.o cmdtab.o entryinfo.o main.o mygetchar.o uartbase.o | 8 OBJS= entry.o cmdtab.o entryinfo.o main.o mygetchar.o uartbase.o |
9 LIBS= ../libcommon/libcommon.a ../libprintf/libprintf.a ../libbase/libbase.a | 9 LIBS= ../libcommon/libcommon.a ../libprintf/libprintf.a ../libbase/libbase.a \ |
10 ../libc/libc.a | |
11 LIBGCC= `${CC} -print-file-name=libgcc.a` | |
10 LDS= lldbg.lds | 12 LDS= lldbg.lds |
11 | |
12 TC_LIBS=`${CC} -print-file-name=libc.a` \ | |
13 `${CC} -print-file-name=libgcc.a` | |
14 | 13 |
15 all: ${PROG}.bin | 14 all: ${PROG}.bin |
16 | 15 |
17 ${PROG}.elf: ${OBJS} ${LIBS} ${LDS} | 16 ${PROG}.elf: ${OBJS} ${LIBS} ${LDS} |
18 ${LD} -N -T ${LDS} -o $@ ${OBJS} ${LIBS} \ | 17 ${LD} -N -T ${LDS} -o $@ ${OBJS} ${LIBS} ${LIBGCC} |
19 --start-group ${TC_LIBS} --end-group | |
20 | 18 |
21 ${PROG}.bin: ${PROG}.elf | 19 ${PROG}.bin: ${PROG}.elf |
22 ${OBJCOPY} -O binary $< $@ | 20 ${OBJCOPY} -O binary $< $@ |
23 | 21 |
24 clean: | 22 clean: |