comparison BSDmakefile.arm @ 74:3f1c101f89bc

Tell make the resulting binary dependent is dependent on the linker script.
author Daniel O'Connor <darius@dons.net.au>
date Mon, 15 Apr 2013 22:37:46 +0930
parents 7e5916574d5e
children c0ff52b8e80c
comparison
equal deleted inserted replaced
73:3c22b02e9bf3 74:3f1c101f89bc
29 ${CC} ${CFLAGS} ${CPPFLAGS} -Wa,-adhlns=${.PREFIX}.lst -c ${.IMPSRC} -o ${.PREFIX}.o 29 ${CC} ${CFLAGS} ${CPPFLAGS} -Wa,-adhlns=${.PREFIX}.lst -c ${.IMPSRC} -o ${.PREFIX}.o
30 30
31 .s.o: 31 .s.o:
32 ${AS} ${CFLAGS} ${ASFLAGS} -c ${.IMPSRC} -o ${.PREFIX}.o 32 ${AS} ${CFLAGS} ${ASFLAGS} -c ${.IMPSRC} -o ${.PREFIX}.o
33 33
34 ${PROG}.elf: ${OBJS} 34 ${PROG}.elf: ${OBJS} ${LINKFILE}
35 ${CC} ${LDFLAGS} ${OBJS} -Wl,-Map=${PROG}.map,--cref -o ${PROG}.elf ${LDADD} 35 ${CC} ${LDFLAGS} ${OBJS} -Wl,-Map=${PROG}.map,--cref -o ${PROG}.elf ${LDADD}
36 36
37 .elf.bin: 37 .elf.bin:
38 ${OBJCOPY} -O binary ${.ALLSRC} ${.TARGET} 38 ${OBJCOPY} -O binary ${.ALLSRC} ${.TARGET}
39 39