comparison Makefile.avr @ 20:59c7fcf10ea0

Copy the correct segments into the flash image otherwise pre-declared variables don't work.
author darius
date Mon, 12 Dec 2005 22:57:46 +1030
parents 108a703c39e6
children 2b8278ec5adb
comparison
equal deleted inserted replaced
19:8dc98a293e43 20:59c7fcf10ea0
36 36
37 ${PROG}.elf: ${OBJS} 37 ${PROG}.elf: ${OBJS}
38 ${CC} ${CFLAGS} ${LDFLAGS} -g ${OBJS} -o ${PROG}.elf ${LDADD} 38 ${CC} ${CFLAGS} ${LDFLAGS} -g ${OBJS} -o ${PROG}.elf ${LDADD}
39 39
40 .elf.hex: 40 .elf.hex:
41 ${OBJCOPY} -j .text -O ihex $> $@ 41 ${OBJCOPY} -j .text -j .data -j .bss -j .noinit -O ihex $> $@
42 42
43 .elf.dmp: 43 .elf.dmp:
44 ${OBJDUMP} -S ${.IMPSRC} > ${.PREFIX}.dmp 44 ${OBJDUMP} -S ${.IMPSRC} > ${.PREFIX}.dmp
45 45
46 clean: 46 clean: