comparison target-utils/c139explore/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 3431a069254f
children bfddfecc52b2
comparison
equal deleted inserted replaced
476:0615d54c2d2e 477:58d3a0634272
14 LIBGCC= `${CC} -print-file-name=libgcc.a` 14 LIBGCC= `${CC} -print-file-name=libgcc.a`
15 LDS= ../env/compalram.lds 15 LDS= ../env/compalram.lds
16 16
17 all: ${PROG}.bin 17 all: ${PROG}.bin
18 18
19 crt0.S: ../env/crt0.S 19 crt0.S:
20 ln -s $< . 20 ln -s ../env/crt0.S .
21 21
22 ${PROG}.elf: ${OBJS} ${LIBS} ${LDS} 22 ${PROG}.elf: ${OBJS} ${LIBS} ${LDS}
23 ${LD} -N -T ${LDS} -o $@ ${OBJS} ${LIBS} ${LIBGCC} 23 ${LD} -N -T ${LDS} -o $@ ${OBJS} ${LIBS} ${LIBGCC}
24 24
25 ${PROG}.bin: ${PROG}.elf 25 ${PROG}.bin: ${PROG}.elf