Line 1... |
Line 1... |
include ../support/Makefile.inc
|
include ../support/Makefile.inc
|
all: icm-nocache icm-icdc icm-ic icm-dc
|
all: icm-nocache icm-icdc icm-ic icm-dc
|
|
common = ../support/except.o ../support/libsupport.a
|
|
|
|
|
icm-nocache: icm.o ../support/reset-nocache.o
|
icm-nocache: icm.o ../support/reset-nocache.o
|
$(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32 ../support/libsupport.a
|
$(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) $(GCC_LIB_OPTS) -T ../support/orp.ld $? -o $@.or32 $(common)
|
$(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
|
$(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
|
../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
|
../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
|
../utils/bin2vmem $@.bin > $@.vmem
|
../utils/bin2vmem $@.bin > $@.vmem
|
|
|
|
|
icm-icdc: icm.o ../support/reset-icdc.o
|
icm-icdc: icm.o ../support/reset-icdc.o
|
$(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32 ../support/libsupport.a
|
$(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) $(GCC_LIB_OPTS) -T ../support/orp.ld $? -o $@.or32 $(common)
|
$(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
|
$(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
|
../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
|
../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
|
../utils/bin2vmem $@.bin > $@.vmem
|
../utils/bin2vmem $@.bin > $@.vmem
|
|
|
|
|
icm-ic: icm.o ../support/reset-ic.o
|
icm-ic: icm.o ../support/reset-ic.o
|
$(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32 ../support/libsupport.a
|
$(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) $(GCC_LIB_OPTS) -T ../support/orp.ld $? -o $@.or32 $(common)
|
$(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
|
$(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
|
../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
|
../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
|
../utils/bin2vmem $@.bin > $@.vmem
|
../utils/bin2vmem $@.bin > $@.vmem
|
|
|
|
|
icm-dc: icm.o ../support/reset-dc.o
|
icm-dc: icm.o ../support/reset-dc.o
|
$(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32 ../support/libsupport.a
|
$(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) $(GCC_LIB_OPTS) -T ../support/orp.ld $? -o $@.or32 $(common)
|
$(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
|
$(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
|
../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
|
../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
|
../utils/bin2vmem $@.bin > $@.vmem
|
../utils/bin2vmem $@.bin > $@.vmem
|
|
|
|
|
icm.o: icm.S
|
icm.o: icm.S
|
$(OR32_TOOL_PREFIX)-gcc -O0 $? -c -o $@
|
$(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) -O0 $? -c -o $@
|
|
|
clean:
|
|
rm -f *.o *.or32 *.log *.bin *.hex
|
|