diff target-utils/c139explore/Makefile @ 102:3431a069254f

target-utils: c139explore converted to our own libc
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 01 Nov 2016 00:20:14 +0000
parents 750765d6caeb
children 58d3a0634272
line wrap: on
line diff
--- a/target-utils/c139explore/Makefile	Tue Nov 01 00:15:59 2016 +0000
+++ b/target-utils/c139explore/Makefile	Tue Nov 01 00:20:14 2016 +0000
@@ -9,20 +9,18 @@
 PROG=	c139explore
 OBJS=	crt0.o backlight.o cmdtab.o dac.o lcd.o main.o mygetchar.o uartbase.o \
 	uwire.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=	../env/compalram.lds
 
-TC_LIBS=`${CC} -print-file-name=libc.a` \
-	`${CC} -print-file-name=libgcc.a`
-
 all:	${PROG}.bin
 
 crt0.S:	../env/crt0.S
 	ln -s $< .
 
 ${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 $< $@