FreeCalypso > hg > freecalypso-tools
diff target-utils/helloapp/Makefile @ 103:40dea2dbc7e6
target-utils: helloapp converted to our own libc
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 01 Nov 2016 00:24:23 +0000 |
parents | e7502631a0f9 |
children | 58d3a0634272 |
line wrap: on
line diff
--- a/target-utils/helloapp/Makefile Tue Nov 01 00:20:14 2016 +0000 +++ b/target-utils/helloapp/Makefile Tue Nov 01 00:24:23 2016 +0000 @@ -6,12 +6,11 @@ PROG= helloapp OBJS= crt0.o cmdtab.o main.o mygetchar.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 @@ -19,8 +18,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 $< $@