FreeCalypso > hg > freecalypso-tools
changeset 98:5aff772ff84d
target-utils: buzplayer converted to our own libc
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 31 Oct 2016 23:55:28 +0000 |
parents | 202b5aa009bc |
children | 9214118ae941 |
files | target-utils/buzplayer/Makefile target-utils/libprintf/Makefile |
diffstat | 2 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/target-utils/buzplayer/Makefile Mon Oct 31 23:49:11 2016 +0000 +++ b/target-utils/buzplayer/Makefile Mon Oct 31 23:55:28 2016 +0000 @@ -8,12 +8,11 @@ PROG= buzplayer OBJS= crt0.o cmdtab.o main.o melentry.o melplay.o mygetchar.o timer.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/iram.lds -TC_LIBS=`${CC} -print-file-name=libc.a` \ - `${CC} -print-file-name=libgcc.a` - all: ${PROG}.srec crt0.S: ../env/crt0.S @@ -21,8 +20,7 @@ ${PROG}.elf: ${OBJS} ${LIBS} ${LDS} ${LD} -N --defsym Base_addr=0x800750 --defsym stack_bottom=0x83FFFC \ - -T ${LDS} -o $@ ${OBJS} ${LIBS} \ - --start-group ${TC_LIBS} --end-group + -T ${LDS} -o $@ ${OBJS} ${LIBS} ${LIBGCC} ${PROG}.srec: ${PROG}.elf ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@