comparison target-utils/helloapp/Makefile @ 477:58d3a0634272

target-utils/*/Makefile: better construct for crt0.S symlink
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 13 Feb 2019 06:21:42 +0000
parents 40dea2dbc7e6
children 8bdbae4c0e53
comparison
equal deleted inserted replaced
476:0615d54c2d2e 477:58d3a0634272
11 LIBGCC= `${CC} -print-file-name=libgcc.a` 11 LIBGCC= `${CC} -print-file-name=libgcc.a`
12 LDS= ../env/iram.lds 12 LDS= ../env/iram.lds
13 13
14 all: ${PROG}.srec 14 all: ${PROG}.srec
15 15
16 crt0.S: ../env/crt0.S 16 crt0.S:
17 ln -s $< . 17 ln -s ../env/crt0.S .
18 18
19 ${PROG}.elf: ${OBJS} ${LIBS} ${LDS} 19 ${PROG}.elf: ${OBJS} ${LIBS} ${LDS}
20 ${LD} -N --defsym Base_addr=0x800750 --defsym stack_bottom=0x83FFFC \ 20 ${LD} -N --defsym Base_addr=0x800750 --defsym stack_bottom=0x83FFFC \
21 -T ${LDS} -o $@ ${OBJS} ${LIBS} ${LIBGCC} 21 -T ${LDS} -o $@ ${OBJS} ${LIBS} ${LIBGCC}
22 22