FreeCalypso > hg > freecalypso-tools
comparison target-utils/buzplayer/Makefile @ 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 | 8a200d65c6a0 |
children | 58d3a0634272 |
comparison
equal
deleted
inserted
replaced
97:202b5aa009bc | 98:5aff772ff84d |
---|---|
6 | 6 |
7 INSTDIR=/opt/freecalypso/target-bin | 7 INSTDIR=/opt/freecalypso/target-bin |
8 | 8 |
9 PROG= buzplayer | 9 PROG= buzplayer |
10 OBJS= crt0.o cmdtab.o main.o melentry.o melplay.o mygetchar.o timer.o | 10 OBJS= crt0.o cmdtab.o main.o melentry.o melplay.o mygetchar.o timer.o |
11 LIBS= ../libcommon/libcommon.a ../libprintf/libprintf.a ../libbase/libbase.a | 11 LIBS= ../libcommon/libcommon.a ../libprintf/libprintf.a ../libbase/libbase.a \ |
12 ../libc/libc.a | |
13 LIBGCC= `${CC} -print-file-name=libgcc.a` | |
12 LDS= ../env/iram.lds | 14 LDS= ../env/iram.lds |
13 | |
14 TC_LIBS=`${CC} -print-file-name=libc.a` \ | |
15 `${CC} -print-file-name=libgcc.a` | |
16 | 15 |
17 all: ${PROG}.srec | 16 all: ${PROG}.srec |
18 | 17 |
19 crt0.S: ../env/crt0.S | 18 crt0.S: ../env/crt0.S |
20 ln -s $< . | 19 ln -s $< . |
21 | 20 |
22 ${PROG}.elf: ${OBJS} ${LIBS} ${LDS} | 21 ${PROG}.elf: ${OBJS} ${LIBS} ${LDS} |
23 ${LD} -N --defsym Base_addr=0x800750 --defsym stack_bottom=0x83FFFC \ | 22 ${LD} -N --defsym Base_addr=0x800750 --defsym stack_bottom=0x83FFFC \ |
24 -T ${LDS} -o $@ ${OBJS} ${LIBS} \ | 23 -T ${LDS} -o $@ ${OBJS} ${LIBS} ${LIBGCC} |
25 --start-group ${TC_LIBS} --end-group | |
26 | 24 |
27 ${PROG}.srec: ${PROG}.elf | 25 ${PROG}.srec: ${PROG}.elf |
28 ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@ | 26 ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@ |
29 | 27 |
30 install: | 28 install: |