changeset 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 9214118ae941
children 35e3963f03e9
files target-utils/c139-lldbg/Makefile
diffstat 1 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/target-utils/c139-lldbg/Makefile	Tue Nov 01 00:05:31 2016 +0000
+++ b/target-utils/c139-lldbg/Makefile	Tue Nov 01 00:09:34 2016 +0000
@@ -6,17 +6,15 @@
 
 PROG=	lldbg
 OBJS=	entry.o cmdtab.o entryinfo.o main.o mygetchar.o uartbase.o
-LIBS=	../libcommon/libcommon.a ../libprintf/libprintf.a ../libbase/libbase.a
+LIBS=	../libcommon/libcommon.a ../libprintf/libprintf.a ../libbase/libbase.a \
+	../libc/libc.a
+LIBGCC=	`${CC} -print-file-name=libgcc.a`
 LDS=	lldbg.lds
 
-TC_LIBS=`${CC} -print-file-name=libc.a` \
-	`${CC} -print-file-name=libgcc.a`
-
 all:	${PROG}.bin
 
 ${PROG}.elf:	${OBJS} ${LIBS} ${LDS}
-	${LD} -N -T ${LDS} -o $@ ${OBJS} ${LIBS} \
-		--start-group ${TC_LIBS} --end-group
+	${LD} -N -T ${LDS} -o $@ ${OBJS} ${LIBS} ${LIBGCC}
 
 ${PROG}.bin:	${PROG}.elf
 	${OBJCOPY} -O binary $< $@