comparison target-utils/simtest/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 5c1fb31751d7
children
comparison
equal deleted inserted replaced
476:0615d54c2d2e 477:58d3a0634272
13 LIBGCC= `${CC} -print-file-name=libgcc.a` 13 LIBGCC= `${CC} -print-file-name=libgcc.a`
14 LDS= ../env/iram.lds 14 LDS= ../env/iram.lds
15 15
16 all: ${PROG}.srec 16 all: ${PROG}.srec
17 17
18 crt0.S: ../env/crt0.S 18 crt0.S:
19 ln -s $< . 19 ln -s ../env/crt0.S .
20 20
21 ${PROG}.elf: ${OBJS} ${LIBS} ${LDS} 21 ${PROG}.elf: ${OBJS} ${LIBS} ${LDS}
22 ${LD} -N --defsym Base_addr=0x800750 --defsym stack_bottom=0x83FFFC \ 22 ${LD} -N --defsym Base_addr=0x800750 --defsym stack_bottom=0x83FFFC \
23 -T ${LDS} -o $@ ${OBJS} ${LIBS} ${LIBGCC} 23 -T ${LDS} -o $@ ${OBJS} ${LIBS} ${LIBGCC}
24 24